{"id":13540845,"url":"https://github.com/caravancodes/consumable-code-the-sport-db-api","last_synced_at":"2025-04-02T08:30:47.458Z","repository":{"id":65159202,"uuid":"236274716","full_name":"caravancodes/consumable-code-the-sport-db-api","owner":"caravancodes","description":"Retrofit has been Handled !! || Consumable code for request Public API (TheSportDBApi) || :soccer: :basketball:  ","archived":true,"fork":false,"pushed_at":"2021-07-28T07:34:41.000Z","size":1137,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-21T16:11:48.971Z","etag":null,"topics":["amirisback","android-library","api","api-library","consumable","library","mock","mock-data","public-api","retrieve-data","retrofit2","sportdata","sportdbapi","sports","the-sport-db-api","thesportsdb"],"latest_commit_sha":null,"homepage":"https://www.thesportsdb.com/api.php","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},"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-01-26T06:12:59.000Z","updated_at":"2024-02-03T23:01:27.000Z","dependencies_parsed_at":"2023-01-04T12:36:40.507Z","dependency_job_id":null,"html_url":"https://github.com/caravancodes/consumable-code-the-sport-db-api","commit_stats":{"total_commits":68,"total_committers":1,"mean_commits":68.0,"dds":0.0,"last_synced_commit":"037a2f5a588f75b2586cd6844fc484f5dca0e6e3"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caravancodes%2Fconsumable-code-the-sport-db-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caravancodes%2Fconsumable-code-the-sport-db-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caravancodes%2Fconsumable-code-the-sport-db-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caravancodes%2Fconsumable-code-the-sport-db-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caravancodes","download_url":"https://codeload.github.com/caravancodes/consumable-code-the-sport-db-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246781830,"owners_count":20832914,"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":["amirisback","android-library","api","api-library","consumable","library","mock","mock-data","public-api","retrieve-data","retrofit2","sportdata","sportdbapi","sports","the-sport-db-api","thesportsdb"],"created_at":"2024-08-01T10:00:33.813Z","updated_at":"2025-04-02T08:30:46.770Z","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-the-sport-db-api\n[![](https://jitpack.io/v/amirisback/consumable-code-the-sport-db-api.svg?style=flat-square)](https://jitpack.io/#amirisback/consumable-code-the-sport-db-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## Screenshoot Apps\n\n| The Sport DB 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.1.1\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 the sport db api\n            implementation 'com.github.amirisback:consumable-code-the-sport-db-api:1.1.1'\n\t}\n\t\n\u003ch3\u003eStep 3. Declaration ConsumeTheSportDbApi\u003c/h3\u003e\n\n\tval consumeTheSportDbApi = ConsumeTheSportDbApi(\"1\") // \"1\" is API KEY\n\t\n\tconsumeTheSportDbApi.usingChuckInterceptor(this) // This is Code Chuck Interceptor\n\t\n    consumeTheSportDbApi.searchForPlayerByName(\n        \"Danny Welbeck\",\n        object : SportResultCallback\u003cPlayers\u003e {\n            override fun getResultData(data: Players) {\n                \n                // * PLACE YOUR CODE HERE FOR UI / ARRAYLIST *\n\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## Documentation THE SPORT DB API\nhttps://www.thesportsdb.com/api.php\n\n## Function Main From This Project\n\n    // Switch For Using Chuck Interceptor\n    fun usingChuckInterceptor(context: Context)\n\n    // Search for team by name\n    fun searchForTeamByName(teamName: String?, sportResultCallback: SportResultCallback\u003cTeams\u003e)\n\n    // Search for team short code\n    fun searchForTeamByShortCode(shortCode: String?, sportResultCallback: SportResultCallback\u003cTeams\u003e)\n\n    // Search for all players from team *Patreon ONLY*\n    fun searchForAllPlayer(teamName: String?, sportResultCallback: SportResultCallback\u003cPlayers\u003e)\n\n    // Search for players by player name\n    fun searchForPlayer(playerName: String?, sportResultCallback: SportResultCallback\u003cPlayers\u003e)\n\n    // Search for players by player name and team name\n    fun searchForPlayer(playerName: String?, teamName: String?, sportResultCallback: SportResultCallback\u003cPlayers\u003e)\n\n    // Search for event by event name\n    fun searchForEvent(eventName: String?, sportResultCallback: SportResultCallback\u003cEvents\u003e)\n\n    // Search For event by event name and season\n    fun searchForEvent(eventName: String?, season: String?, sportResultCallback: SportResultCallback\u003cEvents\u003e)\n\n    // Search for event by event file name\n    fun searchForEventFileName(eventFileName: String?, sportResultCallback: SportResultCallback\u003cEvents\u003e)\n\n    // List all sports\n    fun getAllSports(sportResultCallback: SportResultCallback\u003cSports\u003e)\n\n    // List all leagues\n    fun getAllLeagues(sportResultCallback: SportResultCallback\u003cLeagues\u003e)\n\n    // List all Leagues in a country\n    fun searchAllLeagues(countryName: String?, sportResultCallback: SportResultCallback\u003cCountrys\u003e)\n\n    // List all Leagues in a country specific by sport\n    fun searchAllLeagues(countryName: String?, sportName: String?, sportResultCallback: SportResultCallback\u003cCountrys\u003e)\n\n    // List all Seasons in a League\n    fun searchAllSeasons(idTeam: String?, sportResultCallback: SportResultCallback\u003cSeasons\u003e)\n\n    // List all Teams in a League\n    fun searchAllTeam(league: String?, sportResultCallback: SportResultCallback\u003cTeams\u003e)\n\n    // List all Teams in Sportname \u0026 Country Name\n    fun searchAllTeam(sportName: String?, countryName: String?, sportResultCallback: SportResultCallback\u003cTeams\u003e)\n\n    // List All teams details in a league by Id\n    fun lookupAllTeam(idLeague: String?, sportResultCallback: SportResultCallback\u003cTeams\u003e)\n\n    // List All players in a team by Team Id *Patreon ONLY*\n    fun lookupAllPlayer(idTeam: String?, sportResultCallback: SportResultCallback\u003cPlayers\u003e)\n\n    // List all users loved teams and players\n    fun searchLoves(userName: String?, sportResultCallback: SportResultCallback\u003cUsers\u003e)\n\n    // League Details by Id\n    fun lookupLeagues(idLeague: String?, sportResultCallback: SportResultCallback\u003cLeagues\u003e)\n\n    // Team Details by Id\n    fun lookupTeam(idTeam: String?, sportResultCallback: SportResultCallback\u003cTeams\u003e)\n\n    // Player Details by Id\n    fun lookupPlayer(idPlayer: String?, sportResultCallback: SportResultCallback\u003cPlayers\u003e)\n\n    // Event Details by Id\n    fun lookupEvent(idEvent: String?, sportResultCallback: SportResultCallback\u003cEvents\u003e)\n\n    // Player Honours by Player Id\n    fun lookupHonour(idPlayer: String?, sportResultCallback: SportResultCallback\u003cHonors\u003e)\n\n    // Player Former Teams by Player Id\n    fun lookupFormerTeam(idPlayer: String?, sportResultCallback: SportResultCallback\u003cFormerTeams\u003e)\n\n    // Player Contracts by Player Id\n    fun lookupContract(idPlayer: String?, sportResultCallback: SportResultCallback\u003cContracts\u003e)\n\n    // Lookup Table by League ID and Season\n    fun lookupTable(idLeague: String?, season: String?, sportResultCallback: SportResultCallback\u003cTables\u003e)\n\n    // Next 5 Events by Team Id\n    fun eventsNext(idTeam: String?, sportResultCallback: SportResultCallback\u003cEvents\u003e)\n\n    // Next 15 Events by League Id\n    fun eventsNextLeague(idLeague: String?, sportResultCallback: SportResultCallback\u003cEvents\u003e)\n\n    // Last 5 Events by Team Id\n    fun eventsLast(idTeam: String?, sportResultCallback: SportResultCallback\u003cResults\u003e)\n\n    // Last 15 Events by League Id\n    fun eventsPastLeague(idLeague: String?, sportResultCallback: SportResultCallback\u003cEvents\u003e)\n\n    // Events in a specific round by league id/round/season\n    fun eventsRound(idLeague: String?, round: String?, season: String?, sportResultCallback: SportResultCallback\u003cEvents\u003e)\n\n    // All events in specific league by season (Free tier limited to 200 events)\n    fun eventsSeason(idLeague: String?, season: String?, sportResultCallback: SportResultCallback\u003cEvents\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaravancodes%2Fconsumable-code-the-sport-db-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaravancodes%2Fconsumable-code-the-sport-db-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaravancodes%2Fconsumable-code-the-sport-db-api/lists"}