获取鉴权Token

接口地址 /dataService/research/access-token

请求方式 GET

接口描述 通过appid和secrect请求api 授权码,用来请求业务api。token有效时长为120分钟。

请求参数

参数名称 说明 参数类型 是否必填 类型
account 应用id,需在职信网开放平台创建 query true string
beisenCode 第三方公司标识(双方约定) query true string
sign 授权签名,生成方式参考1.2 query true string
grantType 授权类型,固定值: client_credentials query true string

请求示例

GET https://www.hrzhixin.com/access-token?account=9BeLsenCy&beisenCode=000000&grantType=client_credentials&sign=35B19F2052AB5920BF732494CB271428/code>

响应参数

参数名称 说明 类型
respCode 业务码,0表示成功 int32
respMsg 信息 string
data 业务信息 object
token 授权码 string
expiresIn 有效截止时间(毫秒) string

响应参数

{
    "respCode":1,
    "respMsg":"操作成功",
    "data":{
        "token":"29688c491b6898cada96c221a447430e",
        "expiresIn":"1565249568",
    }
}