Class WebhookReader
- java.lang.Object
-
- com.twilio.base.Reader<Webhook>
-
- com.twilio.rest.messaging.v1.session.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 Summary
Constructors Constructor Description WebhookReader(String pathSessionSid)
Construct a new WebhookReader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Page<Webhook>
firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.Page<Webhook>
getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.Page<Webhook>
nextPage(Page<Webhook> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.Page<Webhook>
previousPage(Page<Webhook> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.ResourceSet<Webhook>
read(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
-
-
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.
-
firstPage
public Page<Webhook> firstPage(TwilioRestClient client)
Make the request to the Twilio API to perform the read.
-
getPage
public Page<Webhook> getPage(String targetUrl, TwilioRestClient client)
Retrieve the target page from the Twilio API.
-
nextPage
public Page<Webhook> nextPage(Page<Webhook> page, TwilioRestClient client)
Retrieve the next page from the Twilio API.
-
previousPage
public Page<Webhook> previousPage(Page<Webhook> page, TwilioRestClient client)
Retrieve the previous page from the Twilio API.- Specified by:
previousPage
in classReader<Webhook>
- Parameters:
page
- current pageclient
- TwilioRestClient with which to make the request- Returns:
- Previous Page
-
-