How To Get Your Blogs Posts Using Blogger API

30-07-2017 blogger api json php

By using blogger api, we can get all our blogger posts. Every blog has one id, By using below url we can get the posts.

Replace blogger id in blogeer_id, In php simplexml_load_file() we can fetch the posts here is code.

		<title>Blogger Api Example</title>
			$blogeer_id = '1234567980481307770';
			$URL = "".$blogeer_id."/posts/default";
			$xmlData = simplexml_load_file($URL);
			foreach($xmlData->entry as $postList){
				echo '<div>';
				echo '<h2>'.$postList->title.'</h2>'; // This is post title
				echo '<p>'.$postList->content.'</p>'; // This is post content
				echo '</div>';
				echo '<hr>';




You might also like:

How to redirect one page to another page in php
20-03-2017 redirect php
Convert Time 24 hrs to 12 hrs format In javascript
12-03-2017 date javascript 12hrs convert
Remove last two characters from given string
06-03-2017 substring javascript remove
Get previous date from given date in javascript
06-03-2017 date javascript previous date
Get Unique values from array/object in javascript
19-02-2017 javascript unique remove repeated values from array