Class Fetcher<T extends Resource>

    • Constructor Detail

      • Fetcher

        public Fetcher()
    • Method Detail

      • fetchAsync

        public CompletableFuture<T> fetchAsync()
        Execute an async request using default client.
        Returns:
        future that resolves to requested object
      • fetchAsync

        public CompletableFuture<T> fetchAsync​(TwilioRestClient client)
        Execute an async request using specified client.
        Parameters:
        client - client used to make request
        Returns:
        future that resolves to requested object
      • fetch

        public T fetch()
        Execute a request using default client.
        Returns:
        Requested object
      • fetch

        public abstract T fetch​(TwilioRestClient client)
        Execute a request using specified client.
        Parameters:
        client - client used to make request
        Returns:
        Requested object