Reference for http://api.esms.vn/MainService.svc/xml/CreateNewLG/
Url: http://api.esms.vn/MainService.svc/xml/CreateNewLG/
HTTP Method: POST
Message direction | Format | Body |
---|---|---|
Request | Xml | Example,Schema |
Response | Xml | Example,Schema |
The following is an example request Xml body:
<ApiModel> <ApiKey>String content</ApiKey> <SecretKey>String content</SecretKey> <Content>String content</Content> <campaignid>String content</campaignid> <SmsType>String content</SmsType> <clienttime>String content</clienttime> <Phone>String content</Phone> <Brandname>String content</Brandname> <IsUnicode>String content</IsUnicode> <RefId>String content</RefId> <RequestId>String content</RequestId> <Sandbox>String content</Sandbox> <SendDate>String content</SendDate> <CallbackUrl>String content</CallbackUrl> <AOID>String content</AOID> <OAID>String content</OAID> <TempID>String content</TempID> <Tag>String content</Tag> <Params> <string>String content</string> <string>String content</string> </Params> <DataMultiChannel>String content</DataMultiChannel> <IsJourney>true</IsJourney> <OrderId>String content</OrderId> <PartnerSource>2147483647</PartnerSource> </ApiModel>
The following is an example response Xml body:
<UserAnonymous> <CodeResult>String content</CodeResult> <ErrorMessage>String content</ErrorMessage> <Id>2147483647</Id> <Email>String content</Email> <DisplayName>String content</DisplayName> <PhoneNumber>String content</PhoneNumber> <StoreName>String content</StoreName> <StoreAddress>String content</StoreAddress> <StoreUrl>String content</StoreUrl> </UserAnonymous>
The following is the request Xml Schema:
<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="ApiModel" nillable="true" type="ApiModel" /> <xs:complexType name="ApiModel"> <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="Content" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="campaignid" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="SmsType" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="clienttime" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="Phone" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="Brandname" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="IsUnicode" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="RefId" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="RequestId" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="Sandbox" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="SendDate" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="CallbackUrl" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="AOID" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="OAID" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="TempID" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="Tag" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="Params" type="ArrayOfString" /> <xs:element minOccurs="0" maxOccurs="1" name="DataMultiChannel" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="IsJourney" nillable="true" type="xs:boolean" /> <xs:element minOccurs="0" maxOccurs="1" name="OrderId" type="xs:string" /> <xs:element minOccurs="1" maxOccurs="1" name="PartnerSource" type="xs:int" /> </xs:sequence> </xs:complexType> <xs:complexType name="ArrayOfString"> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" 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="UserAnonymous" nillable="true" type="UserAnonymous" /> <xs:complexType name="UserAnonymous"> <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="1" maxOccurs="1" name="Id" type="xs:int" /> <xs:element minOccurs="0" maxOccurs="1" name="Email" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="DisplayName" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="PhoneNumber" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="StoreName" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="StoreAddress" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="1" name="StoreUrl" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:schema>