Class MessageFetcher

    • Constructor Detail

      • MessageFetcher

        public MessageFetcher​(String pathServiceSid,
                              String pathChannelSid,
                              String pathSid)
        Construct a new MessageFetcher.
        Parameters:
        pathServiceSid - The SID of the Service to fetch the resource from
        pathChannelSid - The unique ID of the Channel the message to fetch belongs to
        pathSid - The unique string that identifies the resource
    • Method Detail

      • fetch

        public Message fetch​(TwilioRestClient client)
        Make the request to the Twilio API to perform the fetch.
        Specified by:
        fetch in class Fetcher<Message>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Fetched Message