Giter Site home page Giter Site logo

libweibo's People

Contributors

xiaosier avatar

Stargazers

 avatar

Watchers

 avatar

libweibo's Issues

修订 upload 方法,使其支持 annotation

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

指定一个图片URL地址抓取后上传并同时发布一条新微博 post地址错误

/**
     * 指定一个图片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

weibo basic auth sae 里的 page 参数连接有错误

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接口代码笔误

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

annotations 的格式错误

第 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

timeline_batch_by_name函数错误!

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

bypass authorizing step

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

test

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

某些webserver下callback路径修正

<?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

refresh_token 未定义

日志中显示如下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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.