调用新浪API删除不了微博怎么处理

WBOY
Release: 2016-06-13 13:51:37
Original
724 people have browsed it

调用新浪API删除不了微博怎么办?
$c = new WeiboClient( WB_AKEY , WB_SKEY , $_SESSION['last_key']['oauth_token'] , $_SESSION['last_key']['oauth_token_secret'] );
$me = $c->verify_credentials();
$sid = $me[0]['id'];
$result = $c->destroy($sid);
echo $result;
以上输出$result为空。程序没有报错,但也没有删除微博,本人感觉是$sid的问题,但不知道如何解决?请高手指点。

------解决方案--------------------
看一下是否有权限,报什么错

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!