ListAll lists all GitHub users. To paginate through all users, populate 'Since' with the ID of the last user. GitHub API docs: https://docs.github.com/rest/users/users?apiVersion=2022-11-28#list-users meta:operation GET /users
(ctx context.Context, opts *UserListOptions)
| 224 | // |
| 225 | //meta:operation GET /users |
| 226 | func (s *UsersService) ListAll(ctx context.Context, opts *UserListOptions) ([]*User, *Response, error) { |
| 227 | u, err := addOptions("users", opts) |
| 228 | if err != nil { |
| 229 | return nil, nil, err |
| 230 | } |
| 231 | |
| 232 | req, err := s.client.NewRequest(ctx, "GET", u, nil) |
| 233 | if err != nil { |
| 234 | return nil, nil, err |
| 235 | } |
| 236 | |
| 237 | var users []*User |
| 238 | resp, err := s.client.Do(req, &users) |
| 239 | if err != nil { |
| 240 | return nil, resp, err |
| 241 | } |
| 242 | |
| 243 | return users, resp, nil |
| 244 | } |
| 245 | |
| 246 | // ListInvitations lists all currently-open repository invitations for the |
| 247 | // authenticated user. |