Documentation ¶
Overview ¶
Package query implements functions for working with Github API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrgs ¶
GetOrgs returns body of request to "https://api.github.com/organizations" for provided Github API access token. Access token should be presented as string. Body is presented as byte array. If http.Get or bodyutil.ReadResponseBody occurs any error, this will be returned.
func GetScopes ¶
GetScopes returns scopes provided Github API access token. Acces token should be presented as string. Scopes is presented as string array. If http.Get or headerutil.ReadResponseHeader occurs any error, this will be returned.
func GetUser ¶
GetUser returns body of request to "https://api.github.com/user" for provided Github API access token. Access token should be presented as string. Body is presented as byte array. If http.Get or bodyutil.ReadResponseBody occurs any error, this will be returned.
Types ¶
This section is empty.