Search

Fetch Message

Last Updated: Nov 4, 2020

Articles

Use this function to fetch a message.

Syntax

Fetch Message (token, account_sid, message_id)

Parameters

Input Parameter Name Description
token Used for authentication
account_sid Used for authentication
message_id ID of the message to be fetched

Returns

Return Value Description
Output
  • On Success: 1, Message
  • On Failure: 0, Error Message

Sample

Fetch Message (ABCDCEF, NC-45, DD-23)

  • Uses the token ‘ABCDCEF’ and the account_sid ‘NC-45’ to authenticate the connection to the Twilio application, fetches the message with ID ‘DD-23’.
    Returns the ‘Message’ fetched.

To view all the Twilio functions, click here.

Did you find what you were looking for?