get_sms_conversation

A get_sms_conversation request will return the details of a specific conversation from among those listed by the get_sms_conversations request.

 

parameter
purpose
username
The user's login name.
password
The user's login password.
sms_line
sms (telephone) line to check messages from.
conversation
The conversation ID returned from the get_sms_conversations method - usually the other party's DID.
new
Possible values: "1" or "0" (where "1" = true and "0" = false.)
direction
The direction traveled by the messages(s). Possible values: "in" and "out". Blank signifies both directions.
time
The Unix time that the SMS message was sent.
msgdata
The 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_conversation soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <username xsi:type="xsd:string">xxxxxxxxxxxxx</username>
         <password xsi:type="xsd:string">xxxxxxxxxxxxxx</password>
         <sms_line xsi:type="xsd:string">16466991010</sms_line>
         <conversation xsi:type="xsd:string">19175551122</conversation>
      </urn:get_sms_conversation>
   </soapenv:Body></soapenv:Envelope>



Sample Response 
<SOAP-ENV:EnvelopeSOAP-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_conversationResponsexmlns:ns1="urn:TelebroadWebServices">
         <returnxsi:type="SOAP-ENC:Array"SOAP-ENC:arrayType="tns:sms_item[3]">
            <itemxsi:type="tns:sms_item">
               <idxsi:type="xsd:int">33789</id>
               <newxsi:type="xsd:int">0</new>
               <directionxsi:type="xsd:string">out</direction>
               <senderxsi:type="xsd:string">16466991010</sender>
               <receiverxsi:type="xsd:string">19175551122</receiver>
               <timexsi:type="xsd:string">1388002180</time>
               <msgdataxsi:type="xsd:string">got my msg?</msgdata>
            </item>
            <itemxsi:type="tns:sms_item">
               <idxsi:type="xsd:int">32078</id>
               <newxsi:type="xsd:int">0</new>
               <directionxsi:type="xsd:string">in</direction>
               <senderxsi:type="xsd:string">19175551122</sender>
               <receiverxsi:type="xsd:string">16466991010</receiver>
               <timexsi:type="xsd:string">1388002012</time>
               <msgdataxsi:type="xsd:string">sms message data comes here- lol</msgdata>
            </item>
            <itemxsi:type="tns:sms_item">
               <idxsi:type="xsd:int">33787</id>
               <newxsi:type="xsd:int">0</new>
               <directionxsi:type="xsd:string">out</direction>
               <senderxsi:type="xsd:string">16466991010</sender>
               <receiverxsi:type="xsd:string">1347555000</receiver>
               <timexsi:type="xsd:string">1388001977</time>
               <msgdataxsi:type="xsd:string">it's cool, isn't it?</msgdata>
            </item>
         </return>
      </ns1:get_sms_conversationResponse>
   </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.