twitter-auth

command module
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: 3 Imported by: 0

README

twitter-auth

Generate access token from CLI

Installation

$ go get github.com/k0kubun/twitter-auth

Usage

Commandline
# choose your favorite consumer key
$ twitter-auth -k CONSUMER_KEY -s CONSUMER_SECRET

# show help
$ twitter-auth -h
Library
import "github.com/k0kubun/twitter-auth/auth"

func main() {
  credential := &auth.Credential{
    ConsumerKey:    "CONSUMER_KEY",
    ConsumerSecret: "CONSUMER_SECRET",
  }
  accessToken := auth.Authenticate(credential)

  println("AccessToken:", accessToken.Token)
  println("AccessTokenSecret:", accessToken.Secret)
}

License

MIT Lisence

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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