Sms Api (Lite)

<back to all web services

GetSmsHistory

HTTP + XML

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

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

<GetSmsHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ekomesaj.Operations">
  <Credential xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ekomesaj.Types">
    <d2p1:Password>String</d2p1:Password>
    <d2p1:ResellerID>0</d2p1:ResellerID>
    <d2p1:Username>String</d2p1:Username>
  </Credential>
  <Filter xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ekomesaj.Types">
    <d2p1:BySendingType>ByNumber</d2p1:BySendingType>
    <d2p1:EndDate i:nil="true" />
    <d2p1:IsCompletedDatas i:nil="true" />
    <d2p1:IsProcessingDatas i:nil="true" />
    <d2p1:IsWaitingDatas i:nil="true" />
    <d2p1:SmsHistoryID i:nil="true" />
    <d2p1:StartDate i:nil="true" />
  </Filter>
  <UserID i:nil="true" />
</GetSmsHistory>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetSmsHistoryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ekomesaj.Operations">
  <SmsHistories xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ekomesaj.Types" i:nil="true" />
  <Status xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ekomesaj.Types">
    <d2p1:Code>0</d2p1:Code>
    <d2p1:Description>String</d2p1:Description>
    <d2p1:Message>String</d2p1:Message>
  </Status>
</GetSmsHistoryResponse>