shelltwit allows you to update your twitter status via command line. It also has bit.ly integration for url shortening.
It's a good example of twitter API calls with xAuth. As of Jun-05-2017 it uses PIN-based authorization
Little more (?) info about it at the original blog post
- Status Update
- Status Mentions
- Status Home Timeline
- Status User Timeline
- Search
- Favorites List
- Streaming statuses
After downloading the source files build the sln with Visual Studio 2017 (framework 4.6)
There's also a .net core 1.1 solution called shelltwitcore.sln (figures). You can also open that up with Visual Studio 2017 or go straight to the shelltwitcore folder and work with Visual Studio Code from there. Since .net core 1.1 there's a csproj file so you just build that project and that's it. This build has been tested on Ubuntu WSL, and it works on my machine .
For my next trick I'll create a docker image so it will definetely works on yours too.
@SebaGomez (R) shelltwit version 6.0.0.0 for Microsoft Windows 10.0.15063
Copyright (C) @sebagomez. All rights reserved.
Usage: twit /q <query>|/c|/tl|/m|/l|/s <track>|/u <user>|/?|<status> [<mediaPath>]
/c : clears user stored credentials
/tl : show user's timeline (default)
/q : query twits containing words
/m : show user's mentions
/u user : show another user's timeline
/s track : live status with a specific track
/l : user's likes (fka favorites)
/? : show this help
status : status to update at twitter.com
mediaPath : full path, between brackets, to the media files (up to four) to upload.