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 |
Examples:
Method:/tokenAssignment/activate
{
"id":asid,
//or
"user":{"id":userid},
"token":{"id":tokenid},
"code":activation code
} |
{
"error":0,
"result":{"id":1}
}
|
Examples:
Method:/tokenAssignment/sendActivationCode
{
"id":asid,
//or
"user":{"id":userid},
"token":{"id":tokenid},
"provisioningUrl":"http://xxxx:xxx",
channel: SMS|SMTP|TWITTER|TELEPHONE
}
|
{
"error":0,
"result":{"id":1}
} |
tokenAssignment/ sendDownloadUrl
Examples:
Method:/tokenAssignment/sendDownloadUrl
Parameters:
{
"id":asid,
//or
"user":{"id":userid},
"token":{"id":tokenid},
"provisioningUrl":"http://xxxx:xxx",
channel: SMS|SMTP|TWITTER|TELEPHONE
} |
{
"error":0,
"result":{"id":1}
} |
{
"ids":["id1","id2","id3","id4"]
} |
{
"error":0
} |
{
"id":"token assignment id"
} |
{
"error":0
"message": "Succeeded",
"result": "base64 encoded png image"
} |
The returned images can be used in html tag directly:
<img src="data:image/png;base64,the actual data"> |