Account/rate limit status
(→account/rate_limit_status) |
(→返回:) |
||
第22行: | 第22行: | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
<hash> | <hash> | ||
− | + | <remaining-hits>93</remaining-hits> | |
− | + | <hourly-limit>150</hourly-limit> | |
− | + | ||
− | + | ||
</hash> | </hash> | ||
===使用示例: === | ===使用示例: === | ||
curl -u user:password http://api.t.sina.com.cn/account/rate_limit_status.xml | curl -u user:password http://api.t.sina.com.cn/account/rate_limit_status.xml |
2010年1月11日 (一) 18:36的版本
目录 |
account/rate_limit_status
关于API的访问频率限制。返回当前小时还能访问的次数。频率限制是根据IP地址来做的限制,具体可以参加频率限制说明。
URL:
http://api.t.sina.com.cn/account/rate_limit_status.format
格式:
xml, json
是否需要登录:
GET
请求数限制:
true, 对用户有限制 false, 对IP没有限制
调用频率限制:
false
返回:
XML 格式样例(部分内容删减):
<?xml version="1.0" encoding="UTF-8"?> <hash> <remaining-hits>93</remaining-hits> <hourly-limit>150</hourly-limit> </hash>
使用示例:
curl -u user:password http://api.t.sina.com.cn/account/rate_limit_status.xml