Many times our requirements are to be fetched blogger's blog via Rest API. Thankful to google for providing us an API for this.
So, what we have to do for this, we have to follow simple following steps.
So, what we have to do for this, we have to follow simple following steps.
- I hope you have an account on blogger and have some posts there. If not then first you have to create an account.Click here to signup.
- Now, signup for google api console.
- Create a project and select blogger API and get the api_key.
- Now you can get posts from your blogger account.
- There are many APIs like
To get all posts
GET https://www.googleapis.com/blogger/v3/blogs/BLOGGER_ID/posts?key=YOUR-API-KEY
To get specific post - GET https://www.googleapis.com/blogger/v3/blogs/BLOGGER_ID/posts/POST_ID?key=YOUR-API-KEY
- Similarly, you can apply many filters to access your blogs according to your requirements like recent 5 blogs, blogs with comments etc.For eg.
GET https://www.googleapis.com/blogger/v3/blogs/BLOGGER_ID/posts/POST_ID? - key=YOUR-API-KEY&maxResults=2&order=date
- For more detail visit https://developers.google.com/blogger/docs/3.0/using
No comments:
Post a Comment
Thanks!