MCPcopy Index your code
hub / github.com/google/go-github / ListFeeds

Method ListFeeds

github/activity.go:64–77  ·  view source on GitHub ↗

ListFeeds lists all the feeds available to the authenticated user. GitHub provides several timeline resources in Atom format: Timeline: The GitHub global public timeline User: The public timeline for any user, using URI template Current user public: The public timeline for the authenticated use

(ctx context.Context)

Source from the content-addressed store, hash-verified

62//
63//meta:operation GET /feeds
64func (s *ActivityService) ListFeeds(ctx context.Context) (*Feeds, *Response, error) {
65 req, err := s.client.NewRequest(ctx, "GET", "feeds", nil)
66 if err != nil {
67 return nil, nil, err
68 }
69
70 var f *Feeds
71 resp, err := s.client.Do(req, &f)
72 if err != nil {
73 return nil, resp, err
74 }
75
76 return f, resp, nil
77}

Callers 1

TestActivityService_ListFunction · 0.80

Calls 2

NewRequestMethod · 0.80
DoMethod · 0.45

Tested by 1

TestActivityService_ListFunction · 0.64