First you need an API key.
- Sign up for a Twitter account; I am guessing you already have one. twitter.com
- Link the account to a mobile phone.
- Sign up at dev.twitter.com
- Go to the app page and create an app.
Second write some code to test your new key.
I chose to use the Python module tweepy, because I found a sample project in the most excellent book "30 BeagleBone Black Projects for the Evil Genius." (Christopher Rush)
git clone firstname.lastname@example.org:brian32768/hackpackv3_plus_gps.git cd hackpackv3_plus_gps virtualenv venv source venv/bin/activate pip install tweepy emacs tweet.py
...and so on. You can fork the project if you want.