This API sends either an SMS text or an MMS to a group of subscribers or a subscriber referenced by the subscriber reference id belonging to a certain messaging campaign. If you are sending an SMS, you must include some SMS text. If you are sending an MMS, you must include the MMSID of the MMS. Do not include both SMS text and MMSID in the same request.
<REQUEST> <ACTION>sendMessageBySubscriberRef</ACTION> <API_KEY>APIKey</API_KEY> <MMSID>MMSID</MMSID> <TEXT>SMSText</TEXT> <SUBSCRIBERREF>SubscriberRefID</SUBSCRIBERREF> <CAMPAIGNREF>CampaignReferenceID</CAMPAIGNREF> </REQUEST>
API_URL?action=sendmessagebysubscriberref &api_key=API key &mmsid=MMSID &text=SMS text &subscriberref=subscriber reference ID &campaignref=campaign reference ID
If sending MMS: Mandatory: action, api_key, mmsid, subscriberref, campaignr If sending SMS: Mandatory: action, api_key, text, subscriberref, campaignref
subscriberref, campaignref, subscriber, status, trackingid, to, from, statusdetails, errorcode, errorinfo
<REQUEST> <ACTION>sendMessageBySubscriberRef</ACTION> <API_KEY>qTFkykO9JTfahCOqJ0V2Wf5Cg1t8iWlZ</API_KEY> <MMSID>35674</MMSID> <SUBSCRIBERREF>ACCT-123232</SUBSCRIBERREF> <CAMPAIGNREF>Campaign123</CAMPAIGNREF> </REQUEST>
https://secure.skycore.com/API/wxml/1.3/index.php?action=sendmessagebysubscriberref &api_key=qTFkykO9JTfahCOqJ0V2Wf5Cg1t8iWlZ &mmsid=35674 &subscriberref=ACCT-123232 &campaignref=Campaign123
<RESPONSE> <SUBSCRIBERREF>ACCT-123232</SUBSCRIBERREF> <CAMPAIGNREF>Campaign123</CAMPAIGNREF> <SUBSCRIBER> <STATUS>Success</STATUS> <TRACKINGID>DrXAFP-Ylpc-JZL</TRACKINGID> <TO>16501234123</TO> <FROM>60856</FROM> <STATUSDETAILS>MMS request accepted and queued for delivery</STATUSDETAILS> </SUBSCRIBER> <SUBSCRIBER> <STATUS>Success</STATUS> <TRACKINGID>DrXAFP-gIVU-JZL</TRACKINGID> <TO>16501233154</TO> <FROM>60856</FROM> <STATUSDETAILS>MMS request accepted and queued for delivery</STATUSDETAILS> </SUBSCRIBER> <SUBSCRIBER> <STATUS>Success</STATUS> <TRACKINGID>DrXAFP-vmcQ-JZL</TRACKINGID> <TO>16501234267</TO> <FROM>60856</FROM> <STATUSDETAILS>MMS request accepted and queued for delivery</STATUSDETAILS> </SUBSCRIBER> </RESPONSE>
<RESPONSE> <STATUS>Failure</STATUS> <ERRORCODE>E717</ERRORCODE> <TO>16501234123</TO> <ERRORINFO>Either MMSID or SMS Text is allowed not both</ERRORINFO> </RESPONSE>