skip to Main Content

Post request for SMS message? – Twillio

I am trying to figure out how the twillio sample curl -request actually works for SMS message. Here is a link to the "test" messages that you can use to make a request: https://www.twilio.com/user/account/developer-tools/api-explorer/message-create Here is the curl post: curl…

VIEW QUESTION

"SSL certificate próblem" when conneting to eBay – Ebay API

I want to retrieve categories from ebay. This is my code: function getCategories(){ $endpoint = "https://api.ebay.com/ws/api.dll"; //$endpoint = 'http://svcs.ebay.com/services/search/FindingService/v1'; $api_dev_name = "XXX"; $api_app_name = "XXX"; $api_cert_name = "XXX"; $auth_token = "XXX"; $headers = array( 'X-EBAY-API-COMPATIBILITY-LEVEL: 819', 'X-EBAY-API-DEV-NAME: '.$api_dev_name, 'X-EBAY-API-APP-NAME: '.$api_app_name,…

VIEW QUESTION

Unusual HTTP headers in the Plesk API

The documentation for the Plesk API* gives the following cURL function. function curlInit($host, $login, $password) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://{$host}:8443/enterprise/control/agent.php"); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTPHEADER, array("HTTP_AUTH_LOGIN: {$login}", "HTTP_AUTH_PASSWD: {$password}",…

VIEW QUESTION
Back To Top
Search