Package io.getstream.core
Class Stream
java.lang.Object
io.getstream.core.Stream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjava8.util.concurrent.CompletableFuture<Response>addActivities(Token token, FeedID feed, Activity... activityObjects) java8.util.concurrent.CompletableFuture<Response>addActivities(Token token, FeedID feed, Activity[] activityObjects, RequestOption... options) java8.util.concurrent.CompletableFuture<Response>addActivity(Token token, FeedID feed, Activity activity, RequestOption... options) batch()java8.util.concurrent.CompletableFuture<Response>createUser(Token token, String userID, Data userData, boolean getOrCreate) java8.util.concurrent.CompletableFuture<Object>deleteActivities(Token token, BatchDeleteActivitiesRequest request) java8.util.concurrent.CompletableFuture<Object>deleteReactions(Token token, BatchDeleteReactionsRequest request) java8.util.concurrent.CompletableFuture<Response>deleteUser(Token token, String id) java8.util.concurrent.CompletableFuture<ExportIDsResponse>exportUserActivities(Token token, String userId) files()java8.util.concurrent.CompletableFuture<Response>java8.util.concurrent.CompletableFuture<Response>getActivities(Token token, FeedID feed, RequestOption... options) java8.util.concurrent.CompletableFuture<Response>getEnrichedActivities(Token token, FeedID feed, RequestOption... options) java8.util.concurrent.CompletableFuture<Response>getFollowed(Token token, FeedID feed, RequestOption... options) java8.util.concurrent.CompletableFuture<Response>getFollowers(Token token, FeedID feed, RequestOption... options) java8.util.concurrent.CompletableFuture<Response>getFollowStats(Token token, FeedID feed, String[] followerSlugs, String[] followingSlugs, RequestOption... options) <T> Tjava8.util.concurrent.CompletableFuture<Response>images()java8.util.concurrent.CompletableFuture<OGData>java8.util.concurrent.CompletableFuture<QueryAuditLogsResponse>queryAuditLogs(Token token, RequestOption... options) java8.util.concurrent.CompletableFuture<Response>removeActivityByForeignID(Token token, FeedID feed, String foreignID) java8.util.concurrent.CompletableFuture<Response>removeActivityByID(Token token, FeedID feed, String id) java8.util.concurrent.CompletableFuture<Response>unfollow(Token token, FeedID source, FeedID target, RequestOption... options) updateActivitiesByForeignID(Token token, ActivityUpdate[] updates, RequestOption... options) updateActivitiesByID(Token token, ActivityUpdate[] updates, RequestOption... options) java8.util.concurrent.CompletableFuture<Activity>updateActivityByForeignID(Token token, String foreignID, Date timestamp, Map<String, Object> set, String[] unset, RequestOption... options) java8.util.concurrent.CompletableFuture<Activity>updateActivityByID(Token token, String id, Map<String, Object> set, String[] unset, RequestOption... options) java8.util.concurrent.CompletableFuture<Response>updateActivityToTargets(Token token, FeedID feed, Activity activity, FeedID[] add, FeedID[] remove, FeedID[] replace) java8.util.concurrent.CompletableFuture<Response>updateUser(Token token, String userID, Data userData)
-
Constructor Details
-
Stream
-
-
Method Details
-
batch
-
collections
-
personalization
-
analytics
-
reactions
-
moderation
-
files
-
images
-
updateActivitiesByID
public java8.util.concurrent.CompletableFuture<List<Activity>> updateActivitiesByID(Token token, ActivityUpdate[] updates, RequestOption... options) throws StreamException - Throws:
StreamException
-
updateActivityByID
public java8.util.concurrent.CompletableFuture<Activity> updateActivityByID(Token token, String id, Map<String, Object> set, String[] unset, RequestOption... options) throws StreamException- Throws:
StreamException
-
updateActivitiesByForeignID
public java8.util.concurrent.CompletableFuture<List<Activity>> updateActivitiesByForeignID(Token token, ActivityUpdate[] updates, RequestOption... options) throws StreamException - Throws:
StreamException
-
updateActivityByForeignID
public java8.util.concurrent.CompletableFuture<Activity> updateActivityByForeignID(Token token, String foreignID, Date timestamp, Map<String, Object> set, String[] unset, RequestOption... options) throws StreamException- Throws:
StreamException
-
openGraph
public java8.util.concurrent.CompletableFuture<OGData> openGraph(Token token, URL targetURL) throws StreamException - Throws:
StreamException
-
getHTTPClientImplementation
public <T> T getHTTPClientImplementation() -
getActivities
public java8.util.concurrent.CompletableFuture<Response> getActivities(Token token, FeedID feed, RequestOption... options) throws StreamException - Throws:
StreamException
-
getEnrichedActivities
public java8.util.concurrent.CompletableFuture<Response> getEnrichedActivities(Token token, FeedID feed, RequestOption... options) throws StreamException - Throws:
StreamException
-
addActivity
public java8.util.concurrent.CompletableFuture<Response> addActivity(Token token, FeedID feed, Activity activity, RequestOption... options) throws StreamException - Throws:
StreamException
-
addActivities
public java8.util.concurrent.CompletableFuture<Response> addActivities(Token token, FeedID feed, Activity... activityObjects) throws StreamException - Throws:
StreamException
-
addActivities
public java8.util.concurrent.CompletableFuture<Response> addActivities(Token token, FeedID feed, Activity[] activityObjects, RequestOption... options) throws StreamException - Throws:
StreamException
-
removeActivityByID
public java8.util.concurrent.CompletableFuture<Response> removeActivityByID(Token token, FeedID feed, String id) throws StreamException - Throws:
StreamException
-
removeActivityByForeignID
public java8.util.concurrent.CompletableFuture<Response> removeActivityByForeignID(Token token, FeedID feed, String foreignID) throws StreamException - Throws:
StreamException
-
follow
public java8.util.concurrent.CompletableFuture<Response> follow(Token token, Token targetToken, FeedID sourceFeed, FeedID targetFeed, int activityCopyLimit) throws StreamException - Throws:
StreamException
-
getFollowers
public java8.util.concurrent.CompletableFuture<Response> getFollowers(Token token, FeedID feed, RequestOption... options) throws StreamException - Throws:
StreamException
-
getFollowed
public java8.util.concurrent.CompletableFuture<Response> getFollowed(Token token, FeedID feed, RequestOption... options) throws StreamException - Throws:
StreamException
-
unfollow
public java8.util.concurrent.CompletableFuture<Response> unfollow(Token token, FeedID source, FeedID target, RequestOption... options) throws StreamException - Throws:
StreamException
-
getFollowStats
public java8.util.concurrent.CompletableFuture<Response> getFollowStats(Token token, FeedID feed, String[] followerSlugs, String[] followingSlugs, RequestOption... options) throws StreamException - Throws:
StreamException
-
updateActivityToTargets
public java8.util.concurrent.CompletableFuture<Response> updateActivityToTargets(Token token, FeedID feed, Activity activity, FeedID[] add, FeedID[] remove, FeedID[] replace) throws StreamException - Throws:
StreamException
-
getUser
public java8.util.concurrent.CompletableFuture<Response> getUser(Token token, String id, boolean withFollowCounts) throws StreamException - Throws:
StreamException
-
deleteUser
public java8.util.concurrent.CompletableFuture<Response> deleteUser(Token token, String id) throws StreamException - Throws:
StreamException
-
createUser
public java8.util.concurrent.CompletableFuture<Response> createUser(Token token, String userID, Data userData, boolean getOrCreate) throws StreamException - Throws:
StreamException
-
updateUser
public java8.util.concurrent.CompletableFuture<Response> updateUser(Token token, String userID, Data userData) throws StreamException - Throws:
StreamException
-
deleteActivities
public java8.util.concurrent.CompletableFuture<Object> deleteActivities(Token token, BatchDeleteActivitiesRequest request) throws StreamException - Throws:
StreamException
-
deleteReactions
public java8.util.concurrent.CompletableFuture<Object> deleteReactions(Token token, BatchDeleteReactionsRequest request) throws StreamException - Throws:
StreamException
-
exportUserActivities
public java8.util.concurrent.CompletableFuture<ExportIDsResponse> exportUserActivities(Token token, String userId) throws StreamException - Throws:
StreamException
-
queryAuditLogs
public java8.util.concurrent.CompletableFuture<QueryAuditLogsResponse> queryAuditLogs(Token token, RequestOption... options) throws StreamException - Throws:
StreamException
-