...
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 | ||||
---|---|---|---|---|
|
...
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:
{
"id":asid,
//or
"user":{"id":userid},
"token":{"id":tokenid},
"provisioningUrl":"http://xxxx:xxx",
channel: SMS|SMTP|TWITTER|TELEPHONE
}
Response:
{
"error":0,
"result":{"id":1}
}
Anchor | ||||
---|---|---|---|---|
|
...
Anchor | ||||
---|---|---|---|---|
|
Wiki Markup |
---|
+Examples:+
Method:/tokenAssignment/sort
Parameters:
\{
"ids":\[id1,id2,id3,id4\]
\}
Response:
\{
"error":0
\}
\\
\\ |