REAST API help
Posted: Thu Feb 06, 2014 5:07 pm
Hi Livecoders,
I’ve subscribed to a SMS text message service that uses a simple REST or SOAP API
I’ve built an application in Delphi that use SOAP/ActiveX to dispatch the message and read the response but would really like to use the REST API in a Livecode desktop application, I’m new to Livecode and struggling to understand where to start with this simple task.
Could somebody be kind enough to write me some pseudo code and point me in the right direction: the key elements are:
URL: <THE_URL_TO_SEND_TO>
Method: POST
Authentication: Basic / Session
Example request:
<?xml version='1.0' encoding='UTF-8'?>
<messages>
<accountreference>MYACCOUNTDETAILS</accountreference>
<message>
<to>44xxxxxxxxxx</to>
<body>Hello World!</body>
</message>
</messages>
Response: Content Type: application/xml HTTP Status Code: 200
Thanks in advance.
I did originally post this message in the "complete beginners" forum but now think it may be better posted here. - apologies for double postings as this has now become quite pressing
Col.
I’ve subscribed to a SMS text message service that uses a simple REST or SOAP API
I’ve built an application in Delphi that use SOAP/ActiveX to dispatch the message and read the response but would really like to use the REST API in a Livecode desktop application, I’m new to Livecode and struggling to understand where to start with this simple task.
Could somebody be kind enough to write me some pseudo code and point me in the right direction: the key elements are:
URL: <THE_URL_TO_SEND_TO>
Method: POST
Authentication: Basic / Session
Example request:
<?xml version='1.0' encoding='UTF-8'?>
<messages>
<accountreference>MYACCOUNTDETAILS</accountreference>
<message>
<to>44xxxxxxxxxx</to>
<body>Hello World!</body>
</message>
</messages>
Response: Content Type: application/xml HTTP Status Code: 200
Thanks in advance.
I did originally post this message in the "complete beginners" forum but now think it may be better posted here. - apologies for double postings as this has now become quite pressing
Col.