Plum DEV Documentation
plumdevguide:smsoutbound

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plumdevguide:smsoutbound [2017/11/08 21:44]
admin
plumdevguide:smsoutbound [2019/04/09 20:09]
admin
Line 55: Line 55:
   "​status":"​failure",​   "​status":"​failure",​
   "​error":"​Unauthorized access to sample service",​   "​error":"​Unauthorized access to sample service",​
 +}
 +</​code>​
 +
 +__JSON (invalid phone number):__
 +
 +<​code>​
 +{
 +  "​status":"​failure",​
 +  "​error":"​Invalid '​to'​ phone number",​
 } }
 </​code>​ </​code>​
Line 68: Line 77:
 Requires HTTP Basic Authentication?​ **Yes** \\ Requires HTTP Basic Authentication?​ **Yes** \\
  
-Resource URL for XML-formatted Response: **http://hosting.plumgroup.com/​ws/​sms/​queue.xml**+Resource URL for XML-formatted Response: **https://hosting.plumvoice.com/​ws/​sms/​queue.xml**
  
-Resource URL for JSON-formatted Response: **http://hosting.plumgroup.com/​ws/​sms/​queue.json**+Resource URL for JSON-formatted Response: **https://hosting.plumvoice.com/​ws/​sms/​queue.json**
  
 **Required POST Parameters:​** **Required POST Parameters:​**
Line 133: Line 142:
  
 <​html>​ <​html>​
-  <form target="​_blank"​ id="​sms_form"​ method="​post"​ action="​http://hosting.plumgroup.com/​ws/​sms/​queue.xml">​+  <form target="​_blank"​ id="​sms_form"​ method="​post"​ action="​https://hosting.plumvoice.com/​ws/​sms/​queue.xml">​
   <​table>​   <​table>​
     <​tbody>​     <​tbody>​
Line 159: Line 168:
       for (i in options) {       for (i in options) {
         if (options[i].selected) {         if (options[i].selected) {
-          var action = 'http://hosting.plumgroup.com/​ws/​sms/​queue.'​+options[i].value;​+          var action = 'https://hosting.plumvoice.com/​ws/​sms/​queue.'​+options[i].value;​
           document.getElementById('​sms_form'​).setAttribute('​action',​ action);           document.getElementById('​sms_form'​).setAttribute('​action',​ action);
         }         }
Line 187: Line 196:
 curl_setopt($ch,​ CURLOPT_POST,​ 1); curl_setopt($ch,​ CURLOPT_POST,​ 1);
 curl_setopt($ch,​ CURLOPT_POSTFIELDS,​ $params); curl_setopt($ch,​ CURLOPT_POSTFIELDS,​ $params);
-curl_setopt($ch,​ CURLOPT_URL,​ "http://hosting.plumgroup.com/​ws/​sms/​queue.xml"​);​+curl_setopt($ch,​ CURLOPT_URL,​ "https://hosting.plumvoice.com/​ws/​sms/​queue.xml"​);​
 curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1); curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1);
 curl_setopt($ch,​ CURLOPT_USERPWD,​ "​username:​password"​);​ curl_setopt($ch,​ CURLOPT_USERPWD,​ "​username:​password"​);​
Line 222: Line 231:
  
 <​code>​ <​code>​
-curl -u username:​password -d to=19998881234 -d from=2435678910 -d body='​This is a notification' ​http://hosting.plumgroup.com/​ws/​sms/​queue.xml+curl -u username:​password -d to=19998881234 -d from=2435678910 -d body='​This is a notification' ​https://hosting.plumvoice.com/​ws/​sms/​queue.xml
 </​code>​ </​code>​
 \\ \\
Line 235: Line 244:
 Requires HTTP Basic Authentication?​ **Yes** \\ Requires HTTP Basic Authentication?​ **Yes** \\
  
-Resource URL for XML-formatted Response: **http://hosting.plumgroup.com/​ws/​sms/​status.xml/​{sms_message_id}** \\+Resource URL for XML-formatted Response: **https://hosting.plumvoice.com/​ws/​sms/​status.xml/​{sms_message_id}** \\
  
-Resource URL for JSON-formatted Response: **http://hosting.plumgroup.com/​ws/​sms/​status.json/​{sms_message_id}**+Resource URL for JSON-formatted Response: **https://hosting.plumvoice.com/​ws/​sms/​status.json/​{sms_message_id}**
  
 **Required Resource Parameters:​** **Required Resource Parameters:​**
Line 299: Line 308:
 curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1); curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1);
 curl_setopt($ch,​ CURLOPT_USERPWD,​ "​username:​password"​);​ curl_setopt($ch,​ CURLOPT_USERPWD,​ "​username:​password"​);​
-curl_setopt($ch,​ CURLOPT_URL,​ "http://hosting.plumgroup.com/​ws/​sms/​status.xml/"​.$sms_message_id);​+curl_setopt($ch,​ CURLOPT_URL,​ "https://hosting.plumvoice.com/​ws/​sms/​status.xml/"​.$sms_message_id);​
  
 echo(curl_exec($ch));​ echo(curl_exec($ch));​
Line 310: Line 319:
  
 <​code>​ <​code>​
-curl -u username:​password ​http://hosting.plumgroup.com/​ws/​sms/​status.json/​e7f41fdc813d481081ec2840d68838b5+curl -u username:​password ​https://hosting.plumvoice.com/​ws/​sms/​status.json/​e7f41fdc813d481081ec2840d68838b5
 </​code>​ </​code>​
 \\ \\
Line 323: Line 332:
 Requires HTTP Basic Authentication?​ **Yes** Requires HTTP Basic Authentication?​ **Yes**
  
-Resource URL for XML-formatted Response: **http://hosting.plumgroup.com/​ws/​sms/​messages.xml**+Resource URL for XML-formatted Response: **https://hosting.plumvoice.com/​ws/​sms/​messages.xml**
  
-Resource URL for JSON-formatted Response: **http://hosting.plumgroup.com/​ws/​sms/​messages.json**+Resource URL for JSON-formatted Response: **https://hosting.plumvoice.com/​ws/​sms/​messages.json**
  
 **Optional GET Parameters:​** **Optional GET Parameters:​**
Line 421: Line 430:
  
 // set necessary curl options // set necessary curl options
-curl_setopt($ch,​ CURLOPT_URL,​ "http://hosting.plumgroup.com/​ws/​sms/​messages.xml?​offset=0&​limit=50&​start_timestamp=0&​end_timestamp=0"​);​+curl_setopt($ch,​ CURLOPT_URL,​ "https://hosting.plumvoice.com/​ws/​sms/​messages.xml?​offset=0&​limit=50&​start_timestamp=0&​end_timestamp=0"​);​
 curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1); curl_setopt($ch,​ CURLOPT_RETURNTRANSFER,​ 1);
 curl_setopt($ch,​ CURLOPT_USERPWD,​ "​username:​password"​);​ curl_setopt($ch,​ CURLOPT_USERPWD,​ "​username:​password"​);​
Line 434: Line 443:
  
 <​code>​ <​code>​
-curl -u username:​password "http://hosting.plumgroup.com/​ws/​sms/​messages.json/?​offset=0&​limit=50&​start_timestamp=0&​end_timestamp=0"​+curl -u username:​password "https://hosting.plumvoice.com/​ws/​sms/​messages.json/?​offset=0&​limit=50&​start_timestamp=0&​end_timestamp=0"​
 </​code>​ </​code>​