This module is not complete. Feel free to send pull request
Blogger JS is a javascript client library for blogger CMS. You can get posts,pages and more from your blogger site by this module.
with npm
installed, run
npm install blogger-js --save
or with yarn
installed, run
yarn add blogger-js
Now import and initialize this library from your project
import bloggerJs from "blogger-js";
const blogger = new bloggerJs(API_KEY, BLOGGER_ID);
Now, for getting blog informaation, use getBlog
method,
const blog = await blogger.getBlog();
You can get blog information with website url using getBlogByUrl
method
const blog = await blogger.getBlogByUrl("htttps://example.blogspot.com/");
For getting all the post list, use getPostList
method
const posts = await blogger.getPostList();
For getting a single post by it's id, try the getPostById
method
const post = await blogger.getPostById(POST_ID);
For searching a post with query string, use the searchPost
method with the query string as argument
const result = await blogger.searchPost(QUERY_STRING);
const result = await blogger.getPostByPath(POST_PATH);
const result = await blogger.getPageList();
const result = await blogger.getPageById(PAGE_ID);
MIT