将tumblr博客与网站集成 [英] Integrating tumblr blog with website

查看:96
本文介绍了将tumblr博客与网站集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将自己的tumblr供稿集成到我的网站中.似乎tumblr为此提供了一个API,但我不太确定如何使用它.据我了解,我请求该页面,并且tumblr返回一个XML文件,其中包含我博客的内容.但是,如何将这个xml转换成有意义的html?我是否必须用php解析它,将相关标签转换为标头等等?我告诉自己,这不会那么痛苦.有人有见识吗?

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?

推荐答案

您可以使用 PHPTumblr ,用PHP编写的API包装器,使检索帖子变得轻而易举.

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

这篇关于将tumblr博客与网站集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆