FooAuth is a project mainly written in RUBY and SHELL, it's free.
Basic to oAuth conversion layer
We don't care about oAuth.
fooAuth is a Rails app (running on Sinatra) that will convert your basic auth requests (using username + password) to oAuth request (with all the tokens, keys and secrets...).
fooAuth is still in development phase (actually even still in design phase). Currently I am able to post a tweet on Twitter using fooAuth.
Pass the following parameters to you fooAuth requests:
Any other parameter will be passed to the 'foo_page' request.
Assume the following environment variables:
USER
: Twitter @usernamePASS
: Twitter passwordCONSUMER_KEY
: Twitter API consumer keyCONSUMER_SECRET
: Twitter API consumer secretHOST
: the host where you are running fooAuth (e.g. http://127.0.0.1:4567
)SITE
: the API site, which is http://api.twitter.com
for TwitterGet latest tweet from your home timeline: curl -u ${USER}:${PASS} -G --data-urlencode foo_consumer_key="${CONSUMER_KEY}" --data-urlencode foo_consumer_secret="${CONSUMER_SECRET}" --data-urlencode count="1" ${HOST}/${SITE}/statuses/home_timeline.json
Post a new tweet: curl -u ${USER}:${PASS} --data-urlencode foo_consumer_key="${CONSUMER_KEY}" --data-urlencode foo_consumer_secret="${CONSUMER_SECRET}" --data-urlencode status="Posting a tweet using fooAuth" ${HOST}/${SITE}/statuses/update.json