1
0
hugo/content/app/twg.md
2024-04-23 22:21:26 +09:00

1.0 KiB

+++ date = "2019-12-01" title = "twg" description = "| goで書かれたtwitter client" +++

twgは、goで書かれたシンプルなtwitter clientです。

Download

# https://github.com/syui/twg
$ go get -u -v gitlab.com/syui/twg
or
$ yay -S twg

使い方

releasesからダウンロードするか、AURからインストールして使います。

releases版でないとclient_idなどが入っていないため、自身で用意する必要があります。

最初に、twgを起動して、URLをブラウザで開き、アプリを承認します。表示されたcodeを貼り付けます。-> oauth

# If authentication does not exist, open the browser.
$ twg
authorization code : xxxx

oauth認証が終わると、以下のコマンドが使用できます。

# timeline
$ twg

# help
$ twg h

# post
$ twg p "send tweet"

# user timeline
$ twg u syui__
$ twg u

# stream
$ twg s

# oauth
$ twg o

# search
$ twg / "#twitter" 2