Attributes
Attribute | type | values | default | mandate | comment |
activationCode | object | ||||
challengeCodes | object | ||||
token | object | ||||
user | object | ||||
isOwner | boolean | true | |||
usageLimit | integer | 0(unlimited) | |||
status | string | ACTIVE, | ACTIVE | ||
starts | date | ||||
expires | date | ||||
priority | integer | 0 | |||
pin | string | false | |||
lastChangePin | Date | False | |||
mustChangePin | Boolean | False | False | ||
pinNeverExpires | Boolean | False | False | ||
dateCreated | Date | False | |||
lastUpdated | Date | False |
tokenAssignment/search
tokenAssignment/set
tokenAssignment/get
tokenAssignment/activate
Examples:
Method:/tokenAssignment/activate
Parameters
{
"id":asid,
//or
"user":{"id":userid},
"token":{"id":tokenid},
"code":activation code
}
Response
{
"error":0,
"result":{"id":1}
}
tokenAssignment/sendActivationCode
Examples:
Method:/tokenAssignment/sendActivationCode
Parameters
{
"id":asid,
//or
"user":{"id":userid},
"token":{"id":tokenid},
"provisioningUrl":"http://xxxx:xxx",
channel: SMS|SMTP|TWITTER|TELEPHONE
}
Response
{
"error":0,
"result":{"id":1}
}
tokenAssignment/ sendDownloadUrl
Examples:
Method:/tokenAssignment/sendDownloadUrl
Parameters:
Parameters
{
"id":asid,
//or
"user":{"id":userid},
"token":{"id":tokenid},
"provisioningUrl":"http://xxxx:xxx",
channel: SMS|SMTP|TWITTER|TELEPHONE
}
Response
{
"error":0,
"result":{"id":1}
}
tokenAssignment/sort
Parameters
{
"ids":["id1","id2","id3","id4"]
}
Response
{
"error":0
}
tokenAssignment/getTokenQRCode
Parameters
{
"id":"token assignment id"
}
Response
{
"error":0
"message": "Succeeded",
"result": "base64 encoded png image"
}
The returned images can be used in html tag directly:
Demo
<img src="data:image/png;base64,the actual data">