跳到正文
认证 API

获取合作方令牌

用 client_id 与 secret 换取应用级的合作方令牌,后续用它为每位用户签发用户令牌。

POST https://platform.ikho.cn/developer/api/oauth/partner/access-token 试一试

鉴权

Authorization string header 必填
HTTP Basic 认证,值为 Basic base64(client_id:secret)client_idsecret 在开通时由对接工程师提供。
Content-Type string header 必填 默认 application/x-www-form-urlencoded
请求内容类型。

请求体

本接口无请求体,凭据通过 Authorization 头传入。

响应

access_token string
合作方访问令牌。
refresh_token string
用于在令牌到期前换取新的合作方访问令牌。
token_type string
令牌类型,固定为 bearer
expires_in integer
访问令牌有效期,单位为秒。