This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
plumdevguide:smsoutbound [2017/11/08 16:44] admin |
plumdevguide:smsoutbound [2017/11/09 11:54] admin |
||
---|---|---|---|
Line 68: | Line 68: | ||
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 133: | ||
<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 159: | ||
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 187: | ||
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 222: | ||
<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 235: | ||
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 299: | ||
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 310: | ||
<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 323: | ||
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 421: | ||
// 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 434: | ||
<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> |