GoogleLoginauthorization scheme on API requests. This is more secure, but slightly tougher to work with than HTTP Basic authorization.
Sure, there are libraries (Java and C#) for handling this, but where’s the fun in that? Here’s how to do the API using just
sed, in a delightful one-liner:
curl -H "`curl -s -d Email=e-mail address -d Passwd=password -d source=your app name -d service=blogger https://www.google.com/accounts/ClientLogin | sed -n -e \"s/Auth=\(.*\)/Authorization: GoogleLogin auth=\1/p\"`" http://beta.blogger.com/feeds/blog id/posts/full
Note that for the e-mail address, you’ll need to replace “@” with “%40” as per URL encoding.