UserCenterAPICommunicator

public class UserCenterAPICommunicator

The UserCenterAPIManager is responsible for communication with the Gini User Center API. This includes handling HTTP related error handling.

Constructors

UserCenterAPICommunicator
Link copied to clipboard
void UserCenterAPICommunicator(RequestQueue requestQueue, String baseUrl, GiniApiType giniApiType, String clientId, String clientSecret, RetryPolicyFactory retryPolicyFactory)

Functions

createUser
Link copied to clipboard
Task<UricreateUser(UserCredentials userCredentials, Session userCenterApiSession)
Creates a new Gini user.
getUserId
Link copied to clipboard
Task<StringgetUserId(Session giniAPISession)
Returns the user id of the logged in user.
getUserInfo
Link copied to clipboard
Task<JSONObjectgetUserInfo(Uri userUri, Session userCenterApiSession)
loginClient
Link copied to clipboard
Task<JSONObjectloginClient()
Logs in this client to the Gini User Center API.
loginUser
Link copied to clipboard
Task<JSONObjectloginUser(UserCredentials userCredentials)
Logs in a Gini user.
updateEmail
Link copied to clipboard
Task<JSONObjectupdateEmail(String userId, String newEmail, String oldEmail, Session userCenterApiSession)
Update the email of a user.