首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

新浪微博获得已授权的key后如何调用API

2012-02-01 
新浪微博获得已授权的key后怎么调用API新浪的API文档发表一条微博的示例:XMLcurl -u username:password

新浪微博获得已授权的key后怎么调用API
新浪的API文档发表一条微博的示例:

XML
curl -u "username:password" -d 'status=abc&annotations=[{"type2":123}]' "http://api.t.sina.com.cn/statuses/update.xml?source=appkey" 
JSON
curl -u "username:password" -d 'status=abc&annotations=[{"type2":123}]' "http://api.t.sina.com.cn/statuses/update.json?source=appkey" 


但不知道怎么用 这是什么意思啊,已取得的oauth_token 怎么用进去啊

有好心人帮帮忙吗

[解决办法]
curl是一款linux下的应用程序,支持http协议,如果你没有linux,在windows 下安装cygwin也是有curl这个程序的。
[解决办法]
新浪微博有现成的objc sdk可用,最好不要自己搞

热点排行