asnGetUserToken

Request a user token to identify the user for other services.

ArgumentType: AsnGetUserTokenArgument

AsnGetUserTokenArgument is an Object

Name Type Optional Comment
iType number yes Type of token (default eUserTokenExternal)

(Linked Type: AsnUserTokenType)
iTTL number yes Desired Time to live in seconds (default 24 hours)

lstServiceType UTF8StringList yes List of Service Types e.g. FAQ, RANKING

lstProfileAttributes AsnProfileAttributeList yes List from profile values added as public claim as [Service_type]/[Profile elementname] : [Profile elementvalue]

adminLogin AsnAdminLogin yes Admin login credentials to create token with admin rights

ResultType: AsnGetUserTokenResult

AsnGetUserTokenResult is an Object

Name Type Optional Comment
sToken string JWT Token

ErrorType: AsnRequestError

AsnRequestError is an Object

Name Type Optional Comment
iErrorDetail number A number representing the error

u8sErrorString string A string representing the error

optionalParams AsnOptionalParameters yes No optional params yet

Version 6.4