SMS API Using Curl SSL Certification Check ScriptIf you decide to use our API with the SSL Certification Check, you will need to use a CURL script on your server so that the SSL Certification Check is successfully implemented. Here is an example of how the SMS API Code of ProTexting should look like: PHP
curl_setopt($ch,CURLOPT_CAINFO,getcwd().'/cacert.pem'); /* fixed! */
$data = curl_exec($ch); echo $data; /* result of API call*/ ?> You will need to download the following file from the official Curl Website: http://curl.haxx.se/docs/caextract.html File to download on your server: cacert.pem (243KB) The info in RED in the code above is changed from our original SMS API Instructions, which are done without the SSL Certification Check.
If you do not want to use SSL Certification Check, just replace these lines in the code above: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); With curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); In case you need additional help, please contact ProTexting tech team
Need more information about our API for SMS, MMS, Contacts Management, Campaign Data Feeds - visit ProTexting API Documentation Related text messaging apps:Feedback
Please share your feedback with us so we can improve our "Learning Center"
|
Featured in:
