Retrieving Blogger Posts through Labels
Bijay Kumar Behera <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <[email protected]> |
Hi,
This is what I am facing problem, anybody can help me please.
I am using this blogger API documentation below. The problem is I'm able to retrieve data through ajax request but it is showing 10 results only where there are more than 10 posts are available. Thanks in advance.
<html>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script>
// Request an API Key for the Blogger API from
// https://code.google.com/apis/console/
var apikey = "YOUR API KEY HERE";
// You can find the blogId in the HTML source of a blog
var blogId = "2399953";
// When the document is loaded
$(document).ready(function() {
// Make a JSONP request for the Posts on the Blogger Buzz blog
$.ajax({
url:"https://www.googleapis.com/blogger/v2/blogs/”+
blogId+”/labels?key="+apikey,
dataType: "jsonp",
success: function(data, textStatus, jqXHR) {
var items = [];
// Construct a chunk of HTML for each post
// containing the Post title, content, and a
// link to the post author.
$.each(data.items, function(index, value) {
items.push("<h2>"+value.title+"</h2>"+value.content+
"<p>Posted by <em><a href='"+value.author.url+"'>"+
value.author.displayName+"</a></em></p>");
});
// And finally, append the generated content to the page body.
$(items.join('')).appendTo('body');
}
});
});
</script>
</html>
--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.