Documentation
¶
Index ¶
Constants ¶
const ( UsersGetName = "github.users.get" UsersListName = "github.users.list" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) UsersGetActivity ¶
https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-a-user-using-their-id https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-a-user
func (*API) UsersListActivity ¶
func (a *API) UsersListActivity(ctx context.Context, req UsersListRequest) ([]map[string]any, error)
https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#list-users
type UsersGetRequest ¶
type UsersGetRequest struct {
AccountID string `json:"account_id,omitempty"`
Username string `json:"username,omitempty"`
}
https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-the-authenticated-user https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-a-user-using-their-id https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#get-a-user
type UsersListRequest ¶
type UsersListRequest struct {
Since int `json:"since,omitempty"`
PerPage int `json:"per_page,omitempty"`
}
https://docs.github.com/en/rest/users/users?apiVersion=2022-11-28#list-users