GoogleLogin
authorization 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
curl
and 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.
Pete, not sure , but your templates looks all screwy.. tehres an overlap with the frames (?) and blog content !!
ReplyDeleteYeah, my personal blog is sorta the one place where I don't bother getting things to look right in IE.
ReplyDeletehehehe.. I totally understand, but then again.. at certain times of the day, users maybe behind an enterprise (AKA IE).
ReplyDeletewith FF NP