Account
- class fabman.account.Account(requester: Requester, attributes: dict)
Handles Account objects from the Fabman API. In most cases, this only returns information about the API key holders account. Since most API endpoints in this object require superuser privileges, they are not implemented.
Initialize the Object. Stores the requester method to interact with the API for further calls
- Parameters:
requester (
Requester) – TheRequesterobject to make requests withattributes (dict) – The attributes to initialize this object with
- get_payment_info(**kwargs) PaymentInfo
Get information about the payment plan of the account.
- Calls:
“GET /accounts/{id}/payment-info” <https://fabman.io/api/v1/documentation#/accounts/getAccountsIdPaymentinfo>
- Returns:
Information about the payment plan of the account.
- Return type:
- update(**kwargs) None
Update information on the account. Note that many fields may be unalterable by the API key holder.
- Calls:
“PUT /accounts/{id}” <https://fabman.io/api/v1/documentation#/account/putAccountsId>
- Returns:
None
- Return type:
None
- class fabman.account.PaymentInfo(requester: Requester, attributes: dict)
Holds PaymentInfo as returned from the accounts endpoint.
Initialize the Object. Stores the requester method to interact with the API for further calls
- Parameters:
requester (
Requester) – TheRequesterobject to make requests withattributes (dict) – The attributes to initialize this object with