@myyzs
2017-10-11T05:19:47.000000Z
字数 912
阅读 23
参考如下地址:https://open.fdcyun.com/#!robot/sdk.md
1、接口地址
https://open-backend-ci.fdccloud.com/api/yzs/get-all-tenants
2、请求方式
GET/POST
3、app_code&key
$key= Open59b203ab5d906
$app_code = 30001
4、参数
参数名 | 类型 | 必 填 | 描述 |
---|---|---|---|
app_code | string | 是 | 应用code |
sign | string | 是 | 签名 |
seq | string | 是 | 查询序列号,请求第一页数据时不传,从第二页开始使用上一次返回结果中的new_seq的值 |
timestamp | long | 是 | 当前时间戳 |
5、示例
$key= 'Open59b203ab5d906';
$seq = '';
$app_code = 30001;
$timestamp = time();
$sign = sha1($app_code.$key.$timestamp);
6、GET请求的URL示例:
测试环境
https://open-backend-ci.fdccloud.com/api/yzs/get-all-tenants?sign=6cd4500a7b94519aa705bdfae0a09b2ab26f0ed5&app_code=30001×tamp=1507696720
7、返回结果:
{
"success": 1,
"data": {
"code": 1,
"result": [
{
"tenant_id": "my56d790f123456",
"tenant_name": "企业版测试"
},
{
"tenant_id": "my563af8a283896",
"tenant_name": "保利"
}
],
"new_seq": 1506671194
}
}