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

Method getActivitiesInternal

client.go:606–611  ·  view source on GitHub ↗
(ctx context.Context, endpoint endpoint, feed Feed, opts ...GetActivitiesOption)

Source from the content-addressed store, hash-verified

604}
605
606func (c *Client) getActivitiesInternal(ctx context.Context, endpoint endpoint, feed Feed, opts ...GetActivitiesOption) ([]byte, error) {
607 for _, opt := range opts {
608 endpoint.addQueryParam(opt)
609 }
610 return c.get(ctx, endpoint, nil, c.authenticator.feedAuth(resFeed, feed))
611}
612
613func (c *Client) follow(ctx context.Context, feed Feed, opts *followFeedOptions) (*BaseResponse, error) {
614 endpoint := c.makeEndpoint("feed/%s/%s/follows/", feed.Slug(), feed.UserID())

Callers 2

getActivitiesMethod · 0.95
getEnrichedActivitiesMethod · 0.95

Calls 3

getMethod · 0.95
addQueryParamMethod · 0.80
feedAuthMethod · 0.80

Tested by

no test coverage detected