{"id":13540843,"url":"https://github.com/amirisback/consumable-code-news-api","last_synced_at":"2025-04-02T08:30:47.279Z","repository":{"id":65158861,"uuid":"245812111","full_name":"amirisback/consumable-code-news-api","owner":"amirisback","description":":newspaper: :books: Retrofit has been Handled !! || Consumable code for request API (News API)","archived":true,"fork":false,"pushed_at":"2021-07-28T07:38:03.000Z","size":1002,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T14:48:18.228Z","etag":null,"topics":["android","android-library","easy-to-use","fetch-api","library","library-database","mock","news","newsapi","retrieve","retrieve-data"],"latest_commit_sha":null,"homepage":"https://newsapi.org/","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/amirisback.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},"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-08T12:41:34.000Z","updated_at":"2023-05-01T02:12:00.000Z","dependencies_parsed_at":"2023-01-05T04:51:41.462Z","dependency_job_id":null,"html_url":"https://github.com/amirisback/consumable-code-news-api","commit_stats":{"total_commits":34,"total_committers":1,"mean_commits":34.0,"dds":0.0,"last_synced_commit":"2881f54f4c9b89ac24aa26f923f635e6a3cc098f"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirisback%2Fconsumable-code-news-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirisback%2Fconsumable-code-news-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirisback%2Fconsumable-code-news-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirisback%2Fconsumable-code-news-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amirisback","download_url":"https://codeload.github.com/amirisback/consumable-code-news-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246781827,"owners_count":20832912,"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","android-library","easy-to-use","fetch-api","library","library-database","mock","news","newsapi","retrieve","retrieve-data"],"created_at":"2024-08-01T10:00:33.779Z","updated_at":"2025-04-02T08:30:46.586Z","avatar_url":"https://github.com/amirisback.png","language":"Kotlin","readme":"![ScreenShoot Apps](https://raw.githubusercontent.com/amirisback/amirisback/master/docs/image/deprecated.png?raw=true)\n\n## consumable-code-news-api\n[![](https://jitpack.io/v/amirisback/consumable-code-news-api.svg?style=flat-square)](https://jitpack.io/#amirisback/consumable-code-news-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## Attention Please :bangbang:\nPlease use frogo-consume-api [Click Here](https://github.com/frogobox/frogo-consume-api) to get the latest updates\n\n## Documentation The News API\nhttps://newsapi.org/\n\n## Screenshoot Apps\n| News API |   Chuck Data 1              |   Chuck Data 2  |\n|:------------------:|:----------------------------:|:---------------------:|\n|\u003cspan align=\"center\"\u003e\u003cimg width=\"200px\" height=\"360px\" src=\"docs/image/ss_main.png\"\u003e\u003c/span\u003e | \u003cspan align=\"center\"\u003e\u003cimg width=\"200px\" height=\"360px\" src=\"docs/image/ss_chuck_1.png\"\u003e\u003c/span\u003e | \u003cspan align=\"center\"\u003e\u003cimg width=\"200px\" height=\"360px\" src=\"docs/image/ss_chuck_2.png\"\u003e\u003c/span\u003e |\n\n## Version Release\nThis Is Latest Release\n\n    $version_release = 1.0.7\n\nWhat's New??\n\n    * Update Build Gradle *\n    * Enhance Performance *\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 news api\n            implementation 'com.github.amirisback:consumable-code-news-api:1.0.7'\n\t}\n\t\n\u003ch3\u003eStep 3. Declaration ConsumeNewsApi\u003c/h3\u003e\n\n\tval consumeNewsApi = ConsumeNewsApi(NewsUrl.NEWS_API_KEY) // Your API_KEY\n    consumeNewsApi.usingChuckInterceptor(this) // Using Chuck Interceptor\n    consumeNewsApi.getTopHeadline( // Adding Base Parameter on main function\n        null, \n        null,\n        CATEGORY_HEALTH,\n        COUNTRY_ID,\n        null,\n        null,\n        object : NewsResultCallback\u003cArticleResponse\u003e {\n            override fun getResultData(data: ArticleResponse) {\n                // Your Ui or data\n            }\n\n            override fun failedResult(statusCode: Int, errorMessage: String?) {\n                // Your failed to do\n            }\n\n            override fun onShowProgress() {\n                // Your Progress Show\n            }\n\n            override fun onHideProgress() {\n                // Your Progress Hide\n            }\n\n        })\n\t\n\n## Contant Value Category\n\n    object NewsConstant {\n    \n        const val CATEGORY_BUSINESS = \"business\"\n        const val CATEGORY_ENTERTAIMENT = \"entertainment\"\n        const val CATEGORY_GENERAL = \"general\"\n        const val CATEGORY_HEALTH = \"health\"\n        const val CATEGORY_SCIENCE = \"science\"\n        const val CATEGORY_SPORTS = \"sports\"\n        const val CATEGORY_TECHNOLOGY = \"technology\"\n    \n    }\n\n## Function Main From This Project\n    // Switch For Using Chuck Interceptor\n    fun usingChuckInterceptor(context: Context)\n\n    // Get Top Headline\n    fun getTopHeadline(\n        q: String?,\n        sources: String?,\n        category: String?,\n        country: String?,\n        pageSize: Int?,\n        page: Int?,\n        callback: NewsResultCallback\u003cArticleResponse\u003e\n    )\n\n    // Get Everythings\n    fun getEverythings(\n        q: String?,\n        from: String?,\n        to: String?,\n        qInTitle: String?,\n        sources: String?,\n        domains: String?,\n        excludeDomains: String?,\n        language: String?,\n        sortBy: String?,\n        pageSize: Int?,\n        page: Int?,\n        callback: NewsResultCallback\u003cArticleResponse\u003e\n    )\n\n    // Get Sources\n    fun getSources(\n        language: String,\n        country: String,\n        category: String,\n        callback: NewsResultCallback\u003cSourceResponse\u003e\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","funding_links":["https://saweria.co/amirisback"],"categories":["Android Library"],"sub_categories":["Consumable Code Library"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirisback%2Fconsumable-code-news-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirisback%2Fconsumable-code-news-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirisback%2Fconsumable-code-news-api/lists"}