KYT OPEN-API开发者文档
API 域名
https://openapi.trustformer.info
接口鉴权
KYT运营会提供给客户apikey和secretkey。在请求接口时,为了保障安全性,除了传递apikey,还需要按规定的算法进行加密签名。并在header中传递时间戳timestamp和签名sign参数。
header参数
参数名
数据类型
是否必传
描述
timestamp
int
true
时间戳(单位s)
sign
string
true
签名计算方式:sha256("timestamp=timestamp的值&secret=secret的值")
在线加密工具:https://crypot.51strive.com/sha256.html
示例:
加密前: timestamp=1677148682&secret=9e3df800bbcbb1b8fc97bf78ed95a95a92aa3a155d270f1e48eb330c2d435321
加密后: 110a20dcbe1fef5456051a8887c8d1aeba637bbc624e606697fb82a7e7ded604
apikey过期或错误,接口返回:
{
"code": -1,
"data": {},
"message": "api_key is invalid"
}Last updated