文档
测试

获取AccessToken

GET
https://syapi.shsyzn.com.cn/OAuth2/GetToken

请求参数

参数名
类型
描述
必填
Corpid
string
接口授权Corpid
必填
Secret
string
接口授权Secret
必填

响应参数

参数名
类型
描述
必填
errorcode
int
错误编码
必填
errormsg
string
错误信息
必填
operatetime
datetime
操作时间
必填
iserror
bool
是否发生错误
必填
data
object
返回数据对象
必填
access_token
string
接口调用凭证
必填
expires_in
int
token有效期 ,单位秒
必填

返回数据示例

{ "data": { "access_token": "Zp4dajF6hGmuRE11P8cOrX4AMVRVOc41cBBypdd9DPrATs+pfx6nQvTetsj8mrl3SQI0WISn0OCNfzt6nQNxeEvC/B0kc0+r0J77/dlvpEd9OuBwaJFb3LRKl6xGRxX", "expires_in": 7200 }, "errorcode": 0, "errormsg": null, "operatetime": "2020/04/30 14:53:08", "iserror": false }