toyotter2

command module
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2019 License: MIT Imports: 8 Imported by: 0

README

toyotter2

Build Status Go Report Card

CUI based Twitter client made with Golang

Imgur

Install

$ go get github.com/KeisukeToyota/toyotter2
$ cp $GOPATH/src/github.com/KeisukeToyota/toyotter2/.env.example ~/.env.toyotter

In macOS you can install it with Homebrew

$ brew tap keisuketoyota/homebrew-toyotter2
$ brew install toyotter2

Please set up Twitter key to ~/.env.toyotter

CONSUMER_KEY=xxxxxxxxxxxxxxxxxxxxxxx
CONSUMER_SECRET=xxxxxxxxxxxxxxxxxxxxxxx
ACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxxxxx
ACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxxxxx

Usage

Tweet
$ toyotter2 tweet "Hello world" #=> Tweet "Hello world"
$ toyotter2 tw "Bye" #=> Tweet "Bye"
$ toyotter2 tweet "Hello world" --image image.jpg #=> Tweet image
$ toyotter2 tw "Hello" -img=image.jpg #=> Tweet image
$ toyotter2 tweet delete 34820348023 #=> Delete the 34820348023 tweet
$ toyotter2 tw d 34820348023 #=> Delete the 34820348023 tweet
$ toyotter2 tweet "Hi" --reply 34820348023 #=> Reply to tweet of 34820348023
$ toyotter2 tw "Bye" --reply 34820348023 #=> Reply to tweet of 34820348023
Timeline
$ toyotter2 timeline #=> Get timeline(Get 5 by default)
$ toyotter2 timeline --count 30 #=> Get 30 timelines
$ toyotter2 tl -c=20 #=> Get 20 timelines
$ toyotter2 search --user twitter #=> Get users including "twitter"(Get 5 by default)
$ toyotter2 s --tweet twitter #=> Get users including "twitter"(Get 5 by default)
$ toyotter2 s -u twitter --count 20 #=> Get 20 users including twitter
$ toyotter2 search -tw=twitter -c=30 #=> Get 30 users including twitter
Retweet
$ toyotter2 retweet 34820348023 #=> Retweet tweet of ID 34820348023
$ toyotter2 rt 34820348023 #=> Retweet tweet of ID 34820348023
$ toyotter2 retweet 34820348023 --delete #=> UnRetweet tweet of ID 34820348023
$ toyotter2 rt 34820348023 -d #=> UnRetweet tweet of ID 34820348023
Favorite
$ toyotter2 favorite 34820348023 #=> Favorite tweet of ID 34820348023
$ toyotter2 fav 34820348023 #=> Favorite tweet of ID 34820348023
$ toyotter2 favorite 34820348023 --delete #=> UnFavorite tweet of ID 34820348023
$ toyotter2 fav 34820348023 -d #=> UnFavorite tweet of ID 34820348023
Follow
$ toyotter2 follow TwitterJP #=> Follow @TwitterJP
$ toyotter2 flw TwitterJP #=> Follow @TwitterJP
$ toyotter2 follow TwitterJP --delete #=> UnFollow @TwitterJP
$ toyotter2 flw TwitterJP -d #=> UnFollow @TwitterJP
Block
$ toyotter2 block TwitterJP #=> Block @TwitterJP
$ toyotter2 blk TwitterJP #=> Block @TwitterJP
$ toyotter2 block TwitterJP --delete #=> UnBlock @TwitterJP
$ toyotter2 blk TwitterJP -d #=> UnBlock @TwitterJP
$ toyotter2 block --list #=> Get block user list
Mention list
$ toyotter2 mention #=> Get mentions(Get 5 by default)
$ toyotter2 men #=> Get mentions(Get 5 by default)
$ toyotter2 mention --count 20 #=> Get 20 mentions
$ toyotter2 men -c 20 #=> Get 20 mentions
Mute
$ toyotter2 mute TwitterJP #=> Mute @TwitterJP
$ toyotter2 mu TwitterJP #=> Mute @TwitterJP
$ toyotter2 mute TwitterJP --delete #=> UnMute @TwitterJP
$ toyotter2 mu TwitterJP -d #=> UnMute @TwitterJP
Help
$ toyotter2 --help #=> Overall help
$ toyotter2 -h #=> Overall help
$ toyotter2 timeline --help #=> Timeline command help
$ toyotter2 rt -h #=> Retweet command help

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