Reference for http://api.esms.vn/MainService.svc/xml/QueryCampaignStats/

Url: http://api.esms.vn/MainService.svc/xml/QueryCampaignStats/

HTTP Method: POST

Message direction Format Body
Request Xml Example,Schema
Response Xml Example,Schema

The following is an example request Xml body:

<QueryCampaignStats>
  <ApiKey>String content</ApiKey>
  <SecretKey>String content</SecretKey>
  <CampaignId>String content</CampaignId>
</QueryCampaignStats>

The following is an example response Xml body:

<CampaignStatsModelResponse>
  <CodeResult>String content</CodeResult>
  <ErrorMessage>String content</ErrorMessage>
  <Data>
    <Total>2147483647</Total>
    <Status>2147483647</Status>
    <NumSuccess>2147483647</NumSuccess>
    <NumFailed>2147483647</NumFailed>
    <Postback>true</Postback>
  </Data>
</CampaignStatsModelResponse>

The following is the request Xml Schema:

<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="QueryCampaignStats" nillable="true" type="QueryCampaignStats" />
  <xs:complexType name="QueryCampaignStats">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="ApiKey" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="SecretKey" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="CampaignId" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>

The following is the response Xml Schema:

<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="CampaignStatsModelResponse" nillable="true" type="CampaignStatsModelResponse" />
  <xs:complexType name="CampaignStatsModelResponse">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="CodeResult" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="ErrorMessage" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="Data" type="CampaignStatsModel" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CampaignStatsModel">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="Total" type="xs:int" />
      <xs:element minOccurs="1" maxOccurs="1" name="Status" type="xs:int" />
      <xs:element minOccurs="1" maxOccurs="1" name="NumSuccess" type="xs:int" />
      <xs:element minOccurs="1" maxOccurs="1" name="NumFailed" type="xs:int" />
      <xs:element minOccurs="1" maxOccurs="1" name="Postback" type="xs:boolean" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>