/api/auth-server/oauth/access-token{
"operation": {
"method": "POST",
"path": "/api/auth-server/oauth/access-token"
},
"protocol": "HTTPS",
"host": "https://openapi.lingxing.com",
"rateLimit": {
"tokenBucketCapacity": 100,
"text": ""
},
"responseExample": {
"code": "200",
"msg": "OK",
"data": {
"access_token": "4dcaa78e-b52d-4325-bc35-571021bb0787",
"refresh_token": "da5b5047-e6d1-496c-ab4d-d5425a6a66e4",
"expires_in": 7199
}
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | appId | appId | string | — | 必填 | AppID,在ERP开放接口菜单中获取 |
| 2 | appSecret | appSecret | string | — | 必填 | AppSecret,在ERP开放接口菜单中获取 |
| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | code | 状态码 | integer | 200 | 必填 | 状态码 |
| 2 | msg | 消息提示 | string | — | 必填 | 消息提示 |
| 3 | data | 响应数据 | object | — | 必填 | 响应数据 |
| 3.1 | access_token | access_token | string | — | 必填 | access_token,请求令牌token |
| 3.2 | refresh_token | refresh_token | string | — | 必填 | refresh_token,可以使用它来给access_token延续有效期 |
| 3.3 | expires_in | access_token过期时间 | string | | 必填 | access_token过期时间 |
领星ERP的接口:获取 access - token和refresh - token(/api/auth-server/oauth/access-token),由轻易云数据集成平台 API 资产管理模块整理收纳,并随领星ERP版本更新同步更新。