winterwell.jtwitter
Class UserStream
java.lang.Object
winterwell.jtwitter.AStream
winterwell.jtwitter.UserStream
- All Implemented Interfaces:
- java.io.Closeable
Deprecated. There are bugs on Twitter's end -- the messages returned by this
stream may not include all the messages to a user. The results
vary from user to user!
Connect to the streaming API.
This class picks up the following tweets:
- Tweets by you
- Tweets that mention you
- Tweets by people you follow IF
setWithFollowings(boolean) is true.
- Retweets of your messages.
- Retweets made by you.
Duplicate messages may be delivered when reconnecting to the
Streaming API.
TODO test out url-signing over header-signing -- c.f.
http://groups
.google.com/group/twitter-development-talk/browse_thread
/thread/420c4b555198aa6c/f85e2507b7f65e39?pli=1
"figured it out on my own. must use HTTP GET with OAuth params
passed in URI string. Not mentioned in the documentation. Wasted
many hours figuring out this stuff would be clarified if someone
updated the docs and made some examples."
@Deprecated
public class UserStream
- extends AStream
|
Method Summary |
java.util.Collection<java.lang.Long> |
getFriends()
Deprecated. |
void |
setWithFollowings(boolean withFollowings)
Deprecated. |
| Methods inherited from class winterwell.jtwitter.AStream |
addListener, addOutage, clear, close, connect, fillInOutages, finalize, getEvents, getForgotten, getOutages, getSystemEvents, getTweets, isAlive, isConnected, popEvents, popSystemEvents, popTweets, removeListener, setAutoReconnect, setPreviousCount |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserStream
public UserStream(Twitter jtwit)
- Deprecated.
getFriends
public java.util.Collection<java.lang.Long> getFriends()
- Deprecated.
- Returns:
- people who the user follows -- at the point when the stream last
connected.
setWithFollowings
public void setWithFollowings(boolean withFollowings)
- Deprecated.
- Parameters:
withFollowings - if true, pick up all tweets by the people the user follows.