Class CredentialFetcher

    • Constructor Detail

      • CredentialFetcher

        public CredentialFetcher​(String pathCredentialListSid,
                                 String pathSid)
        Construct a new CredentialFetcher.
        Parameters:
        pathCredentialListSid - The unique id that identifies the credential list that contains the desired credential
        pathSid - The unique id that identifies the resource to fetch.
      • CredentialFetcher

        public CredentialFetcher​(String pathAccountSid,
                                 String pathCredentialListSid,
                                 String pathSid)
        Construct a new CredentialFetcher.
        Parameters:
        pathAccountSid - The unique id of the Account that is responsible for this resource.
        pathCredentialListSid - The unique id that identifies the credential list that contains the desired credential
        pathSid - The unique id that identifies the resource to fetch.
    • Method Detail

      • fetch

        public Credential fetch​(TwilioRestClient client)
        Make the request to the Twilio API to perform the fetch.
        Specified by:
        fetch in class Fetcher<Credential>
        Parameters:
        client - TwilioRestClient with which to make the request
        Returns:
        Fetched Credential