Git Product home page Git Product logo

php-plurk-api's People

Forkers

cgvarela

php-plurk-api's Issues

plurk_api.php on line 581

Strict Standards: Only variables should be passed by reference in 
...\plurk_api.php on line 581

581是
 $offset = (isset($offset)) ? $offset : array_shift(explode("+", date("c")));

看起來怪怪搭...

Original issue reported on code.google.com by [email protected] on 12 Mar 2011 at 9:11

改進參考

您好,
針對最近我自己在使用,以及從 
Issues看得許多靈感做的改進。
提供給您參考。

主要修改了幾個部份:
1. cookie re-use,使用者登入都會有個人的cookie 
file,下次登入會先檢查該檔案
2. browser mode 
support,可以在瀏覽器上面使用,但CLI也許會有一些問題 :p
3. error control,所有失敗都回傳FALSE,但可以呼叫error_display() 
知道原因

Original issue reported on code.google.com by [email protected] on 4 Feb 2010 at 3:16

Attachments:

space changed to +

What steps will reproduce the problem?
1. uncomment $plurk->add_plurk('en', 'says', 'Hello World'); in example.php
2. run example.php

What is the expected output? What do you see instead?
I expect to see Hello World in my plurk page, but I get Hello+World instead

What version of the product are you using? On what operating system?
version: php-plurk-api 1.3 Beta
operating system: GNU/Linux

Please provide any additional information below.
none

Original issue reported on code.google.com by [email protected] on 2 Jan 2010 at 10:38

一個 get_plurks 的問題

你好!
我執行這個 print_r($plurk->get_plurks()); 
都傳回stdClass Object ( [plurk_users] => stdClass Object ( ) [plurks] => 
Array ( ) )  資料是空的。

但用其他函數,例如 print_r($plurk->get_unread_plurks()); 
或是 print_r($plurk->get_plurk(9999999)->plurk->content);
都有資料傳回

請問有怎樣的可能是我疏忽的。

我的 API 已更新為 1.6.2 
我的PHP 是  5.2.13

Original issue reported on code.google.com by [email protected] on 17 Nov 2010 at 5:16

get_friends和get_fans無法傳回超過3010位好友後的資料

What version of the product are you using? On what operating system?
php-plurk-api-1.6.1 on windows xp

您好,
當我使用api的get_friends($user_id, $offset)和get_fans($user_id, 
$offset)指令時,
無法將$offset設定到3000以上的數值,
不論設定多少, 傳回來的內容還是同$offset = 3000的內容,
也就是說最多只能找到第3009位好友的資料,
不知這個問題可否改善?

Original issue reported on code.google.com by [email protected] on 19 Oct 2010 at 1:27

Suggestion: improve add_plurk() , edit_plurk() , and add_response()

* The document says add_plurk() return boolean value, but we got 
  JSON object.

* add_plurk(), edit_plurk(), and and add_response() should return 
  JSON object, because it contain error_text for debugging.

* add_plurk(), edit_plurk(), and and add_response() should use error_text
  in JSON object for logging.

anyway, diff file attached.

Original issue reported on code.google.com by [email protected] on 23 Jan 2010 at 1:53

Attachments:

mute plurks!?

1. mute plurks 是不是用來消音的?
2. 使某 Plurk_id 消音要怎麼寫?
3. 謝謝ˇ

Original issue reported on code.google.com by [email protected] on 21 Feb 2011 at 12:51

相容 RLPlurkAPI 性

這個 API 預計和 RLPlrukAPI 完全相容,所以會多寫一些空的 
method ,並
且取和 RLPlurkAPI 裡面的 method 相同的名字,但 CALL 的是 
php-plurk-
api 的 method 舉例來說:

Class RLPlurkAPI {
    function AddPlurk($string = 'foo')
    {
        $string .= ' bar';
        return $string
     }
}

則我們寫為:

Class plurk_api {

    function plurk_add($string = 'foo')
    {
        $string .= ' bar';
        return $string;
    }

   /* 為了相容 */
    function  AddPlurk($string)
    {
        return $this->plurk_add($string)
    }
}

Original issue reported on code.google.com by roga.lin on 11 Dec 2009 at 1:10

mb_strlen的判斷錯誤

在plurk_api.php中的 add_plurk, edit_plurk, add_response, 
add_plurk中有做了字數的判斷,

但是因為mb_strlen沒有指定內部的編碼方式,所以在字數的判��
�上面會有問題,

而官方的字數判斷是140個字,如果沒有指定內部編碼為"UTF-8"�
��話,就會(表面上計算)超過140個字,但是

實際上沒有到達140個,所以會發出responses,也可以發plurk,但
是log又會記錄這個錯誤訊息,

這有點不太合常理,易造成log量容易暴增。

EragonJ.

Original issue reported on code.google.com by jack.xxlong on 16 Feb 2010 at 7:43

缺少設為喜歡/不喜歡的函式

由於現在噗浪有將噗設為「喜歡」的功能,Plurk API 
中也新增了兩個項目:
http://www.plurk.com/API#/API/Timeline/favoritePlurks
http://www.plurk.com/API#/API/Timeline/unfavoritePlurks

但 php-plurk-api 1.5.0 
中還沒有這兩個函式,希望能補進去,感謝!

Original issue reported on code.google.com by [email protected] on 19 Aug 2010 at 4:14

update_picture() not works

嘗試用下列程式碼
$result = $plurk->update_picture ( "D:\\my_pic.jpg" );

得到底下錯誤
Notice: Undefined variable: upload_image in plurk_api.php on line 334

並且沒辦法更新個人圖像。

Original issue reported on code.google.com by [email protected] on 3 Feb 2010 at 8:34

limit問題

像是使用get_plurks_polling功能,
明明設定limit值是100,
但卻抓回來的資料只有49筆?

以下是我寫的程式碼,
$plurk->get_plurks_polling("2011-3-08T12:00:00",100)
在那offset之後有超過一百筆留言
但卻只抓到49筆

Original issue reported on code.google.com by [email protected] on 9 Mar 2011 at 10:06

Adding /API/Users/getKarmaStats

As in the title, adding /API/Users/getKarmaStats into php-plurk-api. This API 
is useful for us to keep track the trend and reason why Karma drops.

感謝您

Original issue reported on code.google.com by [email protected] on 1 Oct 2010 at 1:16

UNIT TEST

UNIT TEST 寫在 example.php 裡面,希望每個 method 
都可以測試到,順便
寫成範例,讓以後想用的人可以用。

Original issue reported on code.google.com by roga.lin on 11 Dec 2009 at 1:11

how to use getPlurks

What steps will reproduce the problem?
1. how to use the method getPlurks??? I want to get others' plurk  
2. the body is like that    printf("getPlurks: This function is not 
implemented yet.\n");


What version of the product are you using? On what operating system?
php-plurk-api-1.5.0  on windows XP



Original issue reported on code.google.com by [email protected] on 5 May 2010 at 9:12

執行後一片空白

  請問一下~
  當我下載 php-plurk-api_1.4.1
  解壓縮後~
  在 example.php 裡加上了申請的 api 還有我的帳號密碼
  然後全部上傳到同一目錄的資料夾中
  接著執行 http://網址/example.php
  卻是一片空白... 為什麼呢?

  依照 example.php 預設底下的程式碼,顯示20則噗

  echo "\n\n ----- get plurks ----- \n";
  print_r($plurk->get_plurks(NULL, 20, NULL, NULL, NULL));

  難道官方提供的範例其實還要做其它的處理嗎?
 不是直接放上去就能用嗎?

Original issue reported on code.google.com by [email protected] on 6 Feb 2010 at 7:30

get_plurks() & add_response() 的問題

get_plurks() 中的 $only_responded = FALSE 及 $only_private = FALSE,
好像改成 $only_responded = '' 及 $only_private = '' 
才能抓到正常的河道內容。

add_response() 似乎沒有作用,不知是否是因為少了 $result = $this-
>plurk(PLURK_ADD_RESPONSE, $array);

另外,其成功好像沒有送 http_status 200,要改用 400 
判斷是否成功嗎?

用到目前遇到的問題,再麻煩解答囉~

感謝原作前輩們的熱心付出 <(_ _)>

Original issue reported on code.google.com by [email protected] on 16 Dec 2009 at 4:13

Qualifier 傳到 Plurk.com 的值永遠是 "likes"

用 1.3 Beta 新增 Plurk 時,qualifier 
不會是我送入的參數,永遠都是 likes
看了一下程式碼,是在 plurk_api.php 的第 644 行寫錯了:

'qualifier' => 'likes',

應該要寫成這樣才對:

'qualifier' => $qualifier,

Original issue reported on code.google.com by [email protected] on 6 Jan 2010 at 3:20

要怎麼抓其它使用者timeline上的噗



What is the expected output? What do you see instead?
我想要抓別人的timeline上的噗,但get_plurks只能抓取目前此api��
�登入的user的timeline的
噗。
請問要如何做呢?謝謝

What version of the product are you using? On what operating system?
php-plurk-api-1.5.0
php5.2.6
windows xp



Original issue reported on code.google.com by [email protected] on 12 May 2010 at 9:53

get_plurks抓回的資料疑問

今天在使用get_plurks抓回資料時
出現了抓回來的筆數有缺
測試時發現:
設定數量5 抓回5
設定數量6 抓回5
設定數量7 抓回7
第六篇噗是問題所在
即使是發出相同內容的噗,還是只有讀到"該使用者"的"該篇"�
��時才會有少抓的情形


Original issue reported on code.google.com by [email protected] on 25 Mar 2010 at 4:50

Plurk 推出支援 OAuth 的 API 2.0 beta

已經丟出新的 API 列表了 http://www.plurk.com/API/2
期望看到新的版本推出~~

Original issue reported on code.google.com by nuku.net on 18 May 2011 at 2:45

get_plurks_polling forgot to return JSON object

What steps will reproduce the problem?
1. $result = $this->plurk(PLURK_POLLING_GET_PLURK, $array);
2.
3.

What is the expected output? What do you see instead?
return $this->plurk(PLURK_POLLING_GET_PLURK, $array);

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 18 Dec 2009 at 9:38

getPlurks() 參數說明錯誤

這些問題出現在目前的 php-plurk-api 1.4 中:

get_plurks() 的 $offset 參數說明是 timestamp,
這裡的 timestamp 不知是否指 UNIX timestamp?
根據 Plurk 的官方文件,這個參數必須使用 
"年-月-日T時:分:秒" 的格式
我的測試結果亦是如此;其他表示法皆無法生效。

get_plurks() 的 $only_user 參數說明是 "使用者ID" 
(要返回誰的噗),
這個參數 Plurk 本身的網頁也沒說清楚用法及應傳入的值。
根據我的測試,無論傳入的值為何;除非那個值是 null,
否則都會變成 "只列出目前登入的使用者的噗",即使傳入 
false 也是。

edit_plurk() 中的 urlencode() 依然存在,會造成這個問題:
http://code.google.com/p/php-plurk-api/issues/detail?id=6&can=1

Original issue reported on code.google.com by [email protected] on 19 Jan 2010 at 8:45

is there a time limit on posting from the plurk API?

What steps will reproduce the problem?
1. I have created a wordpress plugin 
http://wordpress.org/extend/plugins/wa-plurk-updater/
2. Edit or create new posts using a localhost wordpress
3. Do this more a couple of times

After 7 posts or edits... it is no longer posting in plurk.

Original issue reported on code.google.com by [email protected] on 21 Feb 2011 at 12:49

Cookie saved re-use

由於 Plurk 開始針對每日五萬次的 API calls 做限制,
如果用 https://www.plurk.com/API/Stats/ 看存取量的話,
Users logged in 幾乎是執行一個動作就會相對增加,
也就是說完成 Cookie 再利用的話,因該可以減少一半的存取量!!

溫子的想法:
目前已經看到專案中將 Cookie 存成固定的檔案了,
所以可以將 cookie 變成一個目錄型態,並且存放以 $username 
為檔名的文件紀錄,
在 login() 
先判斷是否檔案存在,並且檔案生成日期是否在10天內,
按照 Plurk 的規定是 Cookie 自動登入保留 14 天,
為求保險所以設為 10天超過重建這個 cookie 檔..

不知道目前這個想法有人在實作了嗎??

Original issue reported on code.google.com by nuku.net on 31 Dec 2009 at 5:49

get_plurks() 缺少 $only_favorite 參數及註解錯誤

現在噗浪有將噗設為「喜歡」的功能,Plurk API 中也新增了 
only_favorite 參數:
http://www.plurk.com/API#/API/Timeline/getPlurks
但 php-plurk-api 1.5.0 中的 get_plurks() 
還沒有這項參數,希望能補進去,感謝!

--

另外之前提出的 get_plurks() 註解說明錯誤也希望能一併修正:
http://code.google.com/p/php-plurk-api/issues/detail?id=8&can=1

茲列如下:

get_plurks() 的 $offset 參數
應該是 "年-月-日T時:分:秒" 的格式而非 timestamp

get_plurks() 的 $only_user 參數並非是 "使用者ID"
而是傳入 null 以外的值都會變成 
"只列出目前登入的使用者的噗"

--

順帶一提,get_plurk() 的註解寫成 function get_plurks 了
雖然這不是程式錯誤,但希望也能修正,感謝 =)

Original issue reported on code.google.com by [email protected] on 19 Aug 2010 at 3:55

get_plurks回傳資料的順序以及筆數?

What steps will reproduce the problem?
1. get_plurks(date('c'), 30);

What is the expected output? What do you see instead?
如果我的理解沒錯的話,應該會回傳我自己的時間軸上最近��
�30筆噗的資料?
但是我得到的結果,是不到30筆的資料(只有28筆),
並且時間順序從今天到一個多禮拜前的資料都有,
並不是最近的30筆資料。

請問get_plurks回傳的資料正確order方式是如何?
另外為什麼回傳的資料筆數沒有達到$limit設定的筆數?

What version of the product are you using? On what operating system?
php-plurk-api-1.5.0
microsoft windows 7

Original issue reported on code.google.com by [email protected] on 15 Jun 2010 at 4:26

無法從method的回傳值知道太多錯誤訊息

每次呼叫一個方法像是 $result = $plurk->delete_plurk ('123456' );
由於回傳結果只會告知 true of false , 
沒辦法從當中知道為什麼這個操作失敗了,
失敗的原因是什麼。

有太多地方用下列的方式處理掉了
    return ($this->http_status == '200') ? TRUE : FALSE;

建議可以添加一個錯誤控制的方法,例如:

    if ( $this->debug_mode ) {
        return  $this->plurk(PLURK_TIMELINE_PLURK_DELETE, $array);
    }
    else {
        $result = $this->plurk(PLURK_TIMELINE_PLURK_DELETE, $array);
        return ($this->http_status == '200') ? TRUE : FALSE;
    }

Original issue reported on code.google.com by [email protected] on 3 Feb 2010 at 4:05

Sorry I have a stupid question(關於API KYE與登入)


抱歉我找不到明確的資料說明,登入時所需的API 
KYE,是否可以用APP KYE取代? 
(抱歉,我還是新手,找了七八個小時,還是沒有解決,所以�
��有這樣的疑問。)
可能還有其他的問題,不過我真的找不出來了@@
抱歉所以才想請教一下各位@@

這只是單純的登入,還有抓取 未讀取過的噗浪 的資料。
Bad Request中,也一直顯示(1 missing, 0 additional)。 
順便將錯誤的內容附上:
Strict Standards: Only variables should be passed by reference in 
C:\xxx\xxx\plurk_api.php on line 553、582() 
553、582 這兩行的,行程式碼都是: $offset = (isset($offset)) ? 
$offset : array_shift(explode("+", date("c")));

Warning: Invalid argument supplied for foreach() in C:\XXX\XXX\2.php on line 13 
:
13行程式碼為: foreach( $allUnRead->plurks as $obj )

使用的版本是:1.6.4
PHP:6.0.0
Apache:2.2.8
確定有安裝了 Json、cURL

Original issue reported on code.google.com by [email protected] on 14 Nov 2011 at 4:41

get_fans() do not support get by nick_name

API 的 get_fans 說明
http://plurk.lab3.tw/docs/php-plurk-api/plurk_api.html#get_fans
有描述說
    $user_id: The user_id of the public profile. Can be integer (like 34) or
nick name (like amix).

不過官方的API 並沒有提到這一點
    http://www.plurk.com/API#/API/FriendsFans/getFansByOffset

試驗結果也只有 user_id 可以使用。

Original issue reported on code.google.com by [email protected] on 3 Feb 2010 at 8:30

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.