Attributes
Attribute |
type |
values |
default |
mandate |
comment |
tokenAssignment |
object |
|
|
true |
|
code |
string |
|
|
|
|
starts |
date |
|
|
|
|
expires |
date |
|
|
|
|
/activationCode/create
Examples:
Method:/activationCode/create
Parameters:
{
"attrs":
[
"tokenAssignment.user":{"id":userid},
"tokenAssignment.token":{"id":tokenid},
//or
//"tokenAssignment.id":asid
]
}
Response:
{
"error":0,
"result":{"id":1, "code":"xxx", starts:"xxx", expires:"xxx"}
}
/activationCode/delete
/activationCode/get
/activationCode/set
/activationCode/search
/activationCode/reset
Examples:
Method:/activationCode/reset
Parameters:
{
"id": "id"
"attrs":
[
"starts":"...",
"expires":""
]
}
Response:
{
"error":0,
"result":{"id":1, "code":"xxx", starts:"xxx", expires:"xxx"}
}