ScreenShoot Apps

About This Project


SDK for anything your problem to make easier developing android apps

Screen Shoot

The Meals API Chuck Data 1 Chuck Data 2
TV Movie Person
The Meals API Chuck Data 1 Chuck Data 2

Version Release

This Is Latest Release

$version_release = 1.0.1

What’s New??

* Release *

Download this project

Step 1. Add the JitPack repository to your build file (build.gradle : Project)

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency (build.gradle : Module)

dependencies {
        // library frogo-consume-api
        implementation 'com.github.frogobox:frogo-consume-api:1.0.1'
}

Step 3. Click Detail Below

News Api

About

Eliminates the method of retrieving json data using retrofit repeatedly. so this project has a set of functions to retrieve data without the need for fetching data using the retrofit of the API

Documentation The News API

https://newsapi.org/

Screenshoot Apps

News API Chuck Data 1 Chuck Data 2

Declaration ConsumeNewsApi

<div class="snippet-clipboard-content position-relative" data-snippet-clipboard-copy-content="val consumeNewsApi = ConsumeNewsApi(NewsUrl.NEWS_API_KEY) // Your API_KEY
consumeNewsApi.usingChuckInterceptor(this) // Using Chuck Interceptor
consumeNewsApi.getTopHeadline( // Adding Base Parameter on main function
null,
null,
CATEGORY_HEALTH,
COUNTRY_ID,
null,
null,
object : FrogoResponseCallback {
override fun onSuccess(data: ArticleResponse) {
// Your Ui or data
}

override fun onFailed(statusCode: Int, errorMessage: String?) {
// Your failed to do
}

override fun onShowProgress() {
// Your Progress Show
}

override fun onHideProgress() {
// Your Progress Hide
}

})
“>

val consumeNewsApi = ConsumeNewsApi(NewsUrl.NEWS_API_KEY) // Your API_KEY
consumeNewsApi.usingChuckInterceptor(this) // Using Chuck Interceptor
consumeNewsApi.getTopHeadline( // Adding Base Parameter on main function
    null, 
    null,
    CATEGORY_HEALTH,
    COUNTRY_ID,
    null,
    null,
    object : FrogoResponseCallback<ArticleResponse> {
        override fun onSuccess(data: ArticleResponse) {
            // Your Ui or data
        }

        override fun onFailed(statusCode: Int, errorMessage: String?) {
            // Your failed to do
        }

        override fun onShowProgress() {
            // Your Progress Show
        }

        override fun onHideProgress() {
            // Your Progress Hide
        }

    })