尊敬的开发者:
新浪微博推出后,取得了非常迅猛的发展,微博各项数据量激增。因此,为了适应微博高速发展的势头,开放平台现在需要对微博、评论、私信的id数据类型和生成算法进行升级,升级后的微博、评论、私信id长度会有所增加,需要您对您的应用做出相应的调整。
本次升级内容:
1、id升级到64位整形变量;
2、id由不完全自然有序,升级为粗略有序;
针对升级的应用调整建议:
1、对于变量类型,建议使用64位整形变量定义id;
2、对于不支持64位整形变量的开发语言,建议使用字符串(string)类型定义id;
本次调整影响接口有:
- statuses/public_timeline
- statuses/friends_timeline
- statuses/user_timeline
- statuses/mentions
- statuses/comments_timeline
- statuses/comments_by_me
- statuses/comments_to_me
- statuses/comments
-
- statuses/update
- statuses/upload
- statuses/destroy
- statuses/repost
- statuses/comment
- statuses/comment_destroy/:id
- statuses/comment/destroy_batch
- statuses/reply
-
- direct_messages
- direct_messages/sent
- direct_messages/new
- direct_messages/destroy/:id
- direct_messages/destroy_batch
官方SDK已经支持次更新,如果您使用SDK请更新SDK:
C#等三方SDK正在对此进行测试。
我们提供了一个沙箱环境在220.181.129.103
上,您可将URL 中的api.t.sina.com.cn换为ip或者修改Host文件进入测试环境:
mac os x/linux/unix系统下,修改/etc/hosts文件,添一行:
220.181.129.103 api.t.sina.com.cn
Windows系统, xp/vista/7 修改c:\windows\system32\drivers\etc\hosts文件添加一行:
220.181.129.103 api.t.sina.com.cn
测试账户为:
- 账户1:1821155364 密码:123456
- 账户2:1734528095 密码:123456
- 账户3:14233221 密码:123456
测试环境仅支持 Basic Auth,如果您的应用仅支持OAuth ,可考虑抓取一些64bit id的数据验证能否正常处理。
本次修改将于2011年1月27日正式上线。如有问题,请联系 fangyuan1@staff.sina.com.cn 感谢您对新浪微博开放平台长期的支持!
微博开放平台
2011年1月14日
没有评论:
发表评论