# GET http://api.twitter.com/:user_id/statuses/show/:tweet_id.json
$ curl http://api.twitter.com/1/statuses/show/24858112192159745.json
{
"created_at": "Tue Jan 11 16:00:10 +0000 2011",
"text": "Sadly, I have not yet hit peak e-mail http://t.co/o9QIqTH",
"id": 24858112192159745,
....
}
SOA embraces Unix.
The famous “Unix philosophy”:
Write programs that do one thing and do it well
Write programs to work together
Write programs that handle text streams, because that is a universal interface
# a sample pipelined shell command
$ cat `find ~/bin/ -name "\*.sh"` | sed -e '/\^ \*#/d' | wc -l
replace “programs” with “services” => SOA
Pros:
Example: Google Accounts (SSO), Amazon Web Services API, Twitter’s API, etc.
Cons: