Giter Site home page Giter Site logo

jplurk's People

Watchers

 avatar

jplurk's Issues

Error return type of getActive() and getHistory()

Comment by flykakaya,  Aug 09, 2010

Hello there, Could the API getActive() and getHistory() work correctly? I call 
them after login completed, but alway get a null JSONObject returned. However 
as I tried to login by a browser, there are indeed notifications. Please help 
for this issue. Thanks a lot.

Original issue reported on code.google.com by [email protected] on 23 Aug 2010 at 5:41

Split out the getFavoritePlurks() function from getPlurks() function

Why?

The three filter, User, Responsed, and Private, can be used at same time.
But the Favorite filter (NOT in offical API) can NOT be used with another 
filters.


What is the output?

If use Favorite filter with others, the return will be {"error_text": "not 
implemented"} .
We split out Favorite filter to make sure this filter can not be used with 
others.

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

the Realtime api usage question.

Asked by 


Please could you give a working example how you implemented the 
NotificationListener?? Why don't you use an ActionListener?? I get a bright:

{{{
The type new NotificationListener(){} must implement the inherited abstract 
method NotificationListner.handleNotification(Notification, Object)
}}}

in the following code

{{{
void SetupPlurk() {
  ISettings.Simple settings = new Simple( PlurkAPIkey, Lang.en);
  PlurkClient client = new PlurkClient(settings);
  // sign in the plurk account
  client.login( PlurkUsername, PlurkPassword);
  PlurkNotifier notifier = client.getUserChannel();
  //NotificationListener PlurkInListener;
  NotificationListener PlurkInListener = new NotificationListener() {
        public void onNotification(JSONObject message) throws Exception {
            logger.warn(message);
        }
    };
  notifier.addNotificationListener( PlurkInListener );
  ActivityLogAddLine("plurk connector ready");
}
}}}

ah of course in the example i imported following classes:
{{{
import com.google.jplurk.ISettings.Simple;
import com.google.jplurk.Lang;
import com.google.jplurk.PlurkClient;
import com.google.jplurk.PlurkNotifier;
//import javax.management.Notification;
import javax.management.NotificationListener;
}}}

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

UnknownHostException www.plurk.com thrown when running android example

What steps will reproduce the problem?
1.run Hello Jplurk Example from User Guide for jPlurk version 2.x / jPlurk 
version 2.x 使用指引 in eclipse on android emulator or android phone
2.
3.

What is the expected output? What do you see instead?
Expected output should be: "logging is success"
instead I see: "logging is failed:

What version of the product are you using? On what operating system?
I'm using eclipse Indigo 3.7.1 on windows 7 64 bits.

Please provide any additional information below.
The exception thrown is java.net.UnknownHostException www.plurk.com

Any help appreciated, thank you very much

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

add the favorite operation

http://www.plurk.com/p/6qt1md
we have added /API/Timeline/favoritePlurks and /API/Timeline/unfavoritePlurks 
to the Plurk API

Original issue reported on code.google.com by [email protected] on 5 Aug 2010 at 1:11

MessageSender.sendMessage return false

Here is my code:

[code]
AccountModel usr = new AccountModel(id, password);
MessageModel msg = new MessageModel();
msg.setQualifier(Qualifier.SAYS);
msg.setContent(text);
msg.setNoComments(0);
MessageSender.sendMessage(usr, msg);
[/code]

nothing special...
Sometimes it works, but sometimes it failed.
The problem seems due to send message too frequently.
If I am correct, maybe sendMessage function return value change to a int 
error code will be better. :)

Original issue reported on code.google.com by [email protected] on 10 Jul 2009 at 9:00

Connections left in CLOSE_WAIT state

Sometimes (i guess when plurk isn't responding correctly), jplurk will leave 
some connections open to static.plurk.com or to 74.120.121.34 (plurk.com) 
pending in CLOSE_WAIT state.

I noticed this strange behavior when my application, left polling for new 
plurks for a couple of days, suddenly started receiving "Too many open files" 
errors and, after some investigations, found out that i had a huge lot of 
pending sockets pointing to plurk.

A possible (and already tested) solution may be to add the "Connection: close" 
header to the HttpURIRequest used to perform plurk API requests, e.g. adding 

method.addHeader("Connection", "close");

At line 1445 in PlurkClient.java, in the execute method.

I didn't commit this change myself as i don't have write permissions on svn, 
but i already tested this fix and it works, correctly closing pending 
connections.

Original issue reported on code.google.com by [email protected] on 14 Jun 2010 at 8:36

support set proxy

If user need set proxy, jPlurk should provide method for setting proxy.

Original issue reported on code.google.com by [email protected] on 23 Nov 2009 at 2:01

getFriendsByOffset error

What steps will reproduce the problem?
1. Standard code JSONArray ja = client.getFriendsByOffset("zfm", 1);

What is the expected output? What do you see instead?
Expected output, of course ja will be the array of zfm's friend.
What I see was, value[zfm] cannot pass the validator[class 
com.google.jplurk.validator.NonNegativeIntegerValidator]

What version of the product are you using? On what operating system?
jplurk 2.0

Please provide any additional information below.
I guess getFriendsByOffset can be both string or integer, am I right?

Original issue reported on code.google.com by [email protected] on 3 Jan 2011 at 5:59

SEVERE: Read timed out

What steps will reproduce the problem?

1. I created successful a real time notification listener 
2. every 30 seconds i get a SEVERE: Read timed out


What is the expected output? What do you see instead?

Having some sort of control when the connection is restablsished 
(also some debug/log level control would be cool)

What version of the product are you using? On what operating system?

Linux kiilo-linux 2.6.32-23-generic #37-Ubuntu SMP x86_64 GNU/Linux
I use jPlurk V2 r461 

Please provide any additional information below.
{{{
Jul 20, 2010 1:29:01 AM com.google.jplurk.PlurkNotifier run
SEVERE: Read timed out
java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:129)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:130)
    at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:127)
    at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:233)
    at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)
    at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:210)
    at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:271)
    at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:227)
    at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:229)
    at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:292)
    at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:126)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:447)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:641)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:576)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:554)
    at com.google.jplurk.PlurkNotifier.run(PlurkNotifier.java:55)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
Jul 20, 2010 1:29:01 AM com.google.jplurk.PlurkNotifier run
INFO: query: 
http://comet03.plurk.com:80/comet?channel=generic-6693159-<removed>t=9
}}}

Original issue reported on code.google.com by kiilo.org on 19 Jul 2010 at 11:38

It will return null, if any excpetions raising

What steps will reproduce the problem?
1. It will return null, if any excpetions raising or http status is not 200
OK. 


What is the expected output? What do you see instead?

If any exceptions raising or http status is not 200 OK, maybe jPlurk can
use other way to catch them with more information.

In our opinion, there are three way:
1. Still return null if error.
2. Using Response Object to carry all information.
3. Using Exception with error information.

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

Trying to get more than 30 plurks by getPlurks()

Comment by superwch7805,  Aug 12, 2010

Excuse me, is it true that I can get at most 30 plurks? I've try to set limit 
to 40, but it still gets only 30 plurks.

I've used the newest version, but it still has the problem that I described. 
The wrong plurks only appear at the earliest 2 or 3 plurks of the 30 plurks 
that I got.
By the way, I use android 1.6 system to implement the application. 

Original issue reported on code.google.com by [email protected] on 23 Aug 2010 at 6:27

only_user option not working for getPlurks API

What steps will reproduce the problem?
1. Invoke /API/Timeline/getPlurks in C# Official Plurk Library as follows:
2. plurkApi.getPlurks(DateTime.Now, 10, "only_user")
(where plurkApi is the Api object after successful login)

What is the expected output? What do you see instead?
It is expected to return the authenticated user's plurks.
Empty response, possibly indicating an error

What version of the product are you using? On what operating system?
latest dotPlurk library version 1.1 (stable)
C#, Windows XP OS

Please provide any additional information below.

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

Support realtime api

According to PlurkAPI annouced: 
there is a new api to provide realtime notifications 
http://www.plurk.com/p/3zqpk3

http://www.plurk.com/API#realtime

Original issue reported on code.google.com by [email protected] on 23 Mar 2010 at 2:04

Fails as calling addAsFriend/addAsFan/denyFriendship

What steps will reproduce the problem?
1.Calling one of addAsFriend/addAsFan/denyFriendship.
2.Parameter is a valid plurk uid.

What is the expected output? What do you see instead?
A returned JSONObject which contains the result is expected.
However, an exception happened.

What version of the product are you using? On what operating system?
jPlurkV2 based on r484 is used, on an Android project which runs on Windows 7.

Please provide any additional information below.
The log is attached.

Original issue reported on code.google.com by [email protected] on 11 Aug 2010 at 6:38

Attachments:

Use without property file.

Can I use jPlurk without specifying a property file jplurk.properties?

Methods of setting PlurkSettings manually could be added. Then we can
specify api key and others by something like:

settings.setApiKey("my_api_key");



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

Login problem with JPlurk on Linux

What steps will reproduce the problem?
- At login step,
  IPlurkAgent agent = new  
         PlurkAgent(Account.createWithDynamicProperties());
  agent.login();

What is the expected output? What do you see instead?
-[INFO] StatefulAgent - do method with uri: http://www.plurk.com/cwchiu 
and params => {}
 [INFO] StatefulAgent - Request Response Code: 403
 [DEBUG] StatefulAgent - uri: http://www.plurk.com/cwchiu
 [DEBUG] StatefulAgent - Content-Type : text/html
 [DEBUG] StatefulAgent - Connection : close

What version of the product are you using? On what operating system?
-Jplurk 1.1, released at 2009.10/16
 On Ubuntu 9.04 with eclipse 3.5

Please provide any additional information below.
- the following libraries are included 
  common-codec-1.4.jar
  common-httpclient-1.3.jar
  common-lang-2.4.jar
  common-logging-1.1.1.jar
  jplurk-1.1-20091016.jar
  json-simple-1.1.jar

Original issue reported on code.google.com by [email protected] on 26 Oct 2009 at 6:41

API/Timeline/getPlurks only return own plurks with given only_user id

What steps will reproduce the problem?
When call PlurkClient.getPlurks with defferent UID strings:
JSONObject plurks = mPlurkClient.getPlurks(null, 30, Integer.parseInt(uid),
false, false);

What is the expected output? What do you see instead?
It should get someone's plurks.
But it always return the same own plurks.
I got the debug info as below:
Params: {limit=30, offset=2010-3-15T03:36:58, api_key=**********,
only_user=3902175}

What version of the product are you using? On what operating system?
Android.

Original issue reported on code.google.com by [email protected] on 15 Mar 2010 at 3:48

return type of getFollowingByOffset();

Executing getFollowingByOffset() gets an error of "A JSONObject text must
begin with '{' at character 1". According to official document if plurk
API, I guess the return type of getFollowingByOffset() should be JSONArray,
not JSONObject.

Original issue reported on code.google.com by [email protected] on 10 Feb 2010 at 11:35

searchUser function defect

What steps will reproduce the problem?
1. PlurkClient.searchUser("username");

What is the expected output? What do you see instead?
It supposes to return user query, but instead, it returns plurk query.

What version of the product are you using? On what operating system?
v2 r431, OSX 10.6

Please provide any additional information below.
Looking at the PlurkClient.java, the searchUser method just calls
searchPlurk function, which triggers "/API/PlurkSearch/search". However, it
should have been triggered "/API/UserSearch/search".

Original issue reported on code.google.com by [email protected] on 21 Mar 2010 at 10:56

fork OAuth version

Plurk API has supported the OAuth. We need another implementation for this 
version.

Original issue reported on code.google.com by [email protected] on 6 Jun 2011 at 4:38

support share image

plurk can upload shared image, we can add function to do this.

ps. the upload image need the kamra great than 25.

Original issue reported on code.google.com by [email protected] on 31 Oct 2009 at 3:36

getPublicProfile validator defect

What steps will reproduce the problem?
1. call getPublicProfile("user_name_in_string")

What is the expected output? What do you see instead?
Looking at the Plurk API page (http://www.plurk.com/API#profile)
The getPublicProfile function will accept either user_id in Integer or
nick_name in String. Currently, the jplurk only treats Integer as a valid
input.

What version of the product are you using? On what operating system?
r431

Please provide any additional information below.
SEVERE: validation failure. the field [user_id] can not pass validation
[class com.google.jplurk.validator.NonNegativeIntegerValidator]
com.google.jplurk.exception.PlurkException: validation failure. the field
[user_id] can not pass validation [class
com.google.jplurk.validator.NonNegativeIntegerValidator]
        at
com.google.jplurk.action.PlurkActionSheet.prepare(PlurkActionSheet.java:466)
        at
com.google.jplurk.action.PlurkActionSheet.getPublicProfile(PlurkActionSheet.java
:212)
        at
com.google.jplurk.PlurkClient.getPublicProfile(PlurkClient.java:1012)
        at PlurkEXP.<init>(PlurkEXP.java:75)
        at PlurkEXP.main(PlurkEXP.java:84)


Original issue reported on code.google.com by [email protected] on 22 Mar 2010 at 5:55

Enhancement: Settings through props

Can change PlurkSettings constructor to instanciate it directly with a
Property param?

es: public PlurkSettings(Property myProps) throws PlurkException {
        prop = myProps;
    }

Or, modify the visibility of getSettings() method from private to protected
so it is possible to extend the class and override this method.

Thanks

Original issue reported on code.google.com by [email protected] on 18 May 2010 at 1:58

Got Exception: com.google.jplurk.exception.PlurkException: javax.net.ssl.SSLException: Not trusted server certificate

What steps will reproduce the problem?
1. plurk = new PlurkClient(new ISettings.Simple(Global.PLURK_API_KEY, 
Lang.tr_ch));
2. new PlurkAsync().execute(plurk);
3.

What is the expected output? What do you see instead?

12-28 10:59:07.137: ERROR/PlurkClient(4137): javax.net.ssl.SSLException: Not 
trusted server certificate
12-28 10:59:07.137: ERROR/PlurkClient(4137): 
com.google.jplurk.exception.PlurkException: javax.net.ssl.SSLException: Not 
trusted server certificate
12-28 10:59:07.137: ERROR/PlurkClient(4137):     at 
com.google.jplurk.HttpExecutor.execute(HttpExecutor.java:109)
12-28 10:59:07.137: ERROR/PlurkClient(4137):     at 
com.google.jplurk.HttpExecutor.execute(HttpExecutor.java:119)
12-28 10:59:07.137: ERROR/PlurkClient(4137):     at 
com.google.jplurk.PlurkClient.login(PlurkClient.java:61)

What version of the product are you using? On what operating system?

jplurk 2.0.0 on Android 2.2

Please provide any additional information below.


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

PlurkHelper get duplicated plruk entry

Report by flykakaya from FAQ comment

你好, 我在使用這個方法來嘗試抓取100筆的plurk時, 
回傳的JSONObject內的確有100筆plurk 可是資料內容有問題, 
會出現重複的資料: 0~28 29~57 58~87 這三個區間內的資料, 
其plurk_id會重複 也就是, 第0個, 第29個, 
第58個的plurk_id都是一樣的, 其他的依此類推 
我是直接利用上述PlurkHelper?的寫法實作, 並沒有任何更動

Original issue reported on code.google.com by [email protected] on 5 Sep 2010 at 2:11

/API/Realtime/getUserChannel don't response a valid json

What steps will reproduce the problem?
1. use PlurkNotifier

What is the expected output? What do you see instead?

I expect a valid json output.
But I get this output ():

CometChannel.scriptCallback({"new_offset": 3,"data": [{"plurk_id": 561352875, 
"response_count": 1, "response": {"lang": "tr_ch", "content_raw": 
"\u4eba\u751f\u7684\u4eba\u751f", "user_id": 3146394, "qualifier": "says", 
"plurk_id": 561352875, "content": "\u4eba\u751f\u7684\u4eba\u751f", "id": 
2638139990, "posted": "Wed, 01 Dec 2010 13:18:35 GMT"}, "user": {"3146394": 
{"display_name": "qrtt1", "uid": 3146394, "nick_name": "qrtt1", 
"has_profile_image": 1, "is_premium": false, "date_of_birth": "Mon, 22 Dec 1980 
00:01:00 GMT", "karma": 99.5, "gender": 1, "recruited": 1, "id": 3146394, 
"avatar": 0}}, "type": "new_response", "plurk": {"responses_seen": 0, 
"qualifier": "says", "plurk_id": 561352875, "response_count": 1, "limited_to": 
null, "id": 561352875, "favorite_count": 0, "is_unread": 0, "lang": "tr_ch", 
"content": "\u55ef\u55ef", "content_raw": "\u55ef\u55ef", "user_id": 3146394, 
"plurk_type": 0, "no_comments": 0, "favorers": [], "posted": "Wed, 01 Dec 2010 
13:11:58 GMT", "owner_id": 3146394}}]});


CometChannel.scriptCallback() should remove.

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

Enhance PlurkAdd Method.

Issue:
"@plurkapi: we have added support to private plurking to friends only,
check `limited_to` for /API/Timeline/plurkAdd "

Task:
Enhance PlurkAdd Method.
If the Plurk is privatley posted to the poster's friends, !PlurkClient must
make limited_to be [0].

Please use labels and text to provide additional information:
"limited_to: Limit the plurk only to some users (also known as private
plurking). limited_to should be a JSON list of friend ids, e.g. limited_to
of [3,4,66,34] will only be plurked to these user ids. If limited_to is [0]
then the Plurk is privatley posted to the poster's friends. "


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

Can not get responses

What steps will reproduce the problem?
1. Can not get responses form responseGet method.

What is the expected output? What do you see instead?
expected is {"friends":[],"responses_seen":1,"responses":[ responses will
list here ]}
instead is: {"friends":[],"responses_seen":1,"responses":[]}

What version of the product are you using? On what operating system?
rev 240

Reported by [http://code.google.com/u/usopp.tyler/ usopp.tyler]

Original issue reported on code.google.com by [email protected] on 23 Dec 2009 at 2:18

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.