Initializes the API interaction instance
the API token created for your account. If not passed, it will be read from the environment variable IUGU_TOKEN
the IUGU account ID
Returns the account ID
Sets the account ID. Needed only for payment token creation.
Returns the current instance API token
Access the customer API
Access the payment token API
Access the plan API
Access the subscription API
Returns the string to be set to the Authorization header
Output format: "Basic (base64 encoded string: {API token} + ':')"
Creates a new PagedRequest, setting to API url and the authorization header
The HTTP method to be used
The API endpoint, with the preceeding slash
Creates a new Request, setting to API url and the authorization header
The HTTP method to be used
The API endpoint, with the preceeding slash
Generated using TypeDoc
The class for interaction with IUGU.
Should be constructed passing the API token as parameter (see https://dev.iugu.com/v1.0/reference#autentica%C3%A7%C3%A3o)