Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Oauth1 ¶
type Oauth1 struct { Type string ConsumerKey string ConsumerSecret string ReqTokenUrl string AuthTokenUrl string AccsTokenUrl string CallbackUrl string // contains filtered or unexported fields }
type Oauth1Client ¶
type Oauth1Client struct { Account *account.Account Token string Secret string // contains filtered or unexported fields }
type Oauth2 ¶
type Oauth2 struct { Type string ClientId string ClientSecret string CallbackUrl string AuthUrl string TokenUrl string Scopes []string // contains filtered or unexported fields }
type Oauth2Client ¶
type Oauth2Client struct { oauth2.Token Account *account.Account // contains filtered or unexported fields }
func (*Oauth2Client) Check ¶
func (c *Oauth2Client) Check() (refreshed bool, err error)
func (*Oauth2Client) GetJson ¶
func (c *Oauth2Client) GetJson(url string, resp interface{}) (err error)
func (*Oauth2Client) Refresh ¶
func (c *Oauth2Client) Refresh() (err error)
Click to show internal directories.
Click to hide internal directories.