User
iOS User APIs
Set user display name
Input Parameters::
Name | Type | Description | Required |
---|---|---|---|
| NSString | the new display name | true |
Output Parameters:
Name | Type | Description | Required |
---|---|---|---|
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::
Name | Type | Description | Required |
---|---|---|---|
userId | string | the user ID | True |
Output Parameters:
Name | Type | Description | Required |
---|---|---|---|
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::
Name | Type | Description | Required |
---|---|---|---|
| NSString | the new avatar url | True |
Output Parameters:
Name | Type | Description | Required |
---|---|---|---|
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::
Name | Type | Description | Required |
---|---|---|---|
| NSString | the user ID | True |
Output Parameters:
Name | Type | Description | Required |
---|---|---|---|
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::
Name | Type | Description | Required |
---|---|---|---|
| NSString | the user id | True |
Output Parameters:
Name | Type | Description | Required |
---|---|---|---|
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::
Name | Type | Description | Required |
---|---|---|---|
| NSString | user ID | True |
signature | NSString | signature, length <= 100 | True |
Output Parameters:
Name | Type | Description | Required |
---|---|---|---|
success | block | success description | true |
failure | block | failure description | true |
Get signature of a user
Input Parameters::
Name | Type | Description | Required |
---|---|---|---|
| NSString | the user id | True |
Output Parameters:
Name | Type | Description | Required |
---|---|---|---|
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:
Name | Type | Description | Required |
---|---|---|---|
| string | new nick name | true |
(Deprecated) Modify profile image
Input Parameters:
Name | Type | Description | Required |
---|---|---|---|
| string | new profile image URL | true |
(Deprecated) Query profile information
Input Parameters:
Name | Type | Description | Required |
---|---|---|---|
| string | user id | true |
Output Parameters:
Name | Type | Description |
---|---|---|
| string | user nickname string |
| String | user profile image URL string |
Last updated