Service
Click here for a complete list of operations.
SendMMS
Create a new MMS campaign
Arguments:
loginEmail: Login Email of Spread.
apiKey: The APIKey of your Spread account which you can retrieve from your Spread account (My account=> API).
subject: The Subject of MMS campaign.
mmsContent: The content of MMS campaign.
imageBase64String: The base64 string for the image of MMS campaign.
sender:The sender of MMS campaign.
schedule: The date of when to establish the MMS campaign.
campaignStatus: The status of the MMS campaign.
phoneSubscribers: An array of string contains the phone number added to this MMS campaign.
category: An array of string contains the names of categories added to this MMS campaign.
return campaignID.
Test
The test form is only available for methods with primitive types as parameters.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /service.asmx HTTP/1.1 Host: service.rspread.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://service.reasonablespread.com/SendMMS" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendMMS xmlns="http://service.reasonablespread.com/"> <loginEmail>string</loginEmail> <apiKey>string</apiKey> <subject>string</subject> <mmsContent>string</mmsContent> <imageBase64String>string</imageBase64String> <sender>string</sender> <schedule>dateTime</schedule> <campaignStatus>Deleted or Sent or Draft or Pause or Sending or Waiting or EngineSending or PreApproval or DisApproval or Approved or NRTriggering or Preparing or UploadWaiting or Inexistent</campaignStatus> <phoneSubscribers> <string>string</string> <string>string</string> </phoneSubscribers> <category> <string>string</string> <string>string</string> </category> </SendMMS> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SendMMSResponse xmlns="http://service.reasonablespread.com/"> <SendMMSResult>string</SendMMSResult> </SendMMSResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /service.asmx HTTP/1.1 Host: service.rspread.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <SendMMS xmlns="http://service.reasonablespread.com/"> <loginEmail>string</loginEmail> <apiKey>string</apiKey> <subject>string</subject> <mmsContent>string</mmsContent> <imageBase64String>string</imageBase64String> <sender>string</sender> <schedule>dateTime</schedule> <campaignStatus>Deleted or Sent or Draft or Pause or Sending or Waiting or EngineSending or PreApproval or DisApproval or Approved or NRTriggering or Preparing or UploadWaiting or Inexistent</campaignStatus> <phoneSubscribers> <string>string</string> <string>string</string> </phoneSubscribers> <category> <string>string</string> <string>string</string> </category> </SendMMS> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <SendMMSResponse xmlns="http://service.reasonablespread.com/"> <SendMMSResult>string</SendMMSResult> </SendMMSResponse> </soap12:Body> </soap12:Envelope>
HTTP GET
The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.
GET /service.asmx/SendMMS?loginEmail=string&apiKey=string&subject=string&mmsContent=string&imageBase64String=string&sender=string&schedule=string&campaignStatus=string&phoneSubscribers=string&phoneSubscribers=string&category=string&category=string HTTP/1.1 Host: service.rspread.com
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://service.reasonablespread.com/">string</string>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.
POST /service.asmx/SendMMS HTTP/1.1 Host: service.rspread.com Content-Type: application/x-www-form-urlencoded Content-Length: length loginEmail=string&apiKey=string&subject=string&mmsContent=string&imageBase64String=string&sender=string&schedule=string&campaignStatus=string&phoneSubscribers=string&phoneSubscribers=string&category=string&category=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://service.reasonablespread.com/">string</string>