{"id":19149113,"url":"https://github.com/flytegg/hangar-wrapper","last_synced_at":"2025-05-07T04:41:15.113Z","repository":{"id":154429240,"uuid":"631744062","full_name":"flytegg/hangar-wrapper","owner":"flytegg","description":"A Java/Kotlin wrapper for PaperMC's Hangar API.","archived":false,"fork":false,"pushed_at":"2024-06-06T19:54:54.000Z","size":161,"stargazers_count":8,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T18:31:46.972Z","etag":null,"topics":["api","hangar","papermc","wrapper"],"latest_commit_sha":null,"homepage":"https://flyte.gg","language":"Kotlin","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/flytegg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2023-04-24T00:44:18.000Z","updated_at":"2025-01-07T10:04:32.000Z","dependencies_parsed_at":"2024-06-06T21:22:19.659Z","dependency_job_id":"f78299fb-70e3-496d-bee6-246b69440f84","html_url":"https://github.com/flytegg/hangar-wrapper","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytegg%2Fhangar-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytegg%2Fhangar-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytegg%2Fhangar-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flytegg%2Fhangar-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flytegg","download_url":"https://codeload.github.com/flytegg/hangar-wrapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252816517,"owners_count":21808702,"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","hangar","papermc","wrapper"],"created_at":"2024-11-09T08:06:32.651Z","updated_at":"2025-05-07T04:41:15.089Z","avatar_url":"https://github.com/flytegg.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hangar Wrapper\n\nA Java/Kotlin wrapper for PaperMC's [Hangar API](https://hangar.papermc.io/api-docs).\n\n## How to Use\n\nAll methods in the wrapper should be accessed through the ```HangarClient``` class.\n\nIt currently supports retrieving information about projects, versions and users. \n\nThe following methods are in the ```HangarClient``` class, and can be accessed statically:\n\n### Projects\n\n```kt\nProjects getProjects(boolean orderWithRelevance, int limit, int offset)\n\nProject getProject(String author, String slug)\n\nint getTotalProjectCount()\n```\n\n### Versions\n```kt\nVersions getVersions(String author, String slug)\n\nVersion getVersion(String author, String slug, String version)\n\nString getDownloadURL(String author, String slug, String version, Platform platform)\n```\n### Users\n```kt\nUser getUser(String user)\n```\n\n## Installation\n\nThe latest version can be found in the releases tab on the right.\n\n### Maven  \n```xml\n\u003crepository\u003e\n    \u003cid\u003eflyte-repository\u003c/id\u003e\n    \u003cname\u003eFlyte Repository\u003c/name\u003e\n    \u003curl\u003ehttps://repo.flyte.gg/\u003crepository\u003e\u003c/url\u003e\n\u003c/repository\u003e\n```  \n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003egg.flyte\u003c/groupId\u003e\n    \u003cartifactId\u003ehangarwrapper\u003c/artifactId\u003e\n    \u003cversion\u003eVERSION\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n#### Gradle\n```kt\nrepositories {\n    maven (\"https://repo.flyte.gg/releases\")\n}\n        \ndependencies {\n    implementation(\"gg.flyte:hangarwrapper:VERSION\")\n}\n```  \n\n## Contributing\n\nContributions are always welcome. Please open a pull request and try to maintain a similar code quality and style. The team at [Flyte](https://flyte.gg) is working on supporting new endpoints and keeping up with Hangar's changing API.\n\nIf you have no coding knowledge you can contribute by raising an issue.\n\n## Author\n\nThis framework was made as an open source tool for [Flyte](https://flyte.gg) and the wider community.\n\n- Created by [Dawson (dawsson)](https://github.com/Dawsson)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflytegg%2Fhangar-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflytegg%2Fhangar-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflytegg%2Fhangar-wrapper/lists"}