Method:/token/create
{ "attrs": [ "product.id": "pid", "user.id": "userid", "pin": "tokenpin" ] } |
{ "error":0, "result": { "id": "token id" } } |
{ "attrs": [ "product": { "manufacturerCode":"DN", "productCode":"MT" }, "user": { "domain.name":"domain.com", "loginNam":"john.smith" } "pin": "tokenpin" ] } |
{ "error":0, "result": { "id": "token id" } } |
{ "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": "token assignment id" } ] } } } |