Class ServiceReader


  • public class ServiceReader
    extends Reader<Service>
    PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
    • Constructor Detail

      • ServiceReader

        public ServiceReader()
    • Method Detail

      • read

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

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

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