GetEnrichedActivities returns the enriched activities for the given NotificationFeed, filtering results with the provided GetActivitiesOption parameters.
(ctx context.Context, opts ...GetActivitiesOption)
| 37 | // GetEnrichedActivities returns the enriched activities for the given NotificationFeed, filtering |
| 38 | // results with the provided GetActivitiesOption parameters. |
| 39 | func (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. |
no test coverage detected