Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/caravancodes/consumable-code-pixabay-api
Retrofit has been Handled !! || Consumable code for request API (Pixabay API) || Link https://pixabay.com/api/docs/
https://github.com/caravancodes/consumable-code-pixabay-api
android android-library androidlibrary fetch-api library pixabay-api retrieve retrieving-images retrive-data retrofit
Last synced: about 1 month ago
JSON representation
Retrofit has been Handled !! || Consumable code for request API (Pixabay API) || Link https://pixabay.com/api/docs/
- Host: GitHub
- URL: https://github.com/caravancodes/consumable-code-pixabay-api
- Owner: caravancodes
- License: apache-2.0
- Archived: true
- Created: 2020-03-10T14:23:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-28T07:35:45.000Z (over 3 years ago)
- Last Synced: 2024-10-20T12:51:35.381Z (about 2 months ago)
- Topics: android, android-library, androidlibrary, fetch-api, library, pixabay-api, retrieve, retrieving-images, retrive-data, retrofit
- Language: Kotlin
- Homepage:
- Size: 1.06 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-project-catalogue - Click Here
README
![ScreenShoot Apps](https://raw.githubusercontent.com/amirisback/amirisback/master/docs/image/deprecated.png?raw=true)
## consumable-code-pixabay-api
[![](https://jitpack.io/v/amirisback/consumable-code-pixabay-api.svg?style=flat-square)](https://jitpack.io/#amirisback/consumable-code-pixabay-api)
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## Attention Please :bangbang:
Please use frogo-consume-api [Click Here](https://github.com/frogobox/frogo-consume-api) to get the latest updates## Documentation Pixabay Api
https://pixabay.com/api/docs/## Screen Shoot Apps
| Pixabay API | Chuck Data 1 | Chuck Data 2 |
|:------------------:|:----------------------------:|:---------------------:|
| | | |## Version Release
This Is Latest Release$version_release = 1.1.1
What's New??
* Update Build Gradle *
* Enhance Performance *## How To Use This Project
Step 1. Add the JitPack repository to your build file
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
// library consumable code pixabay api
implementation 'com.github.amirisback:consumable-code-pixabay-api:1.1.1'
}
Step 3. Declaration ConsumePixabayApi
val consumePixabayApi = ConsumePixabayApi(PixabayConstant.SAMPLE_API_KEY) // Your API Key
consumePixabayApi.usingChuckInterceptor(this) // Using Chuck Interceptorval query = "Nature"
consumePixabayApi.searchImage(
query,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
object : PixabayResultCallback> {
override fun getResultData(data: Response) {
// Place your UI / Data
}override fun failedResult(statusCode: Int, errorMessage: String?) {
// failed to do
}override fun onShowProgress() {
// showing your progress view
}override fun onHideProgress() {
// hide your progress view
}
})## Function Main From This Project
// Switch For Using Chuck Interceptor
fun usingChuckInterceptor(context: Context)// Search for Image
fun searchImage(
q: String,
lang: String?,
id: String?,
imageType: String?,
orientation: String?,
category: String?,
minWidth: Int?,
minHeight: Int?,
colors: String?,
editorsChoice: Boolean?,
safeSearch: Boolean?,
order: String?,
page: Int?,
perPage: Int?,
callback: PixabayResultCallback>
)// Search for Video
fun searchVideo(
q: String,
lang: String?,
id: String?,
videoType: String?,
category: String?,
minWidth: Int?,
minHeight: Int?,
editorsChoice: Boolean?,
safeSearch: Boolean?,
order: String?,
page: Int?,
perPage: Int?,
callback: PixabayResultCallback>
)## Colaborator
Very open to anyone, I'll write your name under this, please contribute by sending an email to me- Mail To [email protected]
- Subject : Github _ [Github-Username-Account] _ [Language] _ [Repository-Name]
- Example : Github_amirisback_kotlin_admob-helper-implementationName Of Contribute
- Muhammad Faisal Amir
- Waiting List
- Waiting ListWaiting for your contribute
## Attention !!!
Please enjoy and don't forget fork and give a star
- Don't Forget Follow My Github Account
- If you like this library, please help me / you can donate to buy patreon services