Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating tumblr blog with website

Tags:

php

blogs

tumblr

I would like to integrate my tumblr feed in to my website. It seems that tumblr has an API for this, but I'm not quite sure how to use it. From what I understand, I request the page, and tumblr returns an xml file with the contents of my blog. But how do I then make this xml into meaningful html? Must I parse it with php, turning the relevant tags into headers and so on? I tell myself it cannot be that painful. Anyone have any insights?

like image 212
Ying Avatar asked Oct 14 '09 18:10

Ying


2 Answers

There's a javascript include that does this now, available from Tumblr (you have to login to see it): http://www.tumblr.com/developers

It winds up being something like this:

<script type="text/javascript" src="http://{username}.tumblr.com/js"></script>
like image 98
kweerious Avatar answered Sep 24 '22 13:09

kweerious


You can use PHPTumblr, an API wrapper written in PHP which makes retrieving posts a breeze.

like image 37
ChrisR Avatar answered Sep 22 '22 13:09

ChrisR