- 明觉汽配数据服务介绍
- 鉴权接口
- 乘用车销售车型解析介绍
- VIN码解析
- 车型查询
- 无车型查询配件信息
- 查询车型下的配件数据介绍
- 根据关键词查询配件及附属信息
B2B获取鉴权
POST
/oauth/logon
https://api.dataenlighten.com:8045(生产)
2、使用时取响应结果中【AccessToken】字段,作为后续其他鉴权请求的令牌
3、该令牌需要在其他请求的header中使用,Authorization=Bearer+英文空格+AccessToken
请求参数
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
BusinessID
string
企业ID
ClientID
string
用户ID
UserName
string
用户名
PassWord
string
密码
示例
{
"BusinessID": "B2B1234",
"ClientID":" B2B1234",
"UserName":"test",
"PassWord":"fb5bdbd260598efec53c2816d2a2b054"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/oauth/logon' \
--header 'Content-Type: application/json' \
--data-raw '{
"BusinessID": "B2B1234",
"ClientID":" B2B1234",
"UserName":"test",
"PassWord":"fb5bdbd260598efec53c2816d2a2b054"
}'
返回响应
🟢200成功
application/json
Body
code
string
响应码
codeDescription
string
响应描述
toastMessage
string
提示信息
cityName
null
所在城市
company
null
公司名称
userType
null
用户类型
businessId
string
业务id
groupId
string
分组id
companyTypeId
integer
公司类型id
companyType
string
公司类型
companyIdentityCode
string
公司编码
parseLevel
string
解析级别
outputLevel
string
输出级别
tobUserBrandLimits
string
预留字段
ResponseCode
string
响应编码
ResponseDescription
string
无需关注
Content
object
必需
AccessToken
string
token
TokenType
string
鉴权类型
ExpiresIn
integer
token有效期
UUID
string
必需
loginName
string
登录名
userName
string
用户名
mjUserId
string
用户id
region
null
地区
brands
null
无需关注
secondGroup
null
无需关注
userTypeId
null
无需关注
appAccount
object
无需关注
businessId
string
必需
userName
string
必需
示例
{
"code": "0000",
"codeDescription": "系统验证:成功获得访问票据!",
"toastMessage": "系统验证:成功获得访问票据!",
"cityName": null,
"company": null,
"userType": null,
"businessId": "******",
"groupId": "******",
"companyTypeId": 1000,
"companyType": "保险公司",
"companyIdentityCode": "",
"parseLevel": "L3",
"outputLevel": "L4",
"tobUserBrandLimits": "",
"ResponseCode": "8000001",
"ResponseDescription": "系统验证:成功获得访问票据!",
"Content": {
"AccessToken": "eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbnVzZXIiOiJOT1JNQUw65rWZ5ZWG5L-d6Zmp6aOO5o6nOjE3MDA2NDU0NzgzMzQ6MzYwMCJ9.QxbAc8PdhtYohPkDGKxouER-2B29Jnrsj4NJsIcBbAv-oSp8wDwe4E1ji0YkJlk63iFNhk3wB1r_CzcPNRlNjw",
"TokenType": "bearer",
"ExpiresIn": 3600,
"UUID": "31777c10-79ca-4467-bd77-3d6984b2e821"
},
"loginName": "test",
"userName": "test",
"mjUserId": "B2B1234",
"region": null,
"brands": null,
"secondGroup": null,
"userTypeId": null,
"appAccount": {
"businessId": "B2B1234",
"userName": "test"
}
}
修改于 2025-01-20 08:52:54