Search

Fetch Message

Last Updated: Mar 15, 2021

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

To know more about token and account_sid, click here.

Returns

Return Value Description
Output
  • On Success returns 1 | Message
  • On Failure returns 0 | Error Message

Sample

Fetch Message (ABCDCEF, QWERTY, DD-23)

  • Uses token ABCDCEF and account_sid QWERTY to authenticate connection to Twilio, fetches 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?