cmdtwitter

command module
v0.0.0-...-5b01df7 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2021 License: MIT Imports: 6 Imported by: 0

README

cmdtwitter

command line twitter client for go for Titter API v1.1

library install

go get github.com/ChimeraCoder/anaconda

Build

go build

How to use

# [Tweet]
cmdtwitter \
    -key=(API Key) -sec=(API Secret) \
    -acc_tok=(Access token) -acc_sec=(Access token secret) \
    -cmd=tweet text=(Text)

When you make shell script:

#!/bin/sh

key=xxx
sec=xxx
acc_tok=xxx
acc_sec=xxx

# tweet
go run cmdtwitter.go \
  -key=$key -sec=$sec \
  -acc_tok=$acc_tok -acc_sec=$acc_sec \
  -cmd=tweet -text=Test

# get usertimeline
go run cmdtwitter.go \
  -key=$key -sec=$sec \
  -acc_tok=$acc_tok -acc_sec=$acc_sec \
  -cmd=usertimeline -count=3

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL