evan-wu / libweibo Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/libweibo
Automatically exported from code.google.com/p/libweibo
运行最新的oauth2 认证 返回如下错误
{"request":"/oauth2/authorize","error_code":"21320","error":"OAuth2_must_use_htt
ps!"}
Original issue reported on code.google.com by [email protected]
on 16 Jun 2011 at 4:57
最新 oauth 版的,weibooauth.php 的 847 行的 file_get_contents 请求。
如果被请求的图片所在机器不稳定或有故障,可能导致程序��
�此处卡死。
如果是后台进程,就会很糟糕。建议设定下超时时间。
附件是我的修改。
Original issue reported on code.google.com by [email protected]
on 20 Sep 2010 at 1:45
Attachments:
接口oauth成功后,报错:
Fatal error: Call to undefined function json_decode() in \weibo\weibooauth.php
on line 1625
Original issue reported on code.google.com by [email protected]
on 3 Oct 2010 at 4:34
1049 function upload( $status, $pic_path, $lat = NULL, $long = NULL,
$annotations = NULL)
1050 {
1051 $params = array();
1052 $params['status'] = $status;
1053 $params['pic'] = '@'.$pic_path;
1054 if ($lat) {
1055 $params['lat'] = floatval($lat);
1056 }
1057 if ($long) {
1058 $params['long'] = floatval($long);
1059 }
1060 if (is_string($annotations)) {
1061 $params['annotations'] = $annotations;
1062 } elseif (is_array($annotations)) {
1063 $params['annotations'] = '['.json_encode($annotations).']';
1064 }
1065
1066 return $this->oauth->post( 'statuses/upload', $params, true );
1067 }
Original issue reported on code.google.com by yangzhuoluo
on 6 Mar 2012 at 5:28
[deleted issue]
RandsonCMS
[email protected]
Original issue reported on code.google.com by [email protected]
on 8 Jun 2012 at 7:13
/**
* 指定一个图片URL地址抓取后上传并同时发布一条新微博
*
* 对应API:{@link http://open.weibo.com/wiki/2/statuses/upload_url_text statuses/upload_url_text}
*
* @param string $status 要发布的微博文本内容,内容不超过140个汉字。
* @param string $url 图片的URL地址,必须以http开头。
* @return array
*/
function upload_url_text( $status, $url )
{
$params = array();
$params['status'] = $status;
$params['url'] = $url;
return $this->oauth->post( 'statuses/upload', $params, true );
}
statuses/upload 应该为 statuses/upload_url_text
Original issue reported on code.google.com by [email protected]
on 7 May 2012 at 7:33
群号:122450705
欢迎app开发爱好者加入
Original issue reported on code.google.com by [email protected]
on 22 Nov 2010 at 5:42
What steps will reproduce the problem?
function comments_timeline( $count = 10 , $page = 1 )
{
return $this->call_method( 'statuses' , 'comments_timeline' , '?count=' . $count . '&page=' , $page );
}
What is the expected output? What do you see instead?
最后一个,应为.
不止这个方法 很多方法都存在这个问题
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 1 Dec 2010 at 9:07
reply接口有问题,是代码里面的1332行: $param['cid '] = $cid;
参数cid后面多了个空格。
$param['id'] = $sid;
$param['comment'] = $text;
$param['cid'] = $cid;
Original issue reported on code.google.com by [email protected]
on 22 Aug 2010 at 2:44
第 1028 行:
$params['annotations'] = json_encode($annotations);
应该改为:
$params['annotations'] = '['.json_encode($annotations).']';
如果不加中扩号,服务端会报 10017 错误
Original issue reported on code.google.com by yangzhuoluo
on 6 Mar 2012 at 5:27
[deleted issue]
[deleted issue]
saetv2.ex.class.php文件
timeline_batch_by_name函数
701和703行应该为screen_names,少了个s,导致接口报错
不用谢,我叫雷锋
Original issue reported on code.google.com by [email protected]
on 10 Jun 2014 at 4:52
见 API
http://open.weibo.com/wiki/2/statuses/upload
JSON中传入的是有 $annotations 参数的,而 SDK
中却没有这个参数。
Original issue reported on code.google.com by yangzhuoluo
on 6 Nov 2011 at 6:47
What steps will reproduce the problem?
1. click authorize
2. confirm by click accepting button
3. callback/weibolist
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
First i m sorry to post in issue, Since actually it's not an issue.
How to skip step #2?
the case is i want to make wordpress plugin to auto posting status to weibo
when new post created.
thank you
Original issue reported on code.google.com by [email protected]
on 21 Feb 2013 at 4:05
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 14 May 2012 at 3:24
例如使用微博http://weibo.com/1821257283/xC7X0lkBS进行测试,代码如�
��:
……
$msg = $c->get_comments_by_sid($sid,29,20);
……
返回的结果里面评论不足20条。
Original issue reported on code.google.com by [email protected]
on 18 Dec 2011 at 8:30
修复笔误。
Original issue reported on code.google.com by [email protected]
on 31 Jan 2012 at 4:24
Attachments:
[deleted issue]
[deleted issue]
<?php
session_start();
//if( isset($_SESSION['last_key']) ) header("Location: weibolist.php");
include_once( 'config.php' );
include_once( 'weibooauth.php' );
$o = new WeiboOAuth( WB_AKEY , WB_SKEY );
$keys = $o->getRequestToken();
if( strpos( $_SERVER['SCRIPT_NAME'] , 'index.php' ) === false )
$callback = $_SERVER['SCRIPT_NAME'].'/callback.php';
else
$callback = str_replace( 'index.php' , 'callback.php' , $_SERVER['SCRIPT_NAME'] );
$callback = 'http://' . $_SERVER['SERVER_NAME'] . $callback;
$aurl = $o->getAuthorizeURL( $keys['oauth_token'] ,false , $callback );
$_SESSION['keys'] = $keys;
?>
<a href="<?=$aurl?>">Use Oauth to login</a>
Original issue reported on code.google.com by swingcoder
on 14 Dec 2010 at 5:43
日志中显示如下LOG
[Mon Mar 05 20:50:26 2012] [error] [client 116.55.xxx.xx] PHP Notice:
Undefined index: refresh_token in /var/www/xxx/saetv2.ex.class.php on line 201,
referer: http://www.xxxx.com/
第201行有错,refresh_token 未定义
Original issue reported on code.google.com by yangzhuoluo
on 5 Mar 2012 at 1:04
saetv2.ex.class.php
文件中封装的API接口并不完整,比如这个API:http://open.weibo.co
m/wiki/Oauth2/revokeoauth2
Original issue reported on code.google.com by [email protected]
on 29 May 2013 at 6:43
如题
Original issue reported on code.google.com by [email protected]
on 26 Jun 2012 at 9:23
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.