Method: /token/import
Import hardware tokens into token repository
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
{
"attrs":
{
"product.id": "productId",
"repository.id": "repoId",
"data":"text of import file"
}
"return":["id","serial"]
} |
Code Block | ||||
---|---|---|---|---|
| ||||
{
"error":0,
"result":
{
"total":3,
"rows":
[
{"id":"xxx","serial":"1001"},
{"id":"yyy","serial":"1002"},
{"id":"zzz","serial":"1003"}
]
}
} |