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)
| 62 | // |
| 63 | //meta:operation GET /feeds |
| 64 | func (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 | } |