Code Monkey home page Code Monkey logo

twitter-cmd's Introduction

日本語

twitter-cmd

Simple CLI Twitter client.

Post something to Twitter from command line :-) May be useful in shell script use ?

Build

  1. Launch build environment

    docker-compose run build-env

  2. Set OAuth CONSUMER_KEY and CONSUMER_SECRET

    1. Get your key/secret from Twitter Developpers > Apps page.
    2. Set it to consumer_token.go
  3. Build

    make deps

    make or make build-windows

Or you can download pre compiled executable from releases.

Usage (Get OAuth token)

  1. Start OAuth Authentication

    ./twitter 1

    This will show Authenticate URL like this

Open this URL and login with your Twitter account.
https://api.twitter.com/oauth/authenticate?oauth_token=xxxxxxxxxx
  1. Open Authenticate URL by browser.

  2. Enter PIN

Enter PIN: *******
Token saved to .ichikawayukko-twitter_cmd
Erase this file to re-authenticate.

Usage (Tweet)

  1. Tweet !!

    Linux: ./twitter Hello World!

    Windows: twitter.exe Hello World!

  2. Tweet with image

    ./twitter -m filename1 Hello World?

    ./twitter -m filename1 -m filename?2 Hello World?

    (4 files can be specified at one time)

twitter-cmd's People

Contributors

ichikawayukko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.