{"id":13540855,"url":"https://github.com/caravancodes/consumable-code-covid-19-api","last_synced_at":"2025-04-02T08:30:50.878Z","repository":{"id":84327893,"uuid":"247946214","full_name":"caravancodes/consumable-code-covid-19-api","owner":"caravancodes","description":"Retrofit has been Handled !! || Consumable code for request Public API (Covid-19 Api) For Coronavirus Tracker || :books: :bat:","archived":true,"fork":false,"pushed_at":"2021-07-28T07:38:32.000Z","size":179,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-20T12:51:35.507Z","etag":null,"topics":["android-api","android-library","api","consumable","corona","coronavirus","coronavirus-api","coronavirus-info","coronavirus-tracker","coronavirus-tracking","covid-19","covid-19-app","covid-api","covid-app","covid-data","covid-virus","covid19","covid19-data","library","retrofit2"],"latest_commit_sha":null,"homepage":"https://covid19api.com/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caravancodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://saweria.co/amirisback"}},"created_at":"2020-03-17T10:54:46.000Z","updated_at":"2023-01-28T07:09:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"2f914783-b480-4695-89e7-fb2ead012812","html_url":"https://github.com/caravancodes/consumable-code-covid-19-api","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caravancodes%2Fconsumable-code-covid-19-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caravancodes%2Fconsumable-code-covid-19-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caravancodes%2Fconsumable-code-covid-19-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caravancodes%2Fconsumable-code-covid-19-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caravancodes","download_url":"https://codeload.github.com/caravancodes/consumable-code-covid-19-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246781857,"owners_count":20832920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-api","android-library","api","consumable","corona","coronavirus","coronavirus-api","coronavirus-info","coronavirus-tracker","coronavirus-tracking","covid-19","covid-19-app","covid-api","covid-app","covid-data","covid-virus","covid19","covid19-data","library","retrofit2"],"created_at":"2024-08-01T10:00:33.972Z","updated_at":"2025-04-02T08:30:50.862Z","avatar_url":"https://github.com/caravancodes.png","language":"Kotlin","funding_links":["https://saweria.co/amirisback"],"categories":["Android Library"],"sub_categories":["Consumable Code Library"],"readme":"![ScreenShoot Apps](https://raw.githubusercontent.com/amirisback/amirisback/master/docs/image/deprecated.png?raw=true)\n\n## consumable-code-covid-19-api\n[![](https://jitpack.io/v/amirisback/consumable-code-covid-19-api.svg?style=flat-square)](https://jitpack.io/#amirisback/consumable-code-covid-19-api) \u003cbr\u003e\nEliminates 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\n\n## Documentation Covid 19 Api\nhttps://covid19api.com/\n\n## Version Release\nThis Is Latest Release\n\n    $version_release = 1.0.1\n\nWhat's New??\n\n    * Adding Get Routes *\n\n## How To Use This Project\n\u003ch3\u003eStep 1. Add the JitPack repository to your build file\u003c/h3\u003e\n\nAdd it in your root build.gradle at the end of repositories:\n\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n  \n  \n\u003ch3\u003eStep 2. Add the dependency\u003c/h3\u003e\n\n\tdependencies {\n\t        // library consumable code covid 19 api\n            implementation 'com.github.amirisback:consumable-code-covid-19-api:1.0.1'\n\t}\n\t\n\u003ch3\u003eStep 3. Declaration ConsumeCovid19Api\u003c/h3\u003e\n\n\tval consumeCovid19Api = ConsumeCovid19Api()\n    consumeCovid19Api.usingChuckInterceptor(this) // This is Code Chuck Interceptor\n    consumeCovid19Api.getSummaryData(object : Covid19ResultCallback\u003cReponseSummary\u003e {\n        override fun getResultData(data: ReponseSummary) {\n            // * PLACE YOUR CODE HERE FOR UI / ARRAYLIST *\n        }\n\n        override fun failedResult(statusCode: Int, errorMessage: String?) {\n            // failed result\n        }\n\n        override fun onShowProgress() {\n            // showing your progress view\n        }\n\n        override fun onHideProgress() {\n            // hiding your progress view\n        }\n    })\n            \n## Function Main From This Project\n\n    // Switch For Using Chuck Interceptor\n    fun usingChuckInterceptor(context: Context)\n\n    // List Routes\n    // List all routes with parameters and descriptions.\n    fun getRoutes(callback: Covid19ResultCallback\u003cList\u003cRoute\u003e\u003e)\n\n    // Get Summary Data\n    // Return new cases and total cases per country.\n    fun getSummaryData(callback: Covid19ResultCallback\u003cReponseSummary\u003e)\n\n    // Get All Data\n    // This call returns ~8MB of data and currently takes around 5 seconds.\n    fun getAllData(callback: Covid19ResultCallback\u003cList\u003cStatus\u003e\u003e)\n\n    // Get All Countries\n    // List all countries and their provinces.\n    fun getAllCountries(callback: Covid19ResultCallback\u003cList\u003cCountry\u003e\u003e)\n\n    // Get Status By Country\n    // {country} must be the country_slug the API call above\n    // {status} must be one of: confirmed, deaths, recovered\n    fun getStatusByCountry(\n        country: String,\n        status: String,\n        callback: Covid19ResultCallback\u003cList\u003cStatus\u003e\u003e\n    )\n\n    // Get Status By Country And Province\n    // {country} must be the country_slug the API call above\n    // {status} must be one of: confirmed, deaths, recovered\n    fun getStatusByCountryProvince(\n        country: String,\n        status: String,\n        callback: Covid19ResultCallback\u003cList\u003cStatus\u003e\u003e\n    )\n\n    // Get Status By Country From First Recorded Case\n    // {country} must be the country_slug the API call above\n    // {status} must be one of: confirmed, deaths, recovered\n    fun getFirstRecordedByCountry(\n        country: String,\n        status: String,\n        callback: Covid19ResultCallback\u003cList\u003cStatus\u003e\u003e\n    )\n\n    // Get Status By Country And Province From First Recorded Case\n    // {country} must be the country_slug the API call above\n    // {status} must be one of: confirmed, deaths, recovered\n    fun getFirstRecordedByCountryProvince(\n        country: String,\n        status: String,\n        callback: Covid19ResultCallback\u003cList\u003cStatus\u003e\u003e\n    )\n\n\n## Colaborator\nVery open to anyone, I'll write your name under this, please contribute by sending an email to me\n\n- Mail To faisalamircs@gmail.com\n- Subject : Github _ [Github-Username-Account] _ [Language] _ [Repository-Name]\n- Example : Github_amirisback_kotlin_admob-helper-implementation\n\nName Of Contribute\n- Muhammad Faisal Amir\n- Waiting List\n- Waiting List\n\nWaiting for your contribute\n\n## Attention !!!\nPlease enjoy and don't forget fork and give a star\n- Don't Forget Follow My Github Account\n- If you like this library, please help me / you can donate to buy patreon services\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaravancodes%2Fconsumable-code-covid-19-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaravancodes%2Fconsumable-code-covid-19-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaravancodes%2Fconsumable-code-covid-19-api/lists"}