This package to get Google Blogger Post and Page details from Blog using Blogger API.
:--------------------------------------:|:---------------------------------:
Android | iOS | MacOS | Web | Linux | Windows |
---|---|---|---|---|---|
✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
You don't need to include the google-services.json file in your app unless you are using Google services that require it. You do need to enable the Blogger API using Google Cloud Platform API manager, and Create New Project then Go to Credentials Page and Create New credentials For API Key.
To use blogger_api, first start by importing the package.
import 'package:blogger_api/blogger_api.dart';
BloggerAPI bloggerAPI = BloggerAPI()
bloggerAPI.getBlogByID(
blogId: 'Your Blog Id',
apiKey: 'Your API Key'
)
Return Type Future<BlogsModel>
bloggerAPI.getBlogByID(
blogId: ['Your Blog Ids'],
apiKey: 'Your API Key'
)
Return Type Future<List<BlogsModel>>
bloggerAPI.getAllPostFromBlog(
blogId: 'Your Blog Ids',
apiKey: 'Your API Key',
maxresult: 1,
includeComment: false // If need you can read all the Comments from Posts.
)
Return Type Future<PostModel>
bloggerAPI.getAllPageFromBlog(
blogId: 'Your Blog Ids',
apiKey: 'Your API Key',
maxresult: 1
)
Return Type Future<PageModel>
Author
and Replies
included in PostItemModel
so can you read author and replies from Posts
Passionate #Flutter, #Android Developer. #UI Designer.
You can raise issues here. Contributions are also welcome. You can do a pull request on GitHub here. Please take a look at up for grabs issues first.
You like the package ? Buy me a coffee :)