获取API鉴权的accessToken
请求示例
GET/POST https://api.lunkr.cn/oauth/accessToken?client_id=brphu1zj7&client_secret=DtlTlCVhI60raeIm&grant_type=client_credentials
请求参数
属性 | 类型 | 非空 | 描述 |
---|---|---|---|
client_id | string | * | 论客管理后台添加第三方api应用生成的appId |
client_secret | string | * | 论客管理后台添加第三方api应用生成的appSecret |
grant_type | string | * | 论客常量,固定值为 client_credentials |
返回参数
属性 | 类型 | 说明 |
---|---|---|
access_token | string | 获取的凭证token,API接口的调用access_token作为鉴权 |
token_type | string | 固定值bearer |
expires_in | string | 默认3600秒 |
scope | string | 返回授权范围 |
返回示例
{
"access_token": "1543e8fc-c1b6-4b8f-ba10-93b93b9f010a",
"token_type": "bearer",
"expires_in": 3600,
"scope": "api"
}