Class AllowedOriginsCompanyLevel

    • Constructor Detail

      • AllowedOriginsCompanyLevel

        public AllowedOriginsCompanyLevel​(Client client)
    • Method Detail

      • deleteAllowedOrigin

        public void deleteAllowedOrigin​(String companyId,
                                        String apiCredentialId,
                                        String originId)
                                 throws ApiException,
                                        IOException
        Delete an allowed origin
        Parameters:
        companyId - The unique identifier of the company account. (required)
        apiCredentialId - Unique identifier of the API credential. (required)
        originId - Unique identifier of the allowed origin. (required)
        Throws:
        ApiException - if fails to make API call
        IOException
      • listAllowedOrigins

        public AllowedOriginsResponse listAllowedOrigins​(String companyId,
                                                         String apiCredentialId)
                                                  throws ApiException,
                                                         IOException
        Get a list of allowed origins
        Parameters:
        companyId - The unique identifier of the company account. (required)
        apiCredentialId - Unique identifier of the API credential. (required)
        Returns:
        AllowedOriginsResponse
        Throws:
        ApiException - if fails to make API call
        IOException
      • getAllowedOrigin

        public AllowedOrigin getAllowedOrigin​(String companyId,
                                              String apiCredentialId,
                                              String originId)
                                       throws ApiException,
                                              IOException
        Get an allowed origin
        Parameters:
        companyId - The unique identifier of the company account. (required)
        apiCredentialId - Unique identifier of the API credential. (required)
        originId - Unique identifier of the allowed origin. (required)
        Returns:
        AllowedOrigin
        Throws:
        ApiException - if fails to make API call
        IOException
      • createAllowedOrigin

        public AllowedOriginsResponse createAllowedOrigin​(String companyId,
                                                          String apiCredentialId,
                                                          AllowedOrigin allowedOrigin)
                                                   throws ApiException,
                                                          IOException
        Create an allowed origin
        Parameters:
        companyId - The unique identifier of the company account. (required)
        apiCredentialId - Unique identifier of the API credential. (required)
        allowedOrigin - (optional)
        Returns:
        AllowedOriginsResponse
        Throws:
        ApiException - if fails to make API call
        IOException