Reference for http://api.esms.vn/MainService.svc/xml/GetZnsTemplateInfo?ApiKey={APIKEY}&SecretKey={SECRETKEY}&TemplateId={TEMPLATEID}&OAId={OAID}
Url: http://api.esms.vn/MainService.svc/xml/GetZnsTemplateInfo?ApiKey={APIKEY}&SecretKey={SECRETKEY}&TemplateId={TEMPLATEID}&OAId={OAID}
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:
<ZnsTemplateResultModel> <error>2147483647</error> <message>String content</message> <data> <templateId>2147483647</templateId> <templateName>String content</templateName> <status>String content</status> <listParams> <ZnsTemplateListParamsResult> <name>String content</name> <require>true</require> <type>String content</type> <maxLength>2147483647</maxLength> <minLength>2147483647</minLength> <acceptNull>true</acceptNull> </ZnsTemplateListParamsResult> <ZnsTemplateListParamsResult> <name>String content</name> <require>true</require> <type>String content</type> <maxLength>2147483647</maxLength> <minLength>2147483647</minLength> <acceptNull>true</acceptNull> </ZnsTemplateListParamsResult> </listParams> <timeout>9223372036854775807</timeout> <previewUrl>String content</previewUrl> <templateQuality>String content</templateQuality> <templateTag>String content</templateTag> </data> </ZnsTemplateResultModel>
The following is the response Xml Schema:
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="ZnsTemplateResultModel" nillable="true" type="ZnsTemplateResultModel" /> <xs:complexType name="ZnsTemplateResultModel"> <xs:sequence> <xs:element minOccurs="1" maxOccurs="1" name="error" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="message" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="data" type="ZnsTemplateDataResult" /> </xs:sequence> </xs:complexType> <xs:complexType name="ZnsTemplateDataResult"> <xs:sequence> <xs:element minOccurs="1" maxOccurs="1" name="templateId" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="templateName" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="status" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="listParams" type="ArrayOfZnsTemplateListParamsResult" /> <xs:element minOccurs="1" maxOccurs="1" name="timeout" type="xs:long" /> <xs:element minOccurs="0" maxOccurs="1" name="previewUrl" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="templateQuality" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="templateTag" type="xs:string" /> </xs:sequence> </xs:complexType> <xs:complexType name="ArrayOfZnsTemplateListParamsResult"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="ZnsTemplateListParamsResult" nillable="true" type="ZnsTemplateListParamsResult" /> </xs:sequence> </xs:complexType> <xs:complexType name="ZnsTemplateListParamsResult"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="1" name="name" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="require" type="xs:boolean" /> <xs:element minOccurs="0" maxOccurs="1" name="type" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="maxLength" type="xs:int" /> <xs:element minOccurs="1" maxOccurs="1" name="minLength" type="xs:int" /> <xs:element minOccurs="1" maxOccurs="1" name="acceptNull" type="xs:boolean" /> </xs:sequence> </xs:complexType> </xs:schema>