Reference for http://api.esms.vn/MainService.svc/xml/OTP/GetPhoneOTP?ApiKey={APIKEY}&SecretKey={SECRETKEY}&AppName={APPNAME}&CallBackURL={CALLBACKURL}

Url: http://api.esms.vn/MainService.svc/xml/OTP/GetPhoneOTP?ApiKey={APIKEY}&SecretKey={SECRETKEY}&AppName={APPNAME}&CallBackURL={CALLBACKURL}

HTTP Method: GET

Message direction Format Body
Request N/A The Request body is empty.
Response Xml Example,Schema

The following is an example response Xml body:

<OtpvnResult>
  <CodeResult>2147483647</CodeResult>
  <Message>String content</Message>
  <Phone>String content</Phone>
  <AppName>String content</AppName>
</OtpvnResult>

The following is the response Xml Schema:

<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="OtpvnResult" nillable="true" type="OtpvnResult" />
  <xs:complexType name="OtpvnResult">
    <xs:sequence>
      <xs:element minOccurs="1" maxOccurs="1" name="CodeResult" type="xs:int" />
      <xs:element minOccurs="0" maxOccurs="1" name="Message" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="Phone" type="xs:string" />
      <xs:element minOccurs="0" maxOccurs="1" name="AppName" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>