User Meta Data
Registeration with MetaData#
To register a user with providing MetaData, you can utilise the below method.
Request Params#
| Status | Description | Type | Required |
|---|---|---|---|
USER_IDENTIFIER | Unique Id to Register the User. User identifier can only contain lowercase alphanumeric characters, hyphens (-), and underscores (_) | String | true |
| FORCE_REGISTER | default value true provide true to force the old session logged out when the registered user has reached the maximum number of multiple-sessions or provide false to allow registration till the maximum no of multiple-sessions reached | Boolean | false |
registerMetaData | registerMetaData is an optional parameter to provide MetaData of user. Maximum size is 3 | Object | false |
Request Input for registerMetaData#
| Arguments | Description | Type |
|---|---|---|
| key | Name of the Key | String |
| value | Name of the value | String or Boolean or Number |
Get User List with MetaData#
Use the below method to retrieve all registered users and it filters the results based on MetaDataFilter. User list can also be retrieved based on search key word, also this method supports pagination. This function will return the total number of pages.
Request Params#
| Arguments | Description | Type | Required |
|---|---|---|---|
| SEARCH_TERM | Search term to search against the name default value is empty | String | false |
| PAGE_NUMBER | Page number to get the particular pages default value is 1 | Number | false |
| LIMIT | Limit to set the number of users per page default value is 20 | Number | false |
META_DATA_FILTER | MetaDataFilter which filters the results by metadata default value is empty | Object | false |
Sample Format for MetaDataFilter#
Request Input for MetaDataKey#
| Arguments | Description | Type |
|---|---|---|
| metaDataKey | Name of the Key | String |
| value | Name of the value | String |
Request Input for MetaDataValues#
| Arguments | Description | Type |
|---|---|---|
| metaDataValues | Name of the Key | String |
| value | Name of the value | Array of String or Boolean or Number |
Get MetaData For User#
Using this below method to get the own metaData which is given as input when your registration process.
Example Response#
Update MetaData For User#
Use the below method to update your own metaData.
Request Param#
| Status | Description | Type | Required |
|---|---|---|---|
Update_MetaData | Update_MetaData is an optional parameter to update MetaData of user. Maximum size is 3 | Object | false |
Request Input for Update_MetaData#
| Arguments | Description | Type |
|---|---|---|
| key | Name of the Key | String |
| value | Name of the value | String or Boolean or Number |
Example Response#
note
You didn't pass param (Update_MetaData) to updateMetaData SDK method, it should be considered as a null and updated user MetaData as a null.