全局说明/Overview
CSSS API Overview / 全局规范声明
本文档作为文档
企业网关通用接口-3.0json版(飞书云文档)
、领科物联网业务对接接口协议(json格式通用版本)_设备类型整合之后版本V1.3.pdf
等其他离线/在线文档的替换版本,具有最高准确性。若本文档内容与其他文档内容冲突时,请以本文档内容为准。This document has the highest accuracy as the replacement version of other offline/online documents such as document 'Enterprise Gateway Generic Interface -3.0 JSON version (Feishu cloud document)', 'Linke Internet of Things Business Docking Interface Protocol (JSON format universal version) _ Device type integrated version v1.3.pdf'. If there is any conflict between the contents of this document and other documents, the contents of this document prevail.
生产环境域名/ Production
baseUrl = "https://apiv3.linksfield.net"
全局/ Global Header
参数/parameter | 示例/example | 说明/description |
---|---|---|
Accept-Language | zh-CH | 目前支持zh-CH / Supports zh-CN |
Content-Type | application/json |
全局参数/ Global parameter
参数/parameter | 示例/example | 说明/description |
---|---|---|
version | 2.0 | 版本,默认值2.0/ Version, default value 2.0 |
access_code | P012345 | 领科提供给客户的partner_code/ The Partner code provided by Linksfield to the customer |
timestamp | 1640917845984 | 时间戳 / timestamp |
sign | 签名值 / sign |
签名算法/ Sign
1.
All non-empty parameters (including path, query, and body) are signed with the JSON String of key value in lexicographic order.
signContent = "{"version":"2.0","access_code":"P012345","timestamp":"1498723232"}"
2.
Encrypt signContent data using the HMAC-SHA1 algorithm.
sign = HMAC-SHA1(signContent,secret);
3.
The encrypted content is Base64 encoded.
sign = Base64Encode(sign)
Please apply for the enterprise key (access_code, secret) to Linksfield Sales /FAE
修改于 2023-06-09 05:34:21