http://service.open.yy.com/getTopChUserCount参数:
appid: 应用id
top_ch: 顶级频道id
time:时间戳,格式为类似为20121224175100
verify: 验证信息, 格式为md5(appid + top_ch + time + sha1(app_key)), 其中+号表示字段以字符串格式相加,
sha1(app_key)表示以sha1加密,md5(xx)表示以md5加密xx返回结果:
code: 错误编码,为0表示成功,其他表示失败
msg: 表示错误消息
top_ch:顶级频道id
user_count:用户数量典型调用例子如下:
http:://service.open.yy.com/getTopChUserCount?appid=100&top_ch=56777777&time=20121224175100&verify=xxxxxx典型返回如下:
{"code":0,"msg":"Success","top_ch":56777777,"user_count":100}
appid: 应用id
top_ch: 顶级频道id
time:时间戳,格式为类似为20121224175100
verify: 验证信息, 格式为md5(appid + top_ch + time + sha1(app_key)), 其中+号表示字段以字符串格式相加,
sha1(app_key)表示以sha1加密,md5(xx)表示以md5加密xx返回结果:
code: 错误编码,为0表示成功,其他表示失败
msg: 表示错误消息
top_ch:顶级频道id
user_count:用户数量典型调用例子如下:
http:://service.open.yy.com/getTopChUserCount?appid=100&top_ch=56777777&time=20121224175100&verify=xxxxxx典型返回如下:
{"code":0,"msg":"Success","top_ch":56777777,"user_count":100}
// res 就是接口返回的信息
// var res = {"code":0,"msg":"Success","top_ch":56777777,"user_count":100};
// res.user_count 就是在线人数
alert(res.user_count);
})