{"id":13657,"date":"2016-06-28T15:59:42","date_gmt":"2016-06-28T20:59:42","guid":{"rendered":"http:\/\/www.multitech.net\/developer\/?page_id=13657"},"modified":"2016-09-14T12:16:30","modified_gmt":"2016-09-14T17:16:30","slug":"using-curl-to-send-an-sms","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/mtr-software\/mtr-api-reference\/rcell_api_appendix\/using-curl-to-send-an-sms\/","title":{"rendered":"Using Curl to Send an SMS"},"content":{"rendered":"<p><strong>Example<\/strong>: Using Curl to send an SMS<\/p>\n<pre class=\"brush:xml\">curl -k -X PUT -H \"Content-Type:application\/json\" -d '{\r\n    \"recipients\": [\r\n        \"12345678900\",\r\n        \"00987654321\"\r\n    ],\r\n    \"message\": \"Hello world\"\r\n}' https:\/\/192.168.2.1\/api\/sms\/outbox?token=2442CB0CB60B2EE9F5A35DF5ED8C33<\/pre>\n<p><strong>Example<\/strong>: Curl result<\/p>\n<pre class=\"brush:xml\">{\r\n    \"code\" : 200, \r\n    \"status\" : \"success\"\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: medium;\"><strong>Retrieve or View SMS Response<br \/>\n<\/strong><\/span><\/p>\n<pre class=\"brush:xml\">{\r\n    https:\/\/192.168\/2\/1\/api\/sms\/outbox \r\n }<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Example: Using Curl to send an SMS curl -k -X PUT -H &#8220;Content-Type:application\/json&#8221; -d &#8216;{ &#8220;recipients&#8221;: [ &#8220;12345678900&#8221;, &#8220;00987654321&#8221; ], &#8220;message&#8221;: &#8220;Hello world&#8221; }&#8217; https:\/\/192.168.2.1\/api\/sms\/outbox?token=2442CB0CB60B2EE9F5A35DF5ED8C33 Example: Curl result { &#8220;code&#8221; : 200, &#8220;status&#8221; : &#8220;success&#8221; } &nbsp; Retrieve or View SMS Response { https:\/\/192.168\/2\/1\/api\/sms\/outbox } &nbsp;<\/p>\n","protected":false},"author":1235,"featured_media":0,"parent":13423,"menu_order":7,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-13657","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/1235"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=13657"}],"version-history":[{"count":11,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13657\/revisions"}],"predecessor-version":[{"id":14770,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13657\/revisions\/14770"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/13423"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=13657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}