User
iOS User APIs
Set user display name
Input Parameters::
displayname
NSString
the new display name
true
Output Parameters:
success
A block object
A block object called when the operation succeeds.
true
failure
A block object
A block object called when the operation fails.
true
Get the display name of a user
Input Parameters::
userId
string
the user ID
True
Output Parameters:
displayName
NSString
user display name
true
avatarUrl
NSString
url of the profile image
true
Set user avatar
Set the user's profile image url. The user must have previously logged into SendingNetwork.
Input Parameters::
avatarUrl
NSString
the new avatar url
True
Output Parameters:
success
A block object
A block object called when the operation succeeds
true
failure
A block object
A block object called when the operation fails
true
Get the avatar url of a user
Input Parameters::
userId
NSString
the user ID
True
Output Parameters:
success
block
A block object called when the operation succeeds. It provides the user avatar url.
true
failure
block
A block object called when the operation fails.
true
Get the profile information of a user
Input Parameters::
userId
NSString
the user id
True
Output Parameters:
success
NSString
A block object called when the operation succeeds. It provides the user display name and avatar url.
true
failure
NSString
A block object called when the operation fails.
true
Set signature for a user
Input Parameters::
userId
NSString
user ID
True
signature
NSString
signature, length <= 100
True
Output Parameters:
success
block
success description
true
failure
block
failure description
true
Get signature of a user
Input Parameters::
userId
NSString
the user id
True
Output Parameters:
success
block
(void (^)(NSString * signature))success
true
failure
block
failure description
true
The APIs below are deprecated. Please avoid using them.
(Deprecated) Modify nickname
Input Parameters:
displayName
string
new nick name
true
(Deprecated) Modify profile image
Input Parameters:
avatarUrl
string
new profile image URL
true
(Deprecated) Query profile information
Input Parameters:
user_id
string
user id
true
Output Parameters:
displayname
string
user nickname string
avatar_url
String
user profile image URL string
Last updated