Method:/token/create
Example 1
{
"attrs":
[
"product.id": "pid",
"user.id": "userid",
"pin": "tokenpin"
]
} |
{
"error":0,
"result":
{
"id": "token id"
}
} |
Example 2
{
"attrs":
[
"product":
{
"manufacturerCode":"DN",
"productCode":"MT"
},
"user":
{
"domain.name":"domain.com",
"loginNam":"john.smith"
}
"pin": "tokenpin"
]
} |
{
"error":0,
"result":
{
"id": "token id"
}
} |
Example 3
{
"attrs":
[
"product":
{
"manufacturerCode":"DN",
"productCode":"MT"
},
"user":
{
"domain.name":"domain.com",
"loginNam":"john.smith"
}
"pin": "tokenpin"
],
"return": ["id", "serial", "product.name", {"tokenAssignments":[{"elements":["id"]}]}]
} |
{
"error":0,
"result":
{
"id": "token id",
"serial": "token serial",
"product.name": "MobileID",
"tokenAssignments": {
"elements": [
{
"id": "dda5f3744f7d7750676acc24f31fe128884fb445acf67c36bf648e179055cfe5"
}
]
}
}
} |