![]() Alternate certificates to verify against can be specified with the CURLOPT_CAINFO option or a certificate directory can be specified with the CURLOPT_CAPATH option. Files can be sent using CURLFile, in which case value must be an array.įalse to stop cURL from verifying the peer’s certificate. If value is an array, the Content-Type header will be set to multipart/form-data. This parameter can either be passed as a URL-encoded string like ‘para1=val1¶2=val2&…’ or as an array with the field name as key and field data as value. The full data to post in a HTTP “POST” operation. This POST is the normal application/x-www-form-urlencoded kind, most commonly used by HTML forms. Other languages covered in our tutorials that can be used for sending and receiving SMS with REST include: Python, Java, C++, C#, Perl, Go, Node.True to do a regular HTTP POST. Other APIs covered in our tutorials that can be used for sending and receiving SMS using PHP include: SMPP Tyr SMS Gateway Alternative APIs and languages The Melrose Labs Tyr SMS Gateway supports REST and SMPP APIs. SMSC Simulatorįor live testing and delivery to mobiles, use the reliable and dependable Melrose Labs Tyr SMS Gateway for A2P, P2A, bulk, wholesale and business SMS, text marketing and other uses. The SMSC Simulator supports SMPP v3.3, v3.4 and v5. Testingįor testing your application's SMS support when using the SMPP protocol, we recommend starting with the Melrose Labs SMSC Simulator service to simulate SMS message delivery to mobiles (MT SMS) and simulate SMS messages from mobiles (MO SMS). Get in contact with us to find out more about CPaaS voice, messaging, video and identity from Melrose Labs. We provide a wide range of CPaaS services and infrastructure to organisations, including cloud platforms that enable you to run your own SMS gateway. Take a look at our Messaging, SMS gateway and Bulk SMS solutions, and sign-up for a Developer account on our Tyr SMS Gateway service to try us out. Whatever the language or API, you can send SMS and receive SMS between applications and mobiles for a wide range of uses with any of the trusted and reliable CPaaS services from Melrose Labs. "MelroseLabs",ĬURLOPT_POSTFIELDS => json_encode($data), The transaction ID for the message is returned by the endpoint after a successful submission. The following example PHP code makes a REST HTTPS call to the Melrose Labs SMS API endpoint to send the message Hello World #$£ to mobile number 447712345678 from MelroseLabs. Replace the value with the REST API key for your account. The following are required to send SMS using PHP:Ĭreate the file sendsms.php containing the code below. Use it for transactional messaging and notifications between your application and mobiles. PHP is a programming language and can be used to quickly and easily add SMS support for programmatically sending and receiving SMS messages. REST API Key API key for the REST SMS API of the Melrose Labs Tyr SMS Gateway.The following are required to send SMS with REST: REST uses JSON to carry the parameters that relate to the REST operation that you are performing. A REST account can easily be obtained for using the Tyr SMS Gateway. ![]() REST (REpresentational State Transfer) uses the HTTP protocol (HTTPS) for conveying SMS operations. The cURL extension to PHP can be used to make REST calls to send SMS. ![]()
0 Comments
Leave a Reply. |