timestamp.js
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* @api {GET} /3m/meeting/timestamp.do 01.获取服务器时间戳
* @apiName getTimestamp
* @apiGroup other
* @apiVersion 1.6.0
* @apiDescription 获取服务器时间戳
*
* @apiParam {String} siteId 站点标识
* @apiParam {Long} random 随机整数
* @apiParam {String} authId MD5(key+siteId+random), 其中 key 为与系统约定的加密 key
*
* @apiSuccess {int} errorCode
* 0:各参数都正确 <br/>
* 1:siteId 错误 <br/>
* 2:站点未到生效日期 <br/>
* 3: 站点过期 <br/>
* 4:authId 错误 <br/>
* 10:报文格式错误 <br/>
* @apiSuccess {Long} random 传入的 random
* @apiSuccess {Long} timestamp 时间戳
*
* @apiParamExample {xml} 请求示例
<?xml version="1.0" encoding="UTF-8"?>
<param>
<siteId>shanghai</siteId>
<random>1293230129</random>
<authId>4297f44b13955235245b2497399d7a93</authId>
</param>
*
* @apiSuccessExample {xml} 返回示例
<?xml version="1.0" encoding="UTF-8"?>
<result>
<errorCode>0</errorCode>
<random>1293230129</random>
<timestamp>1392032123210</timestamp>
</result>
*
*/