Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smaeda-ks/tw-oob-oauth-cli
A simple CLI client for Twitter's OOB OAuth (PIN-based OAuth)
https://github.com/smaeda-ks/tw-oob-oauth-cli
oauth-client oauth1 twitter twitter-api twitter-oauth
Last synced: 17 days ago
JSON representation
A simple CLI client for Twitter's OOB OAuth (PIN-based OAuth)
- Host: GitHub
- URL: https://github.com/smaeda-ks/tw-oob-oauth-cli
- Owner: smaeda-ks
- License: apache-2.0
- Created: 2019-05-03T18:45:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-03T19:51:39.000Z (over 5 years ago)
- Last Synced: 2024-12-10T14:02:08.313Z (29 days ago)
- Topics: oauth-client, oauth1, twitter, twitter-api, twitter-oauth
- Language: Go
- Size: 9.77 KB
- Stars: 13
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tw-oob-oauth-cli
A simple CLI client for Twitter's OOB OAuth ([PIN-based OAuth](https://developer.twitter.com/en/docs/basics/authentication/overview/pin-based-oauth)).# Installation
No need to install. This is just a small binary file so you can [download](https://github.com/smaeda-ks/twitter-oobOAuth-cli/releases) 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
```text
$ ./tw-oob-oauth -h
NAME:
tw-oob-oauth - Twitter PIN-based OAuth CLI clientUSAGE:
tw-oob-oauth [global options] command [command options] [arguments...]VERSION:
1.0.0COMMANDS:
help, h Shows a list of commands or help for one commandGLOBAL 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
```text
$ ./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!