oauth

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL