{"id":17049679,"url":"https://github.com/matrixsenpai/pandascore-api","last_synced_at":"2025-03-23T04:25:59.459Z","repository":{"id":62450453,"uuid":"183221439","full_name":"MatrixSenpai/pandascore-api","owner":"MatrixSenpai","description":"A Swift implementation of the PandaScore API","archived":false,"fork":false,"pushed_at":"2020-09-11T19:48:39.000Z","size":1202,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T10:39:22.178Z","etag":null,"topics":["api","api-client","league-of-legends","pandascore","swift"],"latest_commit_sha":null,"homepage":"https://matrixsenpai.github.io/pandascore-api/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MatrixSenpai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-24T12:10:14.000Z","updated_at":"2020-09-11T19:48:42.000Z","dependencies_parsed_at":"2022-11-01T23:31:00.122Z","dependency_job_id":null,"html_url":"https://github.com/MatrixSenpai/pandascore-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixSenpai%2Fpandascore-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixSenpai%2Fpandascore-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixSenpai%2Fpandascore-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatrixSenpai%2Fpandascore-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatrixSenpai","download_url":"https://codeload.github.com/MatrixSenpai/pandascore-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245054858,"owners_count":20553567,"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":["api","api-client","league-of-legends","pandascore","swift"],"created_at":"2024-10-14T09:55:08.543Z","updated_at":"2025-03-23T04:25:59.427Z","avatar_url":"https://github.com/MatrixSenpai.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PandaScoreAPI\n\n![Package Managers](https://img.shields.io/badge/Package%20Managers-SPM%20%7C%20CocoaPods-important.svg?style=for-the-badge)\n![Cocoapods platforms](https://img.shields.io/cocoapods/p/PandaScoreAPI.svg?style=for-the-badge)\n![Cocoapods](https://img.shields.io/cocoapods/v/PandaScoreAPI.svg?style=for-the-badge)\n![Discord](https://img.shields.io/discord/569027254550528030.svg?style=for-the-badge)\n\n**DEPRECATED** in favor of [api-common/Pandascore](https://github.com/MatrixSenpai/api-common)\n\n### A Swift implementation of the PandaScore API\n\nA callback based API client with built-in reactive extensions\n\n_Currently, this package does not support Live (`wss://`)_\n\n#### Overview\nTo get started, create a client and pass in your token, like so:\n```swift\nlet client: Client = Client(\"\u003cPANDASCORE_API_TOKEN\u003e\")\n```\n\n##### Making a request\nEach endpoint has a similar structure.\n\nSimple endpoints like `getChampion` and `getItem` can take an ID or a list of IDs, and return a single object or a filtered list.\n\nMore complex endpoints, like those for `games`, `matches`, `series`, and `tournaments`, have a slightly more complex structure\n\nThere are 3 main parts to these requests: \n- page/per_page\n- filter/range\n- sort\n\nPage and per_page are relatively self-explainatory. They deal with the pagination of the request\n\u003e Note: In future versions, a response will contain the next and previous paging information, to allow for easier pagination of requests\n\nFilter and range allow the limitations on the data returned by applying filters on the properties _of the returning object_.\n\nSort allows the data returned to be sorted by a property _on the returning objects_\n\nA quick sample of making requests\n```swift\nlet filterObject = GetMatchesParametersObject(finished: true, number_of_games: 1)\nlet sortObject = GetMatchesSortObject(keys: [(.begin_at, true)])\nclient.getMatches(filter: filterObject) { response in \n  // Do something\n}\n```\nThis request gets only finished matches with one game, and sorts them in ascending order by when they began.\n\n\nFor further documentation on how the API works, check out [the PandaScore official documentation](https://developers.pandascore.co/doc/).\n\n#### Problems?\n\nSubmit an issue\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixsenpai%2Fpandascore-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatrixsenpai%2Fpandascore-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatrixsenpai%2Fpandascore-api/lists"}