public class SitestreamController extends Object
| Constructor and Description |
|---|
SitestreamController(Authentication auth)
Construct a sitestream controller using the default host (sitestream.twitter.com) and a
DefaultHttpClient.
|
SitestreamController(Hosts hosts,
Authentication auth)
Construct a sitestream controller using a DefaultHttpClient
|
SitestreamController(org.apache.http.client.HttpClient client,
Authentication auth)
Construct a sitestream controller using the default host (sitestream.twitter.com)
|
SitestreamController(org.apache.http.client.HttpClient client,
Hosts hosts,
Authentication auth)
Construct a sitestream controller.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addUser(String streamId,
long userId)
TODO: This must be limited to 25 adds per seconds
|
void |
addUsers(String streamId,
Collection<Long> userIds) |
String |
getFriends(String streamId,
long userId) |
String |
getFriends(String streamId,
long userId,
int cursor) |
String |
getInfo(String streamId) |
String |
getInfo(String streamId,
long userId)
Deprecated.
info.json does not take a user_id param (@see https://dev.twitter.com/docs/streaming-apis/streams/site/control#info)
|
void |
removeUser(String streamId,
long userId) |
void |
removeUsers(String streamId,
Collection<Long> userIds) |
public SitestreamController(org.apache.http.client.HttpClient client,
Hosts hosts,
Authentication auth)
public SitestreamController(org.apache.http.client.HttpClient client,
Authentication auth)
public SitestreamController(Hosts hosts, Authentication auth)
public SitestreamController(Authentication auth)
public void addUser(String streamId, long userId) throws IOException, ControlStreamException
IOExceptionControlStreamExceptionpublic void removeUser(String streamId, long userId) throws IOException, ControlStreamException
IOExceptionControlStreamExceptionpublic void addUsers(String streamId, Collection<Long> userIds) throws IOException, ControlStreamException
IOExceptionControlStreamExceptionpublic void removeUsers(String streamId, Collection<Long> userIds) throws IOException, ControlStreamException
IOExceptionControlStreamExceptionpublic String getFriends(String streamId, long userId) throws IOException, ControlStreamException
IOExceptionControlStreamExceptionpublic String getFriends(String streamId, long userId, int cursor) throws IOException, ControlStreamException
IOExceptionControlStreamException@Deprecated public String getInfo(String streamId, long userId) throws IOException, ControlStreamException
IOExceptionControlStreamExceptionpublic String getInfo(String streamId) throws IOException, ControlStreamException
IOExceptionControlStreamExceptionCopyright © 2014. All Rights Reserved.