Difference between revisions of "Send HTTPS"

From SMS Wiki
Jump to: navigation, search
(Send SMS from your application using HTTPS)
 
Line 9: Line 9:
  
 
Explanation of parameters
 
Explanation of parameters
Token and signature are used for authentication. You need to obtain token and signature only once. Here is how
+
Token and signature are used for authentication. You need to obtain token and signature only once. Here is [http://api.upsidewireless.com/soap/Authentication.asmx?op=GetParameters  how]
  
 
recipient - number to which you are sending the message in International format. For example, a US number would be 12125555555
 
recipient - number to which you are sending the message in International format. For example, a US number would be 12125555555

Latest revision as of 13:42, 26 January 2015

Send SMS from your application using HTTPS

For quick implementation you can use HTTPS method to send SMS messages. To send, create a string similar to the one below and execute it from your application.


https: // secureapi.upsidewireless.com/soap/SMS.asmx/Send_Plain?token=w222222-8e4b-405b-998c-a580bf593b76&signature=444444444/yvg6bwEHqBhlc&recipient=17785550767&message=Hello World&encoding=Seven


Explanation of parameters Token and signature are used for authentication. You need to obtain token and signature only once. Here is how

recipient - number to which you are sending the message in International format. For example, a US number would be 12125555555

Message - text of message you want to send (max 160 characters)

encoding: Use Seven for ASCII, Sixteen if you are sending UNICODE text (in this case max text length is 70 characters)



Result string will be similar to this:

<SMSSendResult>

<isOk>true</isOk>

<trackingId>MTID355136276238353223</trackingId>

<number>17788580767</number>

<convertedNumber>+17788580767</convertedNumber>

<deferUntilOccursInThePast>false</deferUntilOccursInThePast>

<messageIsEmpty>false</messageIsEmpty>

<tooManyMessages>false</tooManyMessages>

<invalidCountryCode>false</invalidCountryCode>

<isBlocked>false</isBlocked>

<balanceIsZero>false</balanceIsZero>

<invalidCarrierCode>false</invalidCarrierCode>

</SMSSendResult>