售后服务管理系统免费试用

开放平台

获取访问access_token编码


接口说明:

获取API开放接口access_token,此access_token仅适用于易售后开放平台

全部API接口 API接口中的参数 appid, appSecret获取方式如下


页面导航路径:登录易售后管理平台->系统设置->我的应用


请求方式:

GET

请求地址:

https://api.eshouhou.cn/api/TokenApi


请求参数:

参数

类型

必填

名称

备注

appid

String

接口凭证Id

第三方用户接口调用唯一凭证id

timestamp

String

时间戳

时间戳,毫秒,例如 2020-04-30 17:20:56的时间戳1588238456425

sign

String

签名

md5(appid+appSrcret+ timestamp) sign签名, appSrcret为秘钥

expire

Int

过期时间

过期时间,单位(小时),可设置范围(0-24),默认2小时


返回参数:

参数

类型

必填

名称

ResultCode

String

返回编码

ErrorMsg

String

返回信息

ResultValue

Object

返回对象


ResultValue对象:

参数

类型

必填

名称

备注

access_token

String

token编码


expires_in

String

凭证有效时间

单位:秒


时间戳转换参考工具:

https://tool.lu/timestamp/

 

sign签名生成示例:

例如:

appid="ysh54dd4f8arinfx";

appSrcret ="45e1cc23a7144a28ab110804491e3135";

timestamp="1588239113429";

sign = Md5("ysh54dd4f8arinfx45e1cc23a7144a28ab110804491e31351588239113429") 为 “70DC53194F29171C3B58C5158E9F6450”

 

请求示例:

https://api.eshouhou.cn/api/TokenApi?appid= ysh54dd4f8arinfx& timestamp=1588239113429&sign=70DC53194F29171C3B58C5158E9F6450


返回成功示例:

{

    "ResultCode"0,

    "ErrorMsg""",

    "ResultValue": {

        "access_token""eXNoNTRkZDRmOGFyaW5meCY2YTgyNTFiYS1jZTY0LTQ2YjctYTUwNS1hNGU1NjAwMzI3MDYmMTIw",

        "expires_in"7200

   }

}



开发者:可为天下(北京)科技有限公司 版本号:V3.1.2
© 2024 eshouhou.com 易售后 保留所有权利
京ICP备15041347号-2京公网安备11011302007053
电话咨询
400-071-2899
在线咨询
免费试用
下载APP
返回顶部