This little snippet of code will help you post entries to your Tumblr blog using the Tumblr API and ColdFusion. Enjoy!
<cfhttp method=”Post” url=”http://www.tumblr.com/api/write” timeout=”200″>
<cfhttpparam type=”Formfield”
value=”youreloginemailaddressgoeshere”
name=”email”><cfhttpparam type=”Formfield”
value=”yourpasswordgoeshere”
name=”password”><cfhttpparam type=”Formfield”
value=”regular”
name=”type”><cfhttpparam type=”Formfield”
value=”thenameofyourtumblrbloggoeshere.tumblr.com”
name=”group”><cfhttpparam type=”Formfield”
value=”thisisthetitleofyourpost”
name=”title”><cfhttpparam type=”Formfield”
value=”yourbodycopygoeshereforthepost”
name=”body”><cfhttpparam type=”Formfield”
value=”from riajournal.com”
name=”generator”></cfhttp>
Find out more about the Tumblr API here:
http://www.tumblr.com/docs/apiĀ
Share this on google buzz!