User Meta Data
#
Registeration with MetaDataTo register a user with providing MetaData
, you can utilise the below method.
#
Request ParamsStatus | 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 registerMetaDataArguments | Description | Type |
---|---|---|
key | Name of the Key | String |
value | Name of the value | String or Boolean or Number |
#
Get User List with MetaDataUse 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 ParamsArguments | 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 MetaDataKeyArguments | Description | Type |
---|---|---|
metaDataKey | Name of the Key | String |
value | Name of the value | String |
#
Request Input for MetaDataValuesArguments | Description | Type |
---|---|---|
metaDataValues | Name of the Key | String |
value | Name of the value | Array of String or Boolean or Number |
#
Get MetaData For UserUsing this below method to get the own metaData which is given as input when your registration process.
#
Example Response#
Update MetaData For UserUse the below method to update your own metaData.
#
Request ParamStatus | 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_MetaDataArguments | Description | Type |
---|---|---|
key | Name of the Key | String |
value | Name of the value | String or Boolean or Number |
#
Example Responsenote
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.