Documentation ¶
Index ¶
- type APIKey
- type Auth1
- func (auth *Auth1) RoundTrip(req *http.Request) (*http.Response, error)
- func (auth *Auth1) SetAccessToken(val string) *Auth1
- func (auth *Auth1) SetAccessTokenSecret(val string) *Auth1
- func (auth *Auth1) SetConsumerKey(val string) *Auth1
- func (auth *Auth1) SetConsumerSecret(val string) *Auth1
- func (auth *Auth1) SetURL(u string) *Auth1
- type Auth2
- type Basic
- type T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct {
// contains filtered or unexported fields
}
APIKey is transport for authenticating with an API KEy. API Key authentication should only be used to access your own account. If your application requires access to other accounts, do not use API Key. API key authentication requires each request to be signed (enhanced security measure). Your API keys should be assigned to access only accounts and permission scopes that are necessary for your app to function.
func (*APIKey) RoundTrip ¶
RoundTrip authorizes the request with a signed API Key Authorization header.
func (*APIKey) SetPassphrase ¶
SetPassphrase will set the key field on APIKey.
type Auth1 ¶
type Auth1 struct {
// contains filtered or unexported fields
}
Auth1 is an http.RoundTripper used to authenticate using the OAuth 1.a algorithm defined by twitter: https://developer.twitter.com/en/docs/authentication/oauth-1-0a/creating-a-signature
func (*Auth1) RoundTrip ¶
RoundTrip authorizes the request with a signed OAuth1 Authorization header.
func (*Auth1) SetAccessToken ¶
SetConsumerKey will set the consumerKey field on Auth1.
func (*Auth1) SetAccessTokenSecret ¶
SetAccessTokenSecret will set the accessTokenSecret field on Auth1.
func (*Auth1) SetConsumerKey ¶
SetConsumerKey will set the consumerKey field on Auth1.
func (*Auth1) SetConsumerSecret ¶
SetConsumerSecret will set the consumerSecret field on Auth1.
type Auth2 ¶
type Auth2 struct {
// contains filtered or unexported fields
}
TODO
func (*Auth2) RoundTrip ¶
RoundTrip authorizes the request with a signed OAuth1 Authorization header using the author and TokenSource.
type Basic ¶
type Basic struct {
// contains filtered or unexported fields
}
func (*Basic) RoundTrip ¶
RoundTrip authorizes the request with a signed OAuth1 Authorization header using the author and TokenSource.
func (*Basic) SetPassword ¶
SetPassword will set the password field on Basic.
type T ¶
type T interface { http.RoundTripper }