To access desktopcouch the documentation suggest to use oauth. Using the samples in the O’Reilly book “CouchDB – the definite guide” I want to use CURL (or another command line tool if appropriate) to work with desktopcouch. I guess I would need a script to query the key store to retrieve the oauth token and add it to the CURL string. Ideally I would like to create a couchurl script file that I can use instead of the CURL command for the samples in the book.
How would that script look like?
To access desktopcouch the documentation suggest to use oauth. Using the samples in the
Share
You can use twurl:
http://thechangelog.com/post/536535280/twurl-oauth-enabled-curl-for-the-twitter-api
Twurl – OAuth-enabled curl for the Twitter API
Wynn Netherland
OAuth is cool but developing with OAuth can be a pain. Inspired by curl and Hurl.it (featured on Episode 0.1.5 with Leah Culver), the Twitter team has realeased a couple of tools to make developing with the Twitter OAuth API much easier.
Twurl is a Ruby gem from Marcel Molina that lets you make requests to the Twitter OAuth API from the console. To begin install the gem:
$ sudo gem install twurlThen from the command line (not the Ruby console) you can authorize twurl using your API keys:
$ twurl authorize --consumer-key the_key --consumer-secret the_secretNow you can make requests to API methods:
$ twurl /1/statuses/home_timeline.xmlThe Twitter team also has a nifty GUI version up on the new Twitter Developers Site that even pre-populates your Twitter apps in a drop-down.