User
ProfileService API
Get the ProfileService object via a login session.
Set user nickname
Updates the user's display name.
Input parameters:
userId
String
User ID
true
newDisplayName
String
New display name
true
Set user avatar
Updates the user's profile picture.
Input parameter:
userId
String
User ID
true
newAvatarUri
String
New avatar uri
true
fileName
String
Name of selected image file
true
Set user profile description
Sets a self-introduction for the user's profile.
Input parameter:
userId
string
User ID
true
bio
string
Profile description
true
Output parameter: None
Retrieve user profile
Get a user's profile data
Input parameter:
userId
string
User ID
true
Output parameter:
JsonDict
User profile key-value data
true
JsonDict fields:
displayname
string
User nickname
true
avatar_url
string
User profile image
true
bio
string
User profile self-introduction
true
wallet_address
string
User wallet address
true
AccountDataService API
Get the AccountDataService object through a login session
Set user account data
Sets custom data related to the user. content
contains the complete data for the specified type.
Input parameter:
type
string
Customized data type
true
content
Content
Content in key-value pairs
true
Output parameter: None
Retrieve user account data
Input parameter:
type
string
Type of data you wish to query
true
Output parameter: UserAccountDataEvent
type
string
Data type
true
content
Content
Key/value pairs
true
UserService API
Get the UserService object via a login session.
Get the contact list
Retrieve the list of your contacts.
Input parameters: None
Output parameter:
List
List of contact's information
true
ContactInfo
details:
contactId
String
Contact ID
true
displayName
String
Contact name
false
avatarUrl
String
URL to the contact's avatar image
false
walletAddress
String
Contact's wallet address
false
tags
String array
Array of tags associated with the contact
false
Add a contact
Add a user to your contact list.
Input parameters:
contactId
String
Contact ID
true
tags
String array
Array of tags associated with the contact
false
Output parameter: None
Delete a contact
Remove a user from your contact list.
Input parameters:
contactId
String
Contact ID
true
Output parameter: None
Last updated