get_sms_conversations

A get_sms_conversations request will return a list of all sms conversations previously communicated through a selected telephone line.


Parameter
Purpose
usernameThe user's login name.
passwordThe user's login password.
sms_lineSMS (telephone) line from which to check messages.
idThe conversation ID.
newPossible values: "1" or "0" (where "1" = true and "0" = false)
directionThe direction traveled by the messages(s). Possible values: "in" and "out". Blank signifies both directions.
senderThe name of the sender of the message.
receiverThe name of the receiver of the message.
timeThe Unix time that the SMS message was sent.
msgdataThe actual content of an SMS message.



Sample Request
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:TelebroadWebServices">
   <soapenv:Header/>
   <soapenv:Body>
      <urn:get_sms_conversations soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <username xsi:type="xsd:string">xxxxxxxxxx</username>
         <password xsi:type="xsd:string">xxxxxxxxxxx</password>
         <sms_line xsi:type="xsd:string">16466991010</sms_line>
      </urn:get_sms_conversations>
   </soapenv:Body>
</soapenv:Envelope>



Sample Response
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:TelebroadWebServices">
   <SOAP-ENV:Body>
      <ns1:get_sms_conversationsResponse xmlns:ns1="urn:TelebroadWebServices">
         <return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:sms_item[4]">
            <item xsi:type="tns:sms_item">
               <id xsi:type="xsd:int">19175551122</id>
               <new xsi:type="xsd:int">1</new>
               <direction xsi:type="xsd:string">in</direction>
               <sender xsi:type="xsd:string">19175551122</sender>
               <receiver xsi:type="xsd:string">16466991010</receiver>
               <time xsi:type="xsd:string">1388430944</time>
               <msgdata xsi:type="xsd:string">Test message</msgdata>
            </item>
            <item xsi:type="tns:sms_item">
               <id xsi:type="xsd:int">13475551122</id>
               <new xsi:type="xsd:int">0</new>
               <direction xsi:type="xsd:string">out</direction>
               <sender xsi:type="xsd:string">16466991010</sender>
               <receiver xsi:type="xsd:string">13475551122</receiver>
               <time xsi:type="xsd:string">1388002180</time>
               <msgdata xsi:type="xsd:string">i bet u that's gr8!</msgdata>
            </item>
         </return>
      </ns1:get_sms_conversationsResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.