public final class Stream
extends java.lang.Object
| Constructor and Description |
|---|
Stream(java.lang.String key,
java.net.URL baseURL,
HTTPClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<Response> |
addActivities(Token token,
FeedID feed,
Activity... activityObjects) |
java.util.concurrent.CompletableFuture<Response> |
addActivity(Token token,
FeedID feed,
Activity activity) |
StreamAnalytics |
analytics() |
StreamBatch |
batch() |
StreamCollections |
collections() |
java.util.concurrent.CompletableFuture<Response> |
createUser(Token token,
java.lang.String userID,
Data userData,
boolean getOrCreate) |
java.util.concurrent.CompletableFuture<Response> |
deleteUser(Token token,
java.lang.String id) |
StreamFiles |
files() |
java.util.concurrent.CompletableFuture<Response> |
follow(Token token,
Token targetToken,
FeedID sourceFeed,
FeedID targetFeed,
int activityCopyLimit) |
java.util.concurrent.CompletableFuture<Response> |
getActivities(Token token,
FeedID feed,
RequestOption... options) |
java.util.concurrent.CompletableFuture<Response> |
getEnrichedActivities(Token token,
FeedID feed,
RequestOption... options) |
java.util.concurrent.CompletableFuture<Response> |
getFollowed(Token token,
FeedID feed,
RequestOption... options) |
java.util.concurrent.CompletableFuture<Response> |
getFollowers(Token token,
FeedID feed,
RequestOption... options) |
<T> T |
getHTTPClientImplementation() |
java.util.concurrent.CompletableFuture<Response> |
getUser(Token token,
java.lang.String id,
boolean withFollowCounts) |
StreamImages |
images() |
java.util.concurrent.CompletableFuture<OGData> |
openGraph(Token token,
java.net.URL targetURL) |
StreamPersonalization |
personalization() |
StreamReactions |
reactions() |
java.util.concurrent.CompletableFuture<Response> |
removeActivityByForeignID(Token token,
FeedID feed,
java.lang.String foreignID) |
java.util.concurrent.CompletableFuture<Response> |
removeActivityByID(Token token,
FeedID feed,
java.lang.String id) |
java.util.concurrent.CompletableFuture<Response> |
unfollow(Token token,
FeedID source,
FeedID target,
RequestOption... options) |
java.util.concurrent.CompletableFuture<Activity> |
updateActivityByForeignID(Token token,
java.lang.String foreignID,
java.util.Date timestamp,
java.util.Map<java.lang.String,java.lang.Object> set,
java.lang.String[] unset) |
java.util.concurrent.CompletableFuture<Activity> |
updateActivityByID(Token token,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> set,
java.lang.String[] unset) |
java.util.concurrent.CompletableFuture<Response> |
updateActivityToTargets(Token token,
FeedID feed,
Activity activity,
FeedID[] add,
FeedID[] remove,
FeedID[] replace) |
java.util.concurrent.CompletableFuture<Response> |
updateUser(Token token,
java.lang.String userID,
Data userData) |
public Stream(java.lang.String key,
java.net.URL baseURL,
HTTPClient httpClient)
public StreamBatch batch()
public StreamCollections collections()
public StreamPersonalization personalization()
public StreamAnalytics analytics()
public StreamReactions reactions()
public StreamFiles files()
public StreamImages images()
public java.util.concurrent.CompletableFuture<Activity> updateActivityByID(Token token, java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> set, java.lang.String[] unset) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Activity> updateActivityByForeignID(Token token, java.lang.String foreignID, java.util.Date timestamp, java.util.Map<java.lang.String,java.lang.Object> set, java.lang.String[] unset) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<OGData> openGraph(Token token, java.net.URL targetURL) throws StreamException
StreamExceptionpublic <T> T getHTTPClientImplementation()
public java.util.concurrent.CompletableFuture<Response> getActivities(Token token, FeedID feed, RequestOption... options) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> getEnrichedActivities(Token token, FeedID feed, RequestOption... options) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> addActivity(Token token, FeedID feed, Activity activity) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> addActivities(Token token, FeedID feed, Activity... activityObjects) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> removeActivityByID(Token token, FeedID feed, java.lang.String id) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> removeActivityByForeignID(Token token, FeedID feed, java.lang.String foreignID) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> follow(Token token, Token targetToken, FeedID sourceFeed, FeedID targetFeed, int activityCopyLimit) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> getFollowers(Token token, FeedID feed, RequestOption... options) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> getFollowed(Token token, FeedID feed, RequestOption... options) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> unfollow(Token token, FeedID source, FeedID target, RequestOption... options) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> updateActivityToTargets(Token token, FeedID feed, Activity activity, FeedID[] add, FeedID[] remove, FeedID[] replace) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> getUser(Token token, java.lang.String id, boolean withFollowCounts) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> deleteUser(Token token, java.lang.String id) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> createUser(Token token, java.lang.String userID, Data userData, boolean getOrCreate) throws StreamException
StreamExceptionpublic java.util.concurrent.CompletableFuture<Response> updateUser(Token token, java.lang.String userID, Data userData) throws StreamException
StreamException