MCPcopy Create free account
hub / github.com/GetStream/stream-js / exportUserActivitiesAndReactionIDs

Function exportUserActivitiesAndReactionIDs

src/data_privacy.ts:40–49  ·  view source on GitHub ↗
(this: StreamClient, userId: string)

Source from the content-addressed store, hash-verified

38}
39
40export function exportUserActivitiesAndReactionIDs(this: StreamClient, userId: string): Promise<ExportIDsResponse> {
41 if (!userId) {
42 throw new Error("User ID can't be null or empty");
43 }
44
45 return this.get<ExportIDsResponse>({
46 url: `data_privacy/export_ids/${userId}`,
47 token: this.getOrCreateToken(),
48 });
49}
50
51export default {
52 deleteActivities,

Callers

nothing calls this directly

Calls 2

getOrCreateTokenMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected