Package software.xdev.brevo.api
Class UserApi
java.lang.Object
software.xdev.brevo.client.BaseApi
software.xdev.brevo.api.UserApi
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneditUserPermission(Inviteuser inviteuser) Update permission for a user `Feature` - A Feature represents a specific functionality like Email campaign, Deals, Calls, Automations, etc. on Brevo.editUserPermission(Inviteuser inviteuser, Map<String, String> additionalHeaders) Update permission for a user `Feature` - A Feature represents a specific functionality like Email campaign, Deals, Calls, Automations, etc. on Brevo.Get the list of all your usersgetInvitedUsersList(Map<String, String> additionalHeaders) Get the list of all your usersgetUserPermission(String email) Check user permissiongetUserPermission(String email, Map<String, String> additionalHeaders) Check user permissioninviteuser(Inviteuser inviteuser) Send invitation to user `Feature` - A Feature represents a specific functionality like Email campaign, Deals, Calls, Automations, etc. on Brevo.inviteuser(Inviteuser inviteuser, Map<String, String> additionalHeaders) Send invitation to user `Feature` - A Feature represents a specific functionality like Email campaign, Deals, Calls, Automations, etc. on Brevo.<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.putresendcancelinvitation(String action, String email) Resend / Cancel invitationResend / Cancel invitationputRevokeUserPermission(String email) Revoke user permissionputRevokeUserPermission(String email, Map<String, String> additionalHeaders) Revoke user permissionMethods inherited from class software.xdev.brevo.client.BaseApi
getApiClient, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, setApiClient
-
Constructor Details
-
UserApi
public UserApi() -
UserApi
-
-
Method Details
-
editUserPermission
Update permission for a user `Feature` - A Feature represents a specific functionality like Email campaign, Deals, Calls, Automations, etc. on Brevo. While inviting a user, determine which feature you want to manage access to. You must specify the feature accurately to avoid errors. `Permission` - A Permission defines the level of access or control a user has over a specific feature. While inviting user, decide on the permission level required for the selected feature. Make sure the chosen permission is related to the selected feature. Features and their respective permissions are as below: - `email_campaigns`: - \"create_edit_delete\" - \"send_schedule_suspend\" - `sms_campaigns`: - \"create_edit_delete\" - \"send_schedule_suspend\" - `contacts`: - \"view\" - \"create_edit_delete\" - \"import\" - \"export\" - \"list_and_attributes\" - \"forms\" - `templates`: - \"create_edit_delete\" - \"activate_deactivate\" - `workflows`: - \"create_edit_delete\" - \"activate_deactivate_pause\" - \"settings\" - `landing_pages`: - \"all\" - `transactional_emails`: - \"settings\" - \"logs\" - `smtp_api`: - \"smtp\" - \"api_keys\" - \"authorized_ips\" - `user_management`: - \"all\" - `sales_platform`: - \"create_edit_deals\" - \"delete_deals\" - \"manage_others_deals_tasks\" - \"reports\" - \"settings\" - `phone`: - \"all\" - `conversations`: - \"access\" - \"assign\" - \"configure\" - `senders_domains_dedicated_ips`: - \"senders_management\" - \"domains_management\" - \"dedicated_ips_management\" - `push_notifications`: - \"view\" - \"create_edit_delete\" - \"send\" - \"settings\" - `companies`: - \"manage_owned_companies\" - \"manage_other_companies\" - \"settings\" **Note**: - The privileges array remains the same as in the send invitation; the user simply needs to provide the permissions that need to be updated. - The availability of feature and its permission depends on your current plan. Please select the features and permissions accordingly.- Parameters:
inviteuser- Values to create an invitation (required)- Returns:
- UpdateUserResponse
- Throws:
ApiException- if fails to make API call
-
editUserPermission
public UpdateUserResponse editUserPermission(@Nonnull Inviteuser inviteuser, Map<String, String> additionalHeaders) throws ApiExceptionUpdate permission for a user `Feature` - A Feature represents a specific functionality like Email campaign, Deals, Calls, Automations, etc. on Brevo. While inviting a user, determine which feature you want to manage access to. You must specify the feature accurately to avoid errors. `Permission` - A Permission defines the level of access or control a user has over a specific feature. While inviting user, decide on the permission level required for the selected feature. Make sure the chosen permission is related to the selected feature. Features and their respective permissions are as below: - `email_campaigns`: - \"create_edit_delete\" - \"send_schedule_suspend\" - `sms_campaigns`: - \"create_edit_delete\" - \"send_schedule_suspend\" - `contacts`: - \"view\" - \"create_edit_delete\" - \"import\" - \"export\" - \"list_and_attributes\" - \"forms\" - `templates`: - \"create_edit_delete\" - \"activate_deactivate\" - `workflows`: - \"create_edit_delete\" - \"activate_deactivate_pause\" - \"settings\" - `landing_pages`: - \"all\" - `transactional_emails`: - \"settings\" - \"logs\" - `smtp_api`: - \"smtp\" - \"api_keys\" - \"authorized_ips\" - `user_management`: - \"all\" - `sales_platform`: - \"create_edit_deals\" - \"delete_deals\" - \"manage_others_deals_tasks\" - \"reports\" - \"settings\" - `phone`: - \"all\" - `conversations`: - \"access\" - \"assign\" - \"configure\" - `senders_domains_dedicated_ips`: - \"senders_management\" - \"domains_management\" - \"dedicated_ips_management\" - `push_notifications`: - \"view\" - \"create_edit_delete\" - \"send\" - \"settings\" - `companies`: - \"manage_owned_companies\" - \"manage_other_companies\" - \"settings\" **Note**: - The privileges array remains the same as in the send invitation; the user simply needs to provide the permissions that need to be updated. - The availability of feature and its permission depends on your current plan. Please select the features and permissions accordingly.- Parameters:
inviteuser- Values to create an invitation (required)additionalHeaders- additionalHeaders for this call- Returns:
- UpdateUserResponse
- Throws:
ApiException- if fails to make API call
-
getInvitedUsersList
Get the list of all your users- Returns:
- GetInvitedUsersList
- Throws:
ApiException- if fails to make API call
-
getInvitedUsersList
public GetInvitedUsersList getInvitedUsersList(Map<String, String> additionalHeaders) throws ApiExceptionGet the list of all your users- Parameters:
additionalHeaders- additionalHeaders for this call- Returns:
- GetInvitedUsersList
- Throws:
ApiException- if fails to make API call
-
getUserPermission
Check user permission- Parameters:
email- Email of the invited user. (required)- Returns:
- GetUserPermission
- Throws:
ApiException- if fails to make API call
-
getUserPermission
public GetUserPermission getUserPermission(@Nonnull String email, Map<String, String> additionalHeaders) throws ApiExceptionCheck user permission- Parameters:
email- Email of the invited user. (required)additionalHeaders- additionalHeaders for this call- Returns:
- GetUserPermission
- Throws:
ApiException- if fails to make API call
-
inviteuser
Send invitation to user `Feature` - A Feature represents a specific functionality like Email campaign, Deals, Calls, Automations, etc. on Brevo. While inviting a user, determine which feature you want to manage access to. You must specify the feature accurately to avoid errors. `Permission` - A Permission defines the level of access or control a user has over a specific feature. While inviting user, decide on the permission level required for the selected feature. Make sure the chosen permission is related to the selected feature. Features and their respective permissions are as below: - `email_campaigns`: - \"create_edit_delete\" - \"send_schedule_suspend\" - `sms_campaigns`: - \"create_edit_delete\" - \"send_schedule_suspend\" - `contacts`: - \"view\" - \"create_edit_delete\" - \"import\" - \"export\" - \"list_and_attributes\" - \"forms\" - `templates`: - \"create_edit_delete\" - \"activate_deactivate\" - `workflows`: - \"create_edit_delete\" - \"activate_deactivate_pause\" - \"settings\" - `landing_pages`: - \"all\" - `transactional_emails`: - \"settings\" - \"logs\" - `smtp_api`: - \"smtp\" - \"api_keys\" - \"authorized_ips\" - `user_management`: - \"all\" - `sales_platform`: - \"create_edit_deals\" - \"delete_deals\" - \"manage_others_deals_tasks\" - \"reports\" - \"settings\" - `phone`: - \"all\" - `conversations`: - \"access\" - \"assign\" - \"configure\" - `senders_domains_dedicated_ips`: - \"senders_management\" - \"domains_management\" - \"dedicated_ips_management\" - `push_notifications`: - \"view\" - \"create_edit_delete\" - \"send\" - \"settings\" - `companies`: - \"manage_owned_companies\" - \"manage_other_companies\" - \"settings\" **Note**: - If `all_features_access: false` then only privileges are required otherwise if `true` then it's assumed that all permissions will be there for the invited user. - The availability of feature and its permission depends on your current plan. Please select the features and permissions accordingly.- Parameters:
inviteuser- Values to create an invitation (required)- Returns:
- InviteuserResponse
- Throws:
ApiException- if fails to make API call
-
inviteuser
public InviteuserResponse inviteuser(@Nonnull Inviteuser inviteuser, Map<String, String> additionalHeaders) throws ApiExceptionSend invitation to user `Feature` - A Feature represents a specific functionality like Email campaign, Deals, Calls, Automations, etc. on Brevo. While inviting a user, determine which feature you want to manage access to. You must specify the feature accurately to avoid errors. `Permission` - A Permission defines the level of access or control a user has over a specific feature. While inviting user, decide on the permission level required for the selected feature. Make sure the chosen permission is related to the selected feature. Features and their respective permissions are as below: - `email_campaigns`: - \"create_edit_delete\" - \"send_schedule_suspend\" - `sms_campaigns`: - \"create_edit_delete\" - \"send_schedule_suspend\" - `contacts`: - \"view\" - \"create_edit_delete\" - \"import\" - \"export\" - \"list_and_attributes\" - \"forms\" - `templates`: - \"create_edit_delete\" - \"activate_deactivate\" - `workflows`: - \"create_edit_delete\" - \"activate_deactivate_pause\" - \"settings\" - `landing_pages`: - \"all\" - `transactional_emails`: - \"settings\" - \"logs\" - `smtp_api`: - \"smtp\" - \"api_keys\" - \"authorized_ips\" - `user_management`: - \"all\" - `sales_platform`: - \"create_edit_deals\" - \"delete_deals\" - \"manage_others_deals_tasks\" - \"reports\" - \"settings\" - `phone`: - \"all\" - `conversations`: - \"access\" - \"assign\" - \"configure\" - `senders_domains_dedicated_ips`: - \"senders_management\" - \"domains_management\" - \"dedicated_ips_management\" - `push_notifications`: - \"view\" - \"create_edit_delete\" - \"send\" - \"settings\" - `companies`: - \"manage_owned_companies\" - \"manage_other_companies\" - \"settings\" **Note**: - If `all_features_access: false` then only privileges are required otherwise if `true` then it's assumed that all permissions will be there for the invited user. - The availability of feature and its permission depends on your current plan. Please select the features and permissions accordingly.- Parameters:
inviteuser- Values to create an invitation (required)additionalHeaders- additionalHeaders for this call- Returns:
- InviteuserResponse
- Throws:
ApiException- if fails to make API call
-
putRevokeUserPermission
public PutRevokeUserPermissionResponse putRevokeUserPermission(@Nonnull String email) throws ApiException Revoke user permission- Parameters:
email- Email of the invited user. (required)- Returns:
- PutRevokeUserPermissionResponse
- Throws:
ApiException- if fails to make API call
-
putRevokeUserPermission
public PutRevokeUserPermissionResponse putRevokeUserPermission(@Nonnull String email, Map<String, String> additionalHeaders) throws ApiExceptionRevoke user permission- Parameters:
email- Email of the invited user. (required)additionalHeaders- additionalHeaders for this call- Returns:
- PutRevokeUserPermissionResponse
- Throws:
ApiException- if fails to make API call
-
putresendcancelinvitation
public PutresendcancelinvitationResponse putresendcancelinvitation(@Nonnull String action, @Nonnull String email) throws ApiException Resend / Cancel invitation- Parameters:
action- action (required)email- Email of the invited user. (required)- Returns:
- PutresendcancelinvitationResponse
- Throws:
ApiException- if fails to make API call
-
putresendcancelinvitation
public PutresendcancelinvitationResponse putresendcancelinvitation(@Nonnull String action, @Nonnull String email, Map<String, String> additionalHeaders) throws ApiExceptionResend / Cancel invitation- Parameters:
action- action (required)email- Email of the invited user. (required)additionalHeaders- additionalHeaders for this call- Returns:
- PutresendcancelinvitationResponse
- 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.
-