Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mpyw/twhelp

Twitter OAuth CLI Helper distributed by Golang cross-compilation.
https://github.com/mpyw/twhelp

cli golang-cross-compilation oauth twitter twitter-api

Last synced: 25 days ago
JSON representation

Twitter OAuth CLI Helper distributed by Golang cross-compilation.

Awesome Lists containing this project

README

        

# twhelp

Twitter OAuth CLI Helper distributed by Golang cross-compilation.

## Requirements

**Nothing**.
Feel free to download from [releases](https://github.com/mpyw/twhelp/releases).

...Oops, x64(amd64) CPU architecture required at least.

## Usage

```ShellSession
mpyw@localhost:~$ ./twhelp -h
Options:
-h, --help Show help.

[ Output Format ]

Default Output line by line.
-i, --ini Output as INI.
-y, --yaml Output as YAML.
-j, --json Output as JSON.
-a, --array Output as array compatible with most languages.
-A, --assoc Output as PHP-style associative array.
-e, --env Output as environmental uppercase variables.

[ OAuth Process ]

Default xAuth manipulation with OAuth scraping.
-x, --xauth Pure xAuth. Only available with official keys.
-o, --oauth Pure OAuth. You have to authorize via web browser.

[ OAuth Credentials ]

Insufficient components will be required to input via STDIN.
Password is masked.

--ck Specify consumer_key in advance.
--cs Specify consumer_secret in advance.
--sn Specify screen_name or email in advance.
--pw Specify password in advance. (Not masked, DEPRECATED)
--app Speficy consumer_key and consumer_secret with app name.

app name | full name
------------------------------------
android | Twitter for Andriod
win | Twitter for Windows
wp | Twitter for Windows Phone
google | Twitter for Google TV
iphone | Twitter for iPhone
ipad | Twitter for iPad
mac | Twitter for Mac
deck | TweetDeck

Your own applications can also be defined in /Users/mpyw/.twhelp.ini
Example:

[my_app_01]
consumer_key = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
consumer_secret = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

mpyw@localhost:~$
```