Documentation ¶
Index ¶
- Variables
- func Encode(s string) string
- type AccessToken
- type OAuthConsumer
- func (oc *OAuthConsumer) Get(url string, fparams Params, at *AccessToken) (r *http.Response, err error)
- func (oc *OAuthConsumer) GetAccessToken(token string, verifier string) (*AccessToken, error)
- func (oc *OAuthConsumer) GetRequestAuthorizationURL() (string, *RequestToken, error)
- func (oc *OAuthConsumer) Post(url string, fparams Params, at *AccessToken) (r *http.Response, err error)
- type Pair
- type Params
- type RequestToken
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NoRedirectAllowedError = errors.New("Redirects not allowed with OAuth")
)
Functions ¶
Types ¶
type AccessToken ¶
type OAuthConsumer ¶
type OAuthConsumer struct { Service string RequestTokenURL string AccessTokenURL string AuthorizationURL string ConsumerKey string ConsumerSecret string CallBackURL string AdditionalParams Params // contains filtered or unexported fields }
func (*OAuthConsumer) Get ¶
func (oc *OAuthConsumer) Get(url string, fparams Params, at *AccessToken) (r *http.Response, err error)
OAuthRequestGet return the response via a GET for the url with the AccessToken passed
func (*OAuthConsumer) GetAccessToken ¶
func (oc *OAuthConsumer) GetAccessToken(token string, verifier string) (*AccessToken, error)
GetAccessToken gets the access token for the response from the Authorization URL
func (*OAuthConsumer) GetRequestAuthorizationURL ¶
func (oc *OAuthConsumer) GetRequestAuthorizationURL() (string, *RequestToken, error)
GetRequestAuthorizationURL Returns the URL for the visitor to Authorize the Access
func (*OAuthConsumer) Post ¶
func (oc *OAuthConsumer) Post(url string, fparams Params, at *AccessToken) (r *http.Response, err error)
OAuthRequest returns the response via a POST for the url with the AccessToken passed & the Form params passsed in fparams
type Pair ¶
func (*Pair) EncodeQuoted ¶
type RequestToken ¶
Click to show internal directories.
Click to hide internal directories.