由于新浪微博会验证登录的IP地址,所以在新浪微博的后台,请将登录保护中的 “北京”,不显示验证码。操作方式如下:
下面就可以使用接口发新浪微博了?哈哈。
接口说明: QQ 12165743
1. 按昵称搜索:
URL:http://autocron.sinaapp.com/api/weibo/?act=searchUser
POST:
username: 用户名
pwd: 密码
uname: 微信昵称
JSON:
errMsg : 表示有错误信息
UID:
昵称:
性别:
所在地:
2. 按UID取信息:
URL:http://autocron.sinaapp.com/api/weibo/?act=getUserByUid
POST:
username: 用户名
pwd: 密码
UID: 用户UID
JSON:
errMsg : 表示有错误信息
UID:
昵称:
性别:
所在地:
3. 关注我的消息:
URL:http://autocron.sinaapp.com/api/weibo/?act=getAtMeBlog
POST:
username: 用户名
pwd: 密码
page: 页码
JSON:
errMsg : 表示有错误信息
total: 总记录数
maxPage:页数
…………….
idstr: 回复消息ID
text: 回复内容
created_at: 关注时间
screen_name: 关注人昵称
…………….
4. 发送消息:
URL:http://autocron.sinaapp.com/api/weibo/?act=sendMesg
POST:
username: 用户名
pwd: 密码
thumb: 图片(可选,要使用网络地址)
content: 内容(130个汉字)
JSON:
errMsg : 表示错误信息
id: 微博ID
msg: 返回状态说明