You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Method:/token/create


Examples 1:

Parameters
{
	"attrs":
	[
		"product.id": "pid",
		"user.id": "userid",
		"pin": "tokenpin"
	]
}
Response
{
	"error":0,
	"result":
	{
		"id": "token id" 
	}
}


Example 2:

Parameters
{
	"attrs":
	[
		"product":
		{
			"manufacturerCode":"DN",
			"productCode":"MT"
		},
		"user":
		{
			"domain.name":"domain.com",
			"loginNam":"john.smith"
		}
		"pin": "tokenpin"
	]
}
Response
{
	"error":0,
	"result":
	{
		"id": "token id" 
	}
}

Example 3:

Parameters
{
	"attrs":
	[
		"product":
		{
			"manufacturerCode":"DN",
			"productCode":"MT"
		},
		"user":
		{
			"domain.name":"domain.com",
			"loginNam":"john.smith"
		}
		"pin": "tokenpin"
	],
    "return": ["id", "serial", "product.name"]
}
Response
{
	"error":0,
	"result":
	{
		"id": "token id",
        "serial": "token serial",
        "product.name": "MobileID"
	}
}
  • No labels