public class UsersApi extends BaseApi implements AccountAuthorizable
Constructor and Description |
---|
UsersApi() |
Modifier and Type | Method and Description |
---|---|
AccountAuthorization |
getAccountAuthorization() |
void |
moveTo(int fromLoginUserId,
int toLoginUserId)
Move a Login User to another one.
|
PersonProfile |
profile(int loginUserId,
java.util.List<java.lang.String> fieldList,
boolean refresh)
Get the Person Profile of a Login User.
|
UsersApi |
setAccountAuthorization(AccountAuthorization accountAuthorization) |
User |
show(int loginUserId,
java.util.List<java.lang.String> fieldList)
Get a Login User.
|
void |
token(int loginUserId)
Update the token of a Login User.
|
collectionUrl, getApi, memberUrl, memberUrl, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public User show(int loginUserId, java.util.List<java.lang.String> fieldList) throws java.io.IOException, SocialIdApiException
loginUserId
- Id of the desired LoginUserfieldList
- Profile fields to return with the LoginUserjava.io.IOException
SocialIdApiException
public PersonProfile profile(int loginUserId, java.util.List<java.lang.String> fieldList, boolean refresh) throws java.io.IOException, SocialIdApiException
loginUserId
- Id of the LoginUserfieldList
- Profile fields to returnrefresh
- Whether to refresh the profile or notjava.io.IOException
SocialIdApiException
public void token(int loginUserId) throws java.io.IOException, SocialIdApiException
loginUserId
- Id of the LoginUserjava.io.IOException
SocialIdApiException
public void moveTo(int fromLoginUserId, int toLoginUserId) throws java.io.IOException, SocialIdApiException
fromLoginUserId
- Id of the LoginUser that will be movedtoLoginUserId
- Id of the LoginUser that will receive the moved LoginUserjava.io.IOException
SocialIdApiException
public AccountAuthorization getAccountAuthorization()
getAccountAuthorization
in interface AccountAuthorizable
public UsersApi setAccountAuthorization(AccountAuthorization accountAuthorization)