Giter Club home page Giter Club logo

tw-oob-oauth-cli's Introduction

tw-oob-oauth-cli

A simple CLI client for Twitter's OOB OAuth (PIN-based OAuth).

Installation

No need to install. This is just a small binary file so you can download and use it as needed. The download package only includes the following binary:

Name Type
darwin_amd64 for macOS 10.10 and above (64-bit x86)
windows_amd64 for Windows (64-bit x86)
windows_386 for Windows (32-bit x86)
linux_amd64 for Linux (64-bit x86)
linux_386 for Linux (32-bit x86)

ref. https://golang.org/doc/install/source#environment

Example

Help

$ ./tw-oob-oauth -h
NAME:
   tw-oob-oauth - Twitter PIN-based OAuth CLI client

USAGE:
   tw-oob-oauth [global options] command [command options] [arguments...]

VERSION:
   1.0.0

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --consumer-key value, --key value        App's consumer key
   --consumer-secret value, --secret value  App's consumer secret
   --help, -h                               show help
   --version, -v                            print the version

Command

$ ./tw-oob-oauth --key ${your_consumer_key} --secret ${your_consumer_secret}
1. Go to https://api.twitter.com/oauth/authorize?oauth_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
2. Authorize the application
3. Enter the supplied PIN here (and press Enter):
1234567
Access Token: 12345678-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Token Secret: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

As you can see above, it will output your access token and secret there so you can save this value.

Enjoy!

tw-oob-oauth-cli's People

Contributors

smaeda-ks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

wurli

tw-oob-oauth-cli's Issues

Versioning in the Windows binary

I can clearly see that this line sets the version to 1.0.2

app.Version = "1.0.2"

However, in the Windows AMD64 binary I downloaded, the -h flag reports this as version 1.0.0 - is this a bug upstream in the CLI library, or an issue with the release downloads?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.