Scriptogr.am has a very simple api that allows one to POST and DELETE articles. POSTing an article will place it in the appropriate Dropbox directory and make it available on your blog all in one step.

Here is how you could use this API via Curl:

curl \
       -d app_key=$APP_KEY \
       -d user_id=$USER_ID \
       -d name="${title:-$1}" \
       --data-urlencode text@$tmpfile \
       \
       http://scriptogr.am/api/article/post/

This assumes that you've registered for an application key and that you have configured the value into $APP_KEY and your Scriptogr.am user id into $USER_ID.

The name attribute is both the title of your article and also the filename (normalized and with a .md extension). Your article must not contain the metadata values that are allowed when you're editing files directly in the Dropbox directory.


Retrieving Blogger posts by post id

Fri 29 January 2010 by Lars Kellogg-Stedman Tags python blogger api gdata

I spent some time recently trying to figure out, using Google's gdata API, how to retrieve a post from a Blogger blog if I know corresponding post id. As far as I can tell there is no obvious way of doing this, at least not using the gdata.blogger.client …

read more