Package io.mailtrap.api.subaccounts
Class SubAccountsImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.subaccounts.SubAccountsImpl
- All Implemented Interfaces:
SubAccounts
-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSubAccount(long organizationId, CreateSubAccountRequest request) Create a new sub account under the specified organization.getSubAccounts(long organizationId) Get a list of sub accounts for the specified organization.
-
Constructor Details
-
SubAccountsImpl
-
-
Method Details
-
getSubAccounts
Description copied from interface:SubAccountsGet a list of sub accounts for the specified organization. Requires sub account management permissions for the organization.- Specified by:
getSubAccountsin interfaceSubAccounts- Parameters:
organizationId- unique organization ID- Returns:
- list of sub accounts
-
createSubAccount
Description copied from interface:SubAccountsCreate a new sub account under the specified organization. Requires sub account management permissions for the organization.- Specified by:
createSubAccountin interfaceSubAccounts- Parameters:
organizationId- unique organization IDrequest- sub account data- Returns:
- created sub account
-