OAuth
POST
/api/auth/authorization1.The validity period of the token is 2 hours. If it expires, a new token needs to be obtained again.
2.After obtaining the token in the return value, when calling other API interfaces of TrackingEyes, you can splice the token value and company code on the url.
3Application examples:server address:/api/v1/bngs?companyCode=Enterprise ID&token=4a8467e5-294c-11eb-8f8e-00163e0afef2
请求参数
Body Params application/json
companyCode
string
required
Enterprise lD (Need to obtain from TrackingEyes)
secret
string
required
Enterprise Key (Need to obtain from TrackingEyes)
Example
{
"companyCode": "Enterprise number",
"secret": "Secret key"
}
示例代码
Responses
success(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
code
integer
required
200=sucess;other=fail
message
string
required
Error message
result
string
required
Encrypted signature token
Example
{
"code": "200",
"message": "",
"result": "4a8467e5-294c-11eb-8f8e-00163e0afef2"
}
Last modified: 4 个月前