Posting to a Tumblr blog with ColdFusion

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Ā 

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon] Share in Google Buzz Share this on google buzz!


User Activity:

Flash CS5 Poll

Opensocial: Test Google FC

GFC iPhone app

<-- -->