Class VariableReader


  • public class VariableReader
    extends Reader<Variable>
    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

      • VariableReader

        public VariableReader​(String pathServiceSid,
                              String pathEnvironmentSid)
        Construct a new VariableReader.
        Parameters:
        pathServiceSid - Service Sid.
        pathEnvironmentSid - Environment Sid.
    • Method Detail

      • read

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

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

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