Database Reference
In-Depth Information
correct headers. First, you set everything up for a particular API with curlicue-
setup , and then you can call that API using curlicue . For example, to use curlicue
with the Twitter API, you would run:
$ curlicue-setup \
> 'https://api.twitter.com/oauth/request_token' \
> 'https://api.twitter.com/oauth/authorize?oauth_token=$oauth_token' \
> 'https://api.twitter.com/oauth/access_token' \
> credentials
$ curlicue -f credentials \
> 'https://api.twitter.com/1/statuses/home_timeline.xml'
For more popular APIs, there are specialized command-line tools available. These are
wrappers that provide a convenient way to connect to the API. In Chapter 9 , for
example, we'll be using the command-line tool bigmler that connects to BigML's pre‐
diction API.
Further Reading
• Molinaro, A. (2005). SQL Cookbook . O'Reilly Media.
• Wikipedia. (2014). List of HTTP status codes. Retrieved May 10, 2014, from
http://en.wikipedia.org/wiki/List_of_HTTP_status_codes .
Search WWH ::




Custom Search