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
Parameters:
{
"id":asid,
//or
"user":{"id":userid},
"token":{"id":tokenid},
"code":activation code
}
Response:
{
"error":0,
"result":{"id":1}
}
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}
}
Examples:
Method:/tokenAssignment/sendDownloadUrl
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}
}
+Examples:+
Method:/tokenAssignment/sort
Parameters:
\{
"ids":\[id1,id2,id3,id4\]
\}
Response:
\{
"error":0
\}
\\
\\ |