Api

<back to all web services

Query

Query gönderilerinizin raporlarını almanızı sağlayan servistir.

REST Paths

The following REST paths are available for this service.

All Verbs /api/xml/reply/Query
All Verbs /api/json/reply/Query
All Verbs /xml/reply/Query
All Verbs /json/reply/Query

To override the Content-type in your clients HTTP Accept Header, append ?format=xml

HTTP + XML

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

POST /xml/syncreply/Query HTTP/1.1 
Host: gw.barabut.com 
Content-Type: application/xml
Content-Length: length

<Query xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="SmsApi">
  <Credential>
    <Password>String</Password>
    <Username>String</Username>
  </Credential>
  <MSISDN>String</MSISDN>
  <MessageId>0</MessageId>
  <PageIndex>0</PageIndex>
  <PageSize>0</PageSize>
</Query>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<QueryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="SmsApi">
  <Response>
    <ReportDetail>
      <List>
        <ReportDetailItem>
          <Cost>0</Cost>
          <ErrorCode>0</ErrorCode>
          <Id>0</Id>
          <LastUpdated>0001-01-01T00:00:00</LastUpdated>
          <MSISDN>String</MSISDN>
          <MessageId>0</MessageId>
          <Network>0</Network>
          <Payload>String</Payload>
          <Sequence>0</Sequence>
          <State>String</State>
          <Submitted>0001-01-01T00:00:00</Submitted>
          <Xser>String</Xser>
        </ReportDetailItem>
      </List>
      <TotalCount>0</TotalCount>
    </ReportDetail>
    <Status>
      <Code>0</Code>
      <Description>String</Description>
    </Status>
  </Response>
</QueryResponse>