Home > Backend Development > PHP Tutorial > php发送微博的update方法返回空

php发送微博的update方法返回空

WBOY
Release: 2016-06-23 14:13:58
Original
868 people have browsed it

本帖最后由 lidongmao00 于 2013-06-19 21:15:57 编辑

无法发送微博,没有报错,有谁做过这个的告知下,谢谢!
<?phpsession_start();include_once 'config_auth.php';include_once 'saetv2.ex.class.php';$auth = new SaeTClientV2(WB_AKEY,WB_SKEY,$_SESSION['token']);$mes = $_POST['msg'];$weibo=$auth->update($mes);echo $weibo==null;?>
Copy after login

回复讨论(解决方案)

你的access token 的权限有没有update权限?

你的access token 的权限有没有update权限?
我把部署的那个应用删除了,重新创建一个,然后就可以发送微博了,代码都没改!


你的access token 的权限有没有update权限?
我把部署的那个应用删除了,重新创建一个,然后就可以发送微博了,代码都没改!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template