public
Description: Twitter4R: The most Ruby-like bindings for the Twitter.com REST API by a long way.
Home | Edit | New

HowTo: Use the Twitter4R Shell

Change still pending…needs some work. These WILL be the instructions to make the shell work, but NOT in the current GitHub version. I will revisit and fix shell shortcomings tomorrow (12/29).

1. Grab the latest mbbx6spp-twitter4r gem from GitHub: sudo gem install mbbx6spp-twitter4r

2. Create a config directory called twitter.yml inside the config directory under your working directory that looks something like:


development:
login: mydevlogin
password: mydevpass
test:
login: mytestlogin
password: mytestpass

3. At the command prompt type: T4R_ENV=test t4rsh

4. Now you will be in the shell and can use @twitter variable like your normal client instance. i.e.


@twitter.status(:post, ‘I am posting from the new Twitter4R shell’)

Last edited by mbbx6spp, Wed Jan 28 15:22:57 -0800 2009
Home | Edit | New
Versions: