Package software.xdev.brevo.api
Class UserApi
java.lang.Object
software.xdev.brevo.api.UserApi
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class UserApi
extends Object
-
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.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.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.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.putresendcancelinvitation(String action, String email) Resend / Cancel invitationResend / Cancel invitationputRevokeUserPermission(String email) Revoke user permissionputRevokeUserPermission(String email, Map<String, String> additionalHeaders) Revoke user permissionvoidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
UserApi
public UserApi() -
UserApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
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\" - \"send_schedule_suspend\" - \"import\" - \"export\" - \"list_and_attributes\" - \"forms\" - `templates`: - \"create_edit_delete\" - \"activate_deactivate\" - `workflows`: - \"create_edit_delete\" - \"activate_deactivate_pause\" - \"settings\" - `facebook_ads`: - \"create_edit_delete\" - \"schedule_pause\" - `landing_pages`: - \"all\" - `transactional_emails`: - \"settings\" - \"logs\" - `smtp_api`: - \"smtp\" - \"api_keys\" - \"authorized_ips\" - `user_management`: - \"all\" - `sales_platform`: - \"manage_owned_deals_tasks_companies\" - \"manage_others_deals_tasks_companies\" - \"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\" **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(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\" - \"send_schedule_suspend\" - \"import\" - \"export\" - \"list_and_attributes\" - \"forms\" - `templates`: - \"create_edit_delete\" - \"activate_deactivate\" - `workflows`: - \"create_edit_delete\" - \"activate_deactivate_pause\" - \"settings\" - `facebook_ads`: - \"create_edit_delete\" - \"schedule_pause\" - `landing_pages`: - \"all\" - `transactional_emails`: - \"settings\" - \"logs\" - `smtp_api`: - \"smtp\" - \"api_keys\" - \"authorized_ips\" - `user_management`: - \"all\" - `sales_platform`: - \"manage_owned_deals_tasks_companies\" - \"manage_others_deals_tasks_companies\" - \"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\" **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(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\" - \"send_schedule_suspend\" - \"import\" - \"export\" - \"list_and_attributes\" - \"forms\" - `templates`: - \"create_edit_delete\" - \"activate_deactivate\" - `workflows`: - \"create_edit_delete\" - \"activate_deactivate_pause\" - \"settings\" - `facebook_ads`: - \"create_edit_delete\" - \"schedule_pause\" - `landing_pages`: - \"all\" - `transactional_emails`: - \"settings\" - \"logs\" - `smtp_api`: - \"smtp\" - \"api_keys\" - \"authorized_ips\" - `user_management`: - \"all\" - `sales_platform`: - \"manage_owned_deals_tasks_companies\" - \"manage_others_deals_tasks_companies\" - \"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\" **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(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\" - \"send_schedule_suspend\" - \"import\" - \"export\" - \"list_and_attributes\" - \"forms\" - `templates`: - \"create_edit_delete\" - \"activate_deactivate\" - `workflows`: - \"create_edit_delete\" - \"activate_deactivate_pause\" - \"settings\" - `facebook_ads`: - \"create_edit_delete\" - \"schedule_pause\" - `landing_pages`: - \"all\" - `transactional_emails`: - \"settings\" - \"logs\" - `smtp_api`: - \"smtp\" - \"api_keys\" - \"authorized_ips\" - `user_management`: - \"all\" - `sales_platform`: - \"manage_owned_deals_tasks_companies\" - \"manage_others_deals_tasks_companies\" - \"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\" **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
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(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(String action, 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(String action, 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
-