Add JitPack repository:
repositories {
maven { url 'https://jitpack.io' }
}
And the dependency:
dependencies {
implementation 'com.github.JabirDev:blogger-api:version'
}
This library is made to make it easier for you to work with Blogger API v3. This library also use Retrofit for the networking, you can visit Retrofit here.
Note: This library not support POST request
- Create your
API KEY
go to Blogger API Documentation - Login into your Blogger account and get your blog id
BloggerApi api = new BloggerApi("your_blog_id", "your_api_key");
// Get recent post
api.getPostList(new PostListListener() {
@Override
public void onPostListSuccessListener(PostList postList) {
// Do something
}
@Override
public void onFailureListener(Throwable t) {
// Do something
}
});