Package software.xdev.brevo.api
Class ResellerApi
java.lang.Object
software.xdev.brevo.client.BaseApi
software.xdev.brevo.api.ResellerApi
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCredits(String childIdentifier, AddCredits addCredits) Add Email and/or SMS credits to a specific child accountaddCredits(String childIdentifier, AddCredits addCredits, Map<String, String> additionalHeaders) Add Email and/or SMS credits to a specific child accountvoidassociateIpToChild(String childIdentifier, ManageIp ip) Associate a dedicated IP to the childvoidAssociate a dedicated IP to the childvoidcreateChildDomain(String childIdentifier, AddChildDomain addChildDomain) Create a domain for a child accountvoidcreateChildDomain(String childIdentifier, AddChildDomain addChildDomain, Map<String, String> additionalHeaders) Create a domain for a child accountcreateResellerChild(CreateChild createChild) Creates a reseller childcreateResellerChild(CreateChild createChild, Map<String, String> additionalHeaders) Creates a reseller childvoiddeleteChildDomain(String childIdentifier, String domainName) Delete the sender domain of the reseller child based on the childIdentifier and domainName passedvoidDelete the sender domain of the reseller child based on the childIdentifier and domainName passedvoiddeleteResellerChild(String childIdentifier) Delete a single reseller child based on the child identifier suppliedvoiddeleteResellerChild(String childIdentifier, Map<String, String> additionalHeaders) Delete a single reseller child based on the child identifier suppliedvoiddissociateIpFromChild(String childIdentifier, ManageIp ip) Dissociate a dedicated IP to the childvoidDissociate a dedicated IP to the childgetChildAccountCreationStatus(String childIdentifier) Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the childIdentifier suppliedgetChildAccountCreationStatus(String childIdentifier, Map<String, String> additionalHeaders) Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the childIdentifier suppliedgetChildDomains(String childIdentifier) Get all sender domains for a specific child accountgetChildDomains(String childIdentifier, Map<String, String> additionalHeaders) Get all sender domains for a specific child accountgetChildInfo(String childIdentifier) Get a child account's detailsgetChildInfo(String childIdentifier, Map<String, String> additionalHeaders) Get a child account's detailsgetResellerChilds(Long limit, Long offset) Get the list of all children accountsGet the list of all children accountsgetSsoToken(String childIdentifier) Get session token to access Brevo (SSO) It returns a session [token] which will remain valid for a short period of time.getSsoToken(String childIdentifier, Map<String, String> additionalHeaders) Get session token to access Brevo (SSO) It returns a session [token] which will remain valid for a short period of time.<T> TinvokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) Directly invoke the API for the given URL.removeCredits(String childIdentifier, RemoveCredits removeCredits) Remove Email and/or SMS credits from a specific child accountremoveCredits(String childIdentifier, RemoveCredits removeCredits, Map<String, String> additionalHeaders) Remove Email and/or SMS credits from a specific child accountvoidupdateChildAccountStatus(String childIdentifier, UpdateChildAccountStatus updateChildAccountStatus) Update info of reseller's child account status based on the identifier suppliedvoidupdateChildAccountStatus(String childIdentifier, UpdateChildAccountStatus updateChildAccountStatus, Map<String, String> additionalHeaders) Update info of reseller's child account status based on the identifier suppliedvoidupdateChildDomain(String childIdentifier, String domainName, UpdateChildDomain updateChildDomain) Update the sender domain of reseller's child based on the childIdentifier and domainName passedvoidupdateChildDomain(String childIdentifier, String domainName, UpdateChildDomain updateChildDomain, Map<String, String> additionalHeaders) Update the sender domain of reseller's child based on the childIdentifier and domainName passedvoidupdateResellerChild(String childIdentifier, UpdateChild resellerChild) Update info of reseller's child based on the child identifier suppliedvoidupdateResellerChild(String childIdentifier, UpdateChild resellerChild, Map<String, String> additionalHeaders) Update info of reseller's child based on the child identifier suppliedMethods inherited from class software.xdev.brevo.client.BaseApi
getApiClient, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, setApiClient
-
Constructor Details
-
ResellerApi
public ResellerApi() -
ResellerApi
-
-
Method Details
-
addCredits
public RemainingCreditModel addCredits(String childIdentifier, AddCredits addCredits) throws ApiException Add Email and/or SMS credits to a specific child account- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)addCredits- Values to post to add credit to a specific child account (required)- Returns:
- RemainingCreditModel
- Throws:
ApiException- if fails to make API call
-
addCredits
public RemainingCreditModel addCredits(String childIdentifier, AddCredits addCredits, Map<String, String> additionalHeaders) throws ApiExceptionAdd Email and/or SMS credits to a specific child account- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)addCredits- Values to post to add credit to a specific child account (required)additionalHeaders- additionalHeaders for this call- Returns:
- RemainingCreditModel
- Throws:
ApiException- if fails to make API call
-
associateIpToChild
Associate a dedicated IP to the child- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)ip- IP to associate (required)- Throws:
ApiException- if fails to make API call
-
associateIpToChild
public void associateIpToChild(String childIdentifier, ManageIp ip, Map<String, String> additionalHeaders) throws ApiExceptionAssociate a dedicated IP to the child- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)ip- IP to associate (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
createChildDomain
public void createChildDomain(String childIdentifier, AddChildDomain addChildDomain) throws ApiException Create a domain for a child account- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)addChildDomain- Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)- Throws:
ApiException- if fails to make API call
-
createChildDomain
public void createChildDomain(String childIdentifier, AddChildDomain addChildDomain, Map<String, String> additionalHeaders) throws ApiExceptionCreate a domain for a child account- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)addChildDomain- Sender domain to add for a specific child account. This will not be displayed to the parent account. (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
createResellerChild
Creates a reseller child- Parameters:
createChild- reseller child to add (optional)- Returns:
- CreateReseller
- Throws:
ApiException- if fails to make API call
-
createResellerChild
public CreateReseller createResellerChild(CreateChild createChild, Map<String, String> additionalHeaders) throws ApiExceptionCreates a reseller child- Parameters:
createChild- reseller child to add (optional)additionalHeaders- additionalHeaders for this call- Returns:
- CreateReseller
- Throws:
ApiException- if fails to make API call
-
deleteChildDomain
Delete the sender domain of the reseller child based on the childIdentifier and domainName passed- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)domainName- Pass the existing domain that needs to be deleted (required)- Throws:
ApiException- if fails to make API call
-
deleteChildDomain
public void deleteChildDomain(String childIdentifier, String domainName, Map<String, String> additionalHeaders) throws ApiExceptionDelete the sender domain of the reseller child based on the childIdentifier and domainName passed- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)domainName- Pass the existing domain that needs to be deleted (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
deleteResellerChild
Delete a single reseller child based on the child identifier supplied- Parameters:
childIdentifier- Either auth key or child id of reseller's child (required)- Throws:
ApiException- if fails to make API call
-
deleteResellerChild
public void deleteResellerChild(String childIdentifier, Map<String, String> additionalHeaders) throws ApiExceptionDelete a single reseller child based on the child identifier supplied- Parameters:
childIdentifier- Either auth key or child id of reseller's child (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
dissociateIpFromChild
Dissociate a dedicated IP to the child- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)ip- IP to dissociate (required)- Throws:
ApiException- if fails to make API call
-
dissociateIpFromChild
public void dissociateIpFromChild(String childIdentifier, ManageIp ip, Map<String, String> additionalHeaders) throws ApiExceptionDissociate a dedicated IP to the child- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)ip- IP to dissociate (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getChildAccountCreationStatus
public GetChildAccountCreationStatus getChildAccountCreationStatus(String childIdentifier) throws ApiException Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the childIdentifier supplied- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)- Returns:
- GetChildAccountCreationStatus
- Throws:
ApiException- if fails to make API call
-
getChildAccountCreationStatus
public GetChildAccountCreationStatus getChildAccountCreationStatus(String childIdentifier, Map<String, String> additionalHeaders) throws ApiExceptionGet the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the childIdentifier supplied- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)additionalHeaders- additionalHeaders for this call- Returns:
- GetChildAccountCreationStatus
- Throws:
ApiException- if fails to make API call
-
getChildDomains
Get all sender domains for a specific child account- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)- Returns:
- List<GetChildDomain>
- Throws:
ApiException- if fails to make API call
-
getChildDomains
public List<GetChildDomain> getChildDomains(String childIdentifier, Map<String, String> additionalHeaders) throws ApiExceptionGet all sender domains for a specific child account- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)additionalHeaders- additionalHeaders for this call- Returns:
- List<GetChildDomain>
- Throws:
ApiException- if fails to make API call
-
getChildInfo
Get a child account's details- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)- Returns:
- GetChildInfo
- Throws:
ApiException- if fails to make API call
-
getChildInfo
public GetChildInfo getChildInfo(String childIdentifier, Map<String, String> additionalHeaders) throws ApiExceptionGet a child account's details- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)additionalHeaders- additionalHeaders for this call- Returns:
- GetChildInfo
- Throws:
ApiException- if fails to make API call
-
getResellerChilds
Get the list of all children accounts- Parameters:
limit- Number of documents for child accounts information per page (optional, default to 10)offset- Index of the first document in the page (optional, default to 0)- Returns:
- GetChildrenList
- Throws:
ApiException- if fails to make API call
-
getResellerChilds
public GetChildrenList getResellerChilds(Long limit, Long offset, Map<String, String> additionalHeaders) throws ApiExceptionGet the list of all children accounts- Parameters:
limit- Number of documents for child accounts information per page (optional, default to 10)offset- Index of the first document in the page (optional, default to 0)additionalHeaders- additionalHeaders for this call- Returns:
- GetChildrenList
- Throws:
ApiException- if fails to make API call
-
getSsoToken
Get session token to access Brevo (SSO) It returns a session [token] which will remain valid for a short period of time. A child account will be able to access a white-labeled section by using the following url pattern => https:/email.mydomain.com/login/sso?token=[token]- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)- Returns:
- GetSsoToken
- Throws:
ApiException- if fails to make API call
-
getSsoToken
public GetSsoToken getSsoToken(String childIdentifier, Map<String, String> additionalHeaders) throws ApiExceptionGet session token to access Brevo (SSO) It returns a session [token] which will remain valid for a short period of time. A child account will be able to access a white-labeled section by using the following url pattern => https:/email.mydomain.com/login/sso?token=[token]- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)additionalHeaders- additionalHeaders for this call- Returns:
- GetSsoToken
- Throws:
ApiException- if fails to make API call
-
removeCredits
public RemainingCreditModel removeCredits(String childIdentifier, RemoveCredits removeCredits) throws ApiException Remove Email and/or SMS credits from a specific child account- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)removeCredits- Values to post to remove email or SMS credits from a specific child account (required)- Returns:
- RemainingCreditModel
- Throws:
ApiException- if fails to make API call
-
removeCredits
public RemainingCreditModel removeCredits(String childIdentifier, RemoveCredits removeCredits, Map<String, String> additionalHeaders) throws ApiExceptionRemove Email and/or SMS credits from a specific child account- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)removeCredits- Values to post to remove email or SMS credits from a specific child account (required)additionalHeaders- additionalHeaders for this call- Returns:
- RemainingCreditModel
- Throws:
ApiException- if fails to make API call
-
updateChildAccountStatus
public void updateChildAccountStatus(String childIdentifier, UpdateChildAccountStatus updateChildAccountStatus) throws ApiException Update info of reseller's child account status based on the identifier supplied- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)updateChildAccountStatus- values to update in child account status (required)- Throws:
ApiException- if fails to make API call
-
updateChildAccountStatus
public void updateChildAccountStatus(String childIdentifier, UpdateChildAccountStatus updateChildAccountStatus, Map<String, String> additionalHeaders) throws ApiExceptionUpdate info of reseller's child account status based on the identifier supplied- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)updateChildAccountStatus- values to update in child account status (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
updateChildDomain
public void updateChildDomain(String childIdentifier, String domainName, UpdateChildDomain updateChildDomain) throws ApiException Update the sender domain of reseller's child based on the childIdentifier and domainName passed- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)domainName- Pass the existing domain that needs to be updated (required)updateChildDomain- value to update for sender domain (required)- Throws:
ApiException- if fails to make API call
-
updateChildDomain
public void updateChildDomain(String childIdentifier, String domainName, UpdateChildDomain updateChildDomain, Map<String, String> additionalHeaders) throws ApiExceptionUpdate the sender domain of reseller's child based on the childIdentifier and domainName passed- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)domainName- Pass the existing domain that needs to be updated (required)updateChildDomain- value to update for sender domain (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
updateResellerChild
public void updateResellerChild(String childIdentifier, UpdateChild resellerChild) throws ApiException Update info of reseller's child based on the child identifier supplied- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)resellerChild- values to update in child profile (required)- Throws:
ApiException- if fails to make API call
-
updateResellerChild
public void updateResellerChild(String childIdentifier, UpdateChild resellerChild, Map<String, String> additionalHeaders) throws ApiExceptionUpdate info of reseller's child based on the child identifier supplied- Parameters:
childIdentifier- Either auth key or id of reseller's child (required)resellerChild- values to update in child profile (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
invokeAPI
public <T> T invokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiExceptionDescription copied from class:BaseApiDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Specified by:
invokeAPIin classBaseApi- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.request- The request object.returnType- The return type.additionalHeaders- Additional headers for the request.- Returns:
- The API response in the specified type.
- Throws:
ApiException- if fails to make API call.
-