SMS JSON Outbound - "error":"missing POST parameter \"to\""
Posted: Tue Aug 23, 2016 7:53 pm
Hi,
We are new to Plum Dev and trying to get our SMS JSON outbound request to be accepted. My request is:
POST /ws/sms/queue.json HTTP/1.1
User-Agent: VOXAPM/3.0.0
Content-Type: text/html
Content-Length: 93
Host: hosting.plumgroup.com
Connection: Keep-Alive
Accept-Encoding: gzip,deflate
Authorization: Basic <auth hash>
{"to":"18565551212","from":"<10 digit plumdev number>","body":"Testing from VOX Telehealth.","result_url":""}
http://hosting.plumgroup.com/ws/sms/queue.json replies with:
HTTP/1.1 200 OK [Date: Tue, 23 Aug 2016 23:39:21 GMT, Server: Apache/1.3.41 (Unix) PHP/5.2.13 mod_ssl/2.8.31 OpenSSL/0.9.8e-fips-rhel5, X-Powered-By: PHP/5.2.13, Keep-Alive: timeout=2, max=100, Connection: Keep-Alive, Transfer-Encoding: chunked, Content-Type: text/plain
{"status":"failure","error":"missing POST parameter \"to\""}
Basic auth is successful. I have also tried changing the Content-Type to application/json and text/plain with no success. Also tried removing the result_url parameter. What am I doing wrong?
Thanks
Chris
We are new to Plum Dev and trying to get our SMS JSON outbound request to be accepted. My request is:
POST /ws/sms/queue.json HTTP/1.1
User-Agent: VOXAPM/3.0.0
Content-Type: text/html
Content-Length: 93
Host: hosting.plumgroup.com
Connection: Keep-Alive
Accept-Encoding: gzip,deflate
Authorization: Basic <auth hash>
{"to":"18565551212","from":"<10 digit plumdev number>","body":"Testing from VOX Telehealth.","result_url":""}
http://hosting.plumgroup.com/ws/sms/queue.json replies with:
HTTP/1.1 200 OK [Date: Tue, 23 Aug 2016 23:39:21 GMT, Server: Apache/1.3.41 (Unix) PHP/5.2.13 mod_ssl/2.8.31 OpenSSL/0.9.8e-fips-rhel5, X-Powered-By: PHP/5.2.13, Keep-Alive: timeout=2, max=100, Connection: Keep-Alive, Transfer-Encoding: chunked, Content-Type: text/plain
{"status":"failure","error":"missing POST parameter \"to\""}
Basic auth is successful. I have also tried changing the Content-Type to application/json and text/plain with no success. Also tried removing the result_url parameter. What am I doing wrong?
Thanks
Chris