Sms Api v.2MainLite ApiLite Api(Ext)ProxyTavsiye edilen format: JSON

<back to all web services

SendSmsByMsisdn

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/syncreply/SendSmsByMsisdn HTTP/1.1 
Host: api.ekomesaj.com 
Content-Type: application/xml
Content-Length: length

<SendSmsByMsisdn xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Guide.Api.Contract">
  <Credential xmlns:d2p1="http://schemas.datacontract.org/2004/07/Guide.WebService.ServiceModel" xmlns="http://schemas.datacontract.org/2004/07/Guide.Api.Contract.Base">
    <d2p1:Password>String</d2p1:Password>
    <d2p1:ResellerID>0</d2p1:ResellerID>
    <d2p1:Username>String</d2p1:Username>
  </Credential>
  <Sms xmlns:d2p1="http://schemas.datacontract.org/2004/07/Guide.WebService.ServiceModel">
    <d2p1:ApprovedKey>String</d2p1:ApprovedKey>
    <d2p1:CanSendSmsToDuplicateMsisdn>false</d2p1:CanSendSmsToDuplicateMsisdn>
    <d2p1:DataCoding>Default</d2p1:DataCoding>
    <d2p1:EndTime i:nil="true" />
    <d2p1:PackageSize i:nil="true" />
    <d2p1:RequestGuid>String</d2p1:RequestGuid>
    <d2p1:Route>0</d2p1:Route>
    <d2p1:ScheduledDeliveryTime i:nil="true" />
    <d2p1:SenderName>String</d2p1:SenderName>
    <d2p1:SmsContent>String</d2p1:SmsContent>
    <d2p1:SmsSendingType>ByNumber</d2p1:SmsSendingType>
    <d2p1:SmsTitle>String</d2p1:SmsTitle>
    <d2p1:StartTime i:nil="true" />
    <d2p1:TimePeriod i:nil="true" />
    <d2p1:ValidityPeriod>0</d2p1:ValidityPeriod>
    <d2p1:IsCreateFromTeplate>false</d2p1:IsCreateFromTeplate>
    <d2p1:To>
      <d2p1:SmsByMsisdnInfo>
        <d2p1:CustomField1>String</d2p1:CustomField1>
        <d2p1:Msisdn>0</d2p1:Msisdn>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:Surname>String</d2p1:Surname>
      </d2p1:SmsByMsisdnInfo>
    </d2p1:To>
  </Sms>
</SendSmsByMsisdn>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SendSmsByMsisdnResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Guide.Api.Contract">
  <Status xmlns:d2p1="http://schemas.datacontract.org/2004/07/Guide.WebService.ServiceModel" xmlns="http://schemas.datacontract.org/2004/07/Guide.Api.Contract.Base">
    <d2p1:Code>0</d2p1:Code>
    <d2p1:Description>String</d2p1:Description>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:TransactionID>String</d2p1:TransactionID>
  </Status>
  <MessageID>0</MessageID>
</SendSmsByMsisdnResponse>