Skip to content

Instantly share code, notes, and snippets.

@pullmonkey
Created February 9, 2010 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pullmonkey/299419 to your computer and use it in GitHub Desktop.
Save pullmonkey/299419 to your computer and use it in GitHub Desktop.
$tumblr_user = Tumblr::User.new('ourtumblr@email.address', 'ourtumblrpassword')
Tumblr.blog = 'ourtumblrcmsblog'
def tumblr_cms(tag)
post = Tumblr::Post.first(:tagged => tag)
return nil if post.nil?
return post["regular_body"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment