Skip to content

获取 access_token

接口说明

该接口用于获取用户授权第三方接口调用的凭证 access_token;该接口适用于文思子牙授权。

业务场景

access_token 为用户授权第三方接口调用的凭证,存储在客户端,可能会被窃取,泄漏后可能会发生用户隐私数据泄漏的风险,建议存储在服务端。

基本信息

json
HTTP_URL : https://open.srnsjt.com/oauth/access_token
Method   : POST
content-type : application/json

请求参数body

json
{
    "client_key":"企业id",
    "client_secret":"api_secert",
}

返回数据

json
{
  "data": {
    "access_token": "act.f7094fbffab2ecbfc45e9af9c32bc241oYdckvBKe82BPx8T******",
    "captcha": "",
    "desc_url": "",
    "description": "",
    "error_code": 0,
    "expires_in": 1296000,
    "log_id": "20230525105733ED3ED7AC56A******",
    "open_id": "b9b71865-7fea-44cc-******",
    "refresh_expires_in": 2592000,
    "refresh_token": "rft.713900b74edde9f30ec4e246b706da30t******",
    "scope": "user_info"
  },
  "message": "success"
}

响应状态

json
状态码	说明	schema
200	    OK	    接口返回对象«object»
201	    Created	
401     Unauthorized	
403	    Forbidden	
404	    Not Found

最懂营销的矩阵AI系统