MCPcopy Create free account
hub / github.com/GetStream/stream-go2 / GetEnrichedActivities

Method GetEnrichedActivities

notification_feed.go:39–49  ·  view source on GitHub ↗

GetEnrichedActivities returns the enriched activities for the given NotificationFeed, filtering results with the provided GetActivitiesOption parameters.

(ctx context.Context, opts ...GetActivitiesOption)

Source from the content-addressed store, hash-verified

37// GetEnrichedActivities returns the enriched activities for the given NotificationFeed, filtering
38// results with the provided GetActivitiesOption parameters.
39func (f *NotificationFeed) GetEnrichedActivities(ctx context.Context, opts ...GetActivitiesOption) (*EnrichedNotificationFeedResponse, error) {
40 body, err := f.client.getEnrichedActivities(ctx, f, opts...)
41 if err != nil {
42 return nil, err
43 }
44 var resp EnrichedNotificationFeedResponse
45 if err := json.Unmarshal(body, &resp); err != nil {
46 return nil, err
47 }
48 return &resp, nil
49}
50
51// GetNextPageEnrichedActivities returns the enriched activities for the given NotificationFeed at the "next" page
52// of a previous *EnrichedNotificationFeedResponse response, if any.

Callers 1

Calls 1

getEnrichedActivitiesMethod · 0.80

Tested by

no test coverage detected