Package org.azd.accounts
Class AccountsApi
- All Implemented Interfaces:
AccountsDetails
Accounts class to manage Accounts Api
-
Constructor Summary
ConstructorDescriptionAccountsApi
(Connection connection) Pass the connection object to work with Accounts Api -
Method Summary
Modifier and TypeMethodDescriptiongetAccounts
(String memberId) Get a list of accounts for a specific member.Get the list of organizations that you have access to.Gets the logged in user profile.getProfile
(String id) Gets a user profile.Methods inherited from class org.azd.utils.AzDAsyncApi
createAsync
-
Constructor Details
-
AccountsApi
Pass the connection object to work with Accounts Api- Parameters:
connection
- Connection object
-
-
Method Details
-
getAccounts
Get a list of accounts for a specific member.- Specified by:
getAccounts
in interfaceAccountsDetails
- Parameters:
memberId
- Specify the member Id. This can be obtained by running getUserEntitlements() from MemberEntitlementManagementApi.- Returns:
- Accounts object
Accounts
- Throws:
AzDException
- Default Api Exception handler.
-
getOrganizations
Get the list of organizations that you have access to. Note that while creating and granting access to the personal access token select all organizations to apply the access on all available organizations.- Specified by:
getOrganizations
in interfaceAccountsDetails
- Returns:
- A list of Organization.
Organizations
- Throws:
AzDException
- Default Api Exception handler.
-
getProfile
Gets the logged in user profile.- Specified by:
getProfile
in interfaceAccountsDetails
- Returns:
- a profile object.
Profile
- Throws:
AzDException
- Default Api Exception handler.
-
getProfile
Gets a user profile.- Specified by:
getProfile
in interfaceAccountsDetails
- Parameters:
id
- pass the user id- Returns:
- a profile object.
Profile
- Throws:
AzDException
- Default Api Exception handler.
-