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