Documentation
¶
Overview ¶
Package github provides a client for interacting with the GitHub API, including fetching authenticated user information and contribution data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient interface {
Get(path string, response interface{}) error
Post(path string, body io.Reader, response interface{}) error
}
APIClient interface defines the methods we need from the client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds the API client
func (*Client) FetchContributions ¶
func (c *Client) FetchContributions(username string, year int) (*types.ContributionsResponse, error)
FetchContributions retrieves the contribution data for a given username and year from GitHub.
func (*Client) GetAuthenticatedUser ¶
GetAuthenticatedUser fetches the authenticated user's login name from GitHub.
Click to show internal directories.
Click to hide internal directories.