Class WebhookReader


  • public class WebhookReader
    extends Reader<Webhook>
    PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
    • Constructor Detail

      • WebhookReader

        public WebhookReader​(String pathSessionSid)
        Construct a new WebhookReader.
        Parameters:
        pathSessionSid - The unique id of the Session for this webhook.
    • Method Detail

      • read

        public ResourceSet<Webhook> read​(TwilioRestClient client)
        Make the request to the Twilio API to perform the read.
        Specified by:
        read in class Reader<Webhook>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Webhook ResourceSet
      • firstPage

        public Page<Webhook> firstPage​(TwilioRestClient client)
        Make the request to the Twilio API to perform the read.
        Specified by:
        firstPage in class Reader<Webhook>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Webhook ResourceSet
      • getPage

        public Page<Webhook> getPage​(String targetUrl,
                                     TwilioRestClient client)
        Retrieve the target page from the Twilio API.
        Specified by:
        getPage in class Reader<Webhook>
        Parameters:
        targetUrl - API-generated URL for the requested results page
        client - TwilioRestClient with which to make the request
        Returns:
        Webhook ResourceSet