腾讯微博sdk开发debug

来源:互联网 发布:caffe python 数据层 编辑:程序博客网 时间:2024/05/22 00:35
1 出现{"data":null,"detailerrinfo":{"accesstoken":"e154d4a56e8044d8bdf5a2ff747d4c60","apiname":"weibo.t.add","appkey":"27d1186230a443d1ac7f514a96376ada","clientip":"36.40.135.90","cmd":1472,"proctime":18,"ret1":14,"ret2":4,"ret3":14,"ret4":3659629834,"timestamp":1346374860},"errcode":14,"msg":"not verify real name","ret":4,"seqid":5782635991870872542}

的错误,通过"msg":"not verify real name"错误信息提示可以看出,是因为测试用的微博没有实名验证的原因。通过腾讯微博的实名验证,获取天下无双的勋章,就可以发送了。


2 出现各种类似于“ msg: error content len”,还有啥" msg :not  verify indentity "

其实都是网络通讯的原因,仔细查看错误返回信息,就会发现所有的data:都是空(null)

解决方案:QWeiboAsyncApi类中的publishMsgWithConsumerKey函数,将其中的http获取方式从“get”改为“post”

我不明白官方文档说的两种都能用,为什么具体到应用中,get就用不了。

结果一上午的折腾,腾讯微博终于能用了。 撒花,庆祝!
0 0
原创粉丝点击