public class YfyUserRequest extends Object
| Constructor and Description |
|---|
YfyUserRequest(YfyBaseClient.YfyInternalClient client) |
| Modifier and Type | Method and Description |
|---|---|
void |
downloadProfilePic(long userId,
String profilePicKey,
String savePath)
Download the specific user profile picture
|
YfyUser |
getSelf()
Retrieve detailed self user information
|
YfyUser |
getUser(long userId)
Retrieve detailed user information
|
SearchUserResult |
searchUser(String queryWords,
int pageId)
Search user in the same enterprise with query key word
|
YfyUser |
updateSelf(String name)
Update self user information
|
public YfyUserRequest(YfyBaseClient.YfyInternalClient client)
public YfyUser getSelf() throws YfyException
YfyExceptionpublic YfyUser getUser(long userId) throws YfyException
userId - User id in fangcloudYfyExceptionpublic void downloadProfilePic(long userId,
String profilePicKey,
String savePath)
throws YfyException
userId - User id in fangcloudprofilePicKey - Profile picture key return by this#getUser(long)savePath - Where you'd like to save the fileYfyExceptionpublic YfyUser updateSelf(String name) throws YfyException
name - New nameYfyExceptionpublic SearchUserResult searchUser(String queryWords, int pageId) throws YfyException
queryWords - Query words about user infopageId - Page id begin with 0YfyExceptionCopyright © 2018 YiFangYun. All rights reserved.