Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITokenGenerator ¶
type ITokenGenerator interface { RequestBearerToken() (*RequestBearerTokenResponse, error) SetApiKeyAndSecret(apiKey, apiSecret string) ITokenGenerator }
ITokenGenerator is the interface that TokenGenerator implements.
func NewTokenGenerator ¶
func NewTokenGenerator(httpClient httpclient.IHttpClient) ITokenGenerator
type TokenGenerator ¶
type TokenGenerator struct {
// contains filtered or unexported fields
}
func (*TokenGenerator) RequestBearerToken ¶
func (a *TokenGenerator) RequestBearerToken() (*RequestBearerTokenResponse, error)
RequestBearerToken requests a bearer token from twitter using the apiKey and apiSecret.
func (*TokenGenerator) SetApiKeyAndSecret ¶
func (a *TokenGenerator) SetApiKeyAndSecret(apiKey, apiSecret string) ITokenGenerator
SetApiKeyAndSecret sets the apiKey and apiSecret fields for the TokenGenerator instance.
Click to show internal directories.
Click to hide internal directories.