11.07.2015 Views

Sending SMS using the Application Programming Interface - MCTel

Sending SMS using the Application Programming Interface - MCTel

Sending SMS using the Application Programming Interface - MCTel

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VIDEO<strong>SMS</strong> HTTP/HTML <strong>Interface</strong> Manual v. 1.2 Numeric detailed error cause. A messagesuccessfully transmitted to recipient return 1.Please refer to appendex 1 for <strong>the</strong> list of errorcodes.< MSGTEXTERROR> Detailed error cause in text format explaining<strong>the</strong> error code. When known, specify <strong>the</strong> date/time of <strong>the</strong>successful reception by recipient mobile, or incase of an error of <strong>the</strong> last transmission retry.51Invalid or unknownmobile number27/07/2004 - 15:33Note : when <strong>the</strong> TestMode has been selected and set to 2 (TestMode=2), <strong>the</strong> HTML page will<strong>the</strong>n list all <strong>the</strong> request attributes received in order to help debugging <strong>the</strong> applications. In thiscase, <strong>the</strong> <strong>SMS</strong> will not be transmitted to <strong>the</strong> recipient and <strong>the</strong> user account will not beencharged.ExamplesExample of simple GET requestFrom any Web browser, you could test <strong>the</strong> sending of a <strong>SMS</strong> message by calling <strong>the</strong> URLbelow (modify your account userid and userpwd and <strong>the</strong> mobile number to use) :http://www.smsfax.com/cgibin/sendsms.cgi?command=sendsms&version=1.0&userid=mctel&userpwd=123456&msgcontent='This is a test'&destnum=%2B33607998877You will receive a return status Web page formatted as below (use <strong>the</strong> 'View source'command of your browser to see all <strong>the</strong> HTML source code) :sendsms1 Ok 138184 Warning: if <strong>the</strong> IP address check has been enabled (recommended), only GET or POSTrequests originating for <strong>the</strong> enabled authorized address will be accepted.To request <strong>the</strong> status of a <strong>SMS</strong> previously sent (specify <strong>the</strong> <strong>SMS</strong> reference returned in <strong>the</strong> field):Monaco Telematique MCTEL 25 July 2004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!