GetActivities returns the activities for the given NotificationFeed, filtering results with the provided GetActivitiesOption parameters.
(ctx context.Context, opts ...GetActivitiesOption)
| 13 | // GetActivities returns the activities for the given NotificationFeed, filtering |
| 14 | // results with the provided GetActivitiesOption parameters. |
| 15 | func (f *NotificationFeed) GetActivities(ctx context.Context, opts ...GetActivitiesOption) (*NotificationFeedResponse, error) { |
| 16 | body, err := f.client.getActivities(ctx, f, opts...) |
| 17 | if err != nil { |
| 18 | return nil, err |
| 19 | } |
| 20 | var resp NotificationFeedResponse |
| 21 | if err := json.Unmarshal(body, &resp); err != nil { |
| 22 | return nil, err |
| 23 | } |
| 24 | return &resp, nil |
| 25 | } |
| 26 | |
| 27 | // GetNextPageActivities returns the activities for the given NotificationFeed at the "next" page |
| 28 | // of a previous *NotificationFeedResponse response, if any. |
no test coverage detected