Reference for http://api.esms.vn/MainService.svc/xml/RegisZNSTemplateJson/
Url: http://api.esms.vn/MainService.svc/xml/RegisZNSTemplateJson/
HTTP Method: POST
Message direction | Format | Body |
---|---|---|
Request | Xml | Example,Schema |
Response | Xml | Example,Schema |
The following is an example request Xml body:
<RegisZNSTempJsonModel> <ApiKey>String content</ApiKey> <SecretKey>String content</SecretKey> <Content>String content</Content> <CTA1>String content</CTA1> <CTA2>String content</CTA2> <ImageUrl>String content</ImageUrl> <OAID>String content</OAID> <SmsType>2147483647</SmsType> <CallbackUrl>String content</CallbackUrl> </RegisZNSTempJsonModel>
The following is an example response Xml body:
<ServicePreviewResult> <CodeResult>String content</CodeResult> <ErrorMessage>String content</ErrorMessage> <Message>String content</Message> <ServicePreviewId>2147483647</ServicePreviewId> <DateActive>String content</DateActive> </ServicePreviewResult>
The following is the request Xml Schema:
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="RegisZNSTempJsonModel" nillable="true" type="RegisZNSTempJsonModel" /> <xs:complexType name="RegisZNSTempJsonModel"> <xs:complexContent mixed="false"> <xs:extension base="AuthorizeModel"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="Content" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="CTA1" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="CTA2" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="ImageUrl" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="OAID" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="SmsType" nillable="true" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="CallbackUrl" type="xs:string" /> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="AuthorizeModel"> <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: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="ServicePreviewResult" nillable="true" type="ServicePreviewResult" /> <xs:complexType name="ServicePreviewResult"> <xs:complexContent mixed="false"> <xs:extension base="ResultModel"> <xs:sequence> <xs:element minOccurs="1" maxOccurs="1" name="ServicePreviewId" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="DateActive" type="xs:string" /> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:complexType name="ResultModel"> <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="Message" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:schema>