Versions in this module Expand all Collapse all v0 v0.9.0 Jun 15, 2015 Changes in this version + const HeaderTwoFactor + var DefaultURL = "https://api.github.com" + type Authorization struct + Token string + type Authorizer struct + ClientID string + ClientSecret string + Organization string + Scopes []string + func (a *Authorizer) Authorize(username, password, twofactor string) (*empire.User, error) + type Client struct + URL string + func (c *Client) CreateAuthorization(opts CreateAuthorizationOpts) (*Authorization, error) + func (c *Client) Do(req *http.Request, v interface{}) (*http.Response, error) + func (c *Client) GetUser(token string) (*User, error) + func (c *Client) IsMember(organization, token string) (bool, error) + func (c *Client) NewRequest(method, path string, v interface{}) (*http.Request, error) + type CreateAuthorizationOpts struct + ClientID string + ClientSecret string + Password string + Scopes []string + TwoFactor string + Username string + type User struct + Login string