Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuth1Credentials ¶
type OAuth1Credentials struct { // ConsumerKey is an OAuth1 consumer (application) key. ConsumerKey string `json:"consumer_key"` // ConsumerSecret is an OAuth1 consumer (application) secret. ConsumerSecret string `json:"consumer_secret"` // AccessToken is an OAuth1 access token. AccessToken string `json:"access_token"` // AccessSecret is an OAuth1 access secret. AccessSecret string `json:"access_token_secret"` }
type OAuth1Credentials is a struct containing OAuth1 keys and secrets.
func NewOAuth1CredentialsFromString ¶
func NewOAuth1CredentialsFromString(ctx context.Context, str_creds string) (*OAuth1Credentials, error)
NewOAuth1CredentialsFromString derives a `OAuth1Credentials` struct from a JSON-encoded string.
Click to show internal directories.
Click to hide internal directories.