Php 谷歌博客api

Php 谷歌博客api,php,blogger,Php,Blogger,我一直在尝试为我的博客制作一个移动应用程序,所以我发现了google blogger feed,所以我写了这个 <?php $blogID='xxxxx'; $requestURL="http://www.blogger.com/feeds/{$blogID}/posts/default"; $xml=simplexml_load_file($requestURL); ?> <html> <body> <?php foreach($xml->ent

我一直在尝试为我的博客制作一个移动应用程序,所以我发现了google blogger feed,所以我写了这个

<?php
$blogID='xxxxx';
$requestURL="http://www.blogger.com/feeds/{$blogID}/posts/default";
$xml=simplexml_load_file($requestURL);
?>
<html>
<body>
<?php
foreach($xml->entry as $post)
{
echo '<div>';
echo '<h2>'.$post->title.'</h2>'; // post title
echo '<p>Published: '.$post->published.'</p>'; // date published
echo '<p>'.$post->content.'</p>'; // post content
echo '</div>';
}
?>
</body>
</html>

以$post形式输入)
{
回声';
回显“.$post->title.”;//post title
echo“Published:”.$post->Published.

”;//发布日期 回显“”.$post->content.

”;//post content 回声'; } ?>
但是我想让它显示所有的帖子列表和一个链接来显示每个帖子的内容,但是我不知道怎么做