Methods - GetTextInbound

GetTextInbound

This method is used to retrieve all inbound SMS messages sent to a TextInbound number, set-up by the client. If the parameter Inbound_Number is an empty string then the method will return all inbound messages on all TextInbound phone numbers associated with the client. Alternatively, by entering a phone number in the Inbound_Number field, the messages received on that specific phone number will be retrieved.

Please be aware that once you have requested and received your inbound text messages, those text messages will be deleted from the TextAnywhere system and cannot be re-requested.

» Client_ID» String
» Client_Pass» String
» Inbound_Number» String

The Return Code is a CSV String.

On successful completion of this method, i.e. the SMS Gateway is able to respond, a CSV string is returned as follows: "Sender","Destination","Date","Time","Body" (followed by Carriage Return and Line Feed)

Where:

  • » Sender the mobile phone number of the sender
  • » Destination TextInbound number that the message was sent to
  • » Date the date that the message was sent
  • » Time the time that the message was sent
  • » Body the content of the message sent

There are three possible Return situations:

  • » 1There are no inbound text messages to receive, in which case an empty string is returned;
  • » 2A single inbound text message is returned, in the format above;
  • » 3Multiple inbound text messages are returned, in the above format, with each message delimited by a CRLF (Carriage Return and Line Feed combination).

Footer Bottom