Contact
iOS Contact APIS
Get contact list
Input Parameters:
Name | Type | Description | Required |
---|---|---|---|
| NSString | user id string | true |
Output Parameters
MXContactsListResponse
Add user as a contact
Input Parameters:
Name | Type | Description | Required |
---|---|---|---|
userId | NSString | user id string | true |
contactId | NSString | contact id string | true |
tags | NSArray | tags NSArray | false |
isRoom | bool | whether is a direct message | true |
Remove contact
Input Parameters:
Name | Type | Description | Required |
---|---|---|---|
userId | NSString | user id string | true |
contactId | NSString | contact id string | True |
isRoom | BOOL | whether is a direct message | True |
Output Parameters:
Name | Type | Description | Required |
---|---|---|---|
success | block | A block object called when the operation succeeds | true |
failure | block | A block object called when the operation fails. | true |
The methods below are deprecated. Please avoid using them.
(Deprecated) Get contact list
Parameters:
Name | Type | Description | Required |
---|---|---|---|
| string | user id string | true |
Returns
MXContactsListResponse
(Deprecated) Add user as a contact
Parameters:
Name | Type | Description | Required |
---|---|---|---|
| string | user id string | true |
| string | contact id string | true |
| bool | whether is a direct message | true |
(Deprecated) Remove contact
Parameters:
Name | Type | Description | Required |
---|---|---|---|
| string | user id string | true |
| string | contact id string | True |
| bool | whether is a direct message | True |
Last updated