auth

package
v0.0.0-...-aa12d93 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PublicCredentials = map[string]Credential{
		"Twitter for iPhone": Credential{
			ConsumerKey:    "IQKbtAYlXLripLGPWd0HUA",
			ConsumerSecret: "GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU",
		},
		"Twitter for Android": Credential{
			ConsumerKey:    "3nVuSoBZnx6U4vzUxf5w",
			ConsumerSecret: "Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys",
		},
		"Twitter for Google TV": Credential{
			ConsumerKey:    "iAtYJ4HpUVfIUoNnif1DA",
			ConsumerSecret: "172fOpzuZoYzNYaU3mMYvE8m8MEyLbztOdbrUolU",
		},
		"Twitter for iPad": Credential{
			ConsumerKey:    "CjulERsDeqhhjSme66ECg",
			ConsumerSecret: "IQWdVyqFxghAtURHGeGiWAsmCAGmdW3WmbEx6Hck",
		},
	}
)

Functions

func Authenticate

func Authenticate(credential *Credential) *oauth.AccessToken

func NewTwitterConsumer

func NewTwitterConsumer(consumerKey, consumerSecret string) *oauth.Consumer

func ReadPin

func ReadPin() string

Types

type Credential

type Credential struct {
	ConsumerKey    string
	ConsumerSecret string
}

func CredentialByClientName

func CredentialByClientName(clientName string) *Credential

func DefaultCredential

func DefaultCredential() *Credential

Jump to

Keyboard shortcuts

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