{"id":13631745,"url":"https://github.com/leocabeza/clash-api","last_synced_at":"2025-04-17T22:31:42.012Z","repository":{"id":59152097,"uuid":"57409301","full_name":"leocabeza/clash-api","owner":"leocabeza","description":"Ruby wrapper for the Clash of Clans API","archived":true,"fork":false,"pushed_at":"2017-03-05T03:21:07.000Z","size":70,"stargazers_count":15,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-27T00:16:47.763Z","etag":null,"topics":["api-wrapper","clashofclans","ruby","ruby-wrapper"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/leocabeza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-29T19:52:41.000Z","updated_at":"2023-06-13T14:45:09.000Z","dependencies_parsed_at":"2022-09-13T10:50:22.845Z","dependency_job_id":null,"html_url":"https://github.com/leocabeza/clash-api","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocabeza%2Fclash-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocabeza%2Fclash-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocabeza%2Fclash-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leocabeza%2Fclash-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leocabeza","download_url":"https://codeload.github.com/leocabeza/clash-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223768650,"owners_count":17199356,"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-wrapper","clashofclans","ruby","ruby-wrapper"],"created_at":"2024-08-01T22:02:36.606Z","updated_at":"2024-11-08T23:31:32.830Z","avatar_url":"https://github.com/leocabeza.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Clashinator\n\nRuby wrapper for the Clash of Clans API, based on the v1 version\n\nNote: These docs were updated for the new tagged version 1.0\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'clashinator'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install clashinator\n\n## Usage\n\nYou'll need to generate an access token in Clash of Clans developer page at:\n[https://developer.clashofclans.com](https://developer.clashofclans.com)\n\nWith your access token, retrieve a client instance with it.\n\n`client = Clashinator::Client.new('YOUR TOKEN')`\n\nAll query options can be passed as underscored variables instead of\ncamelcased, query options available are at: [https://developer.clashofclans.com](https://developer.clashofclans.com)\n\nThere are several types of objects you can retrieve:\n\n```ruby\nclans = client.search_clans(name: 'vzlan warriors', min_members: 25)\n\nclan = client.clan_info('#VQ2QUJG')\n\nplayers = client.list_clan_members('#VQ2QUJG')\n\nwar_log = client.clan_war_log('#VQ2QUJG')\n\nlocations = client.list_locations\n\nlocation = client.location_info(32000254)\n\nclan_rankings = client.location_clan_rankings(32000254)\n\nplayer_rankings = client.location_player_rankings(32000254)\n\nleagues = client.list_leagues\n\nleague = client.league_info(29000022)\n\nseasons = client.league_seasons(29000022)\n\nplayer_rankings = client.league_season_rankings(29000022, '2015-10')\n\nplayer = client.player_info('#QOCRLV90')\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\nCreate a new file called `secrets.yml` in the config folder with the contents of `config/secrets.sample.yml`\nThen, you'll need to generate an access token in Clash of Clans developer page at:\n[https://developer.clashofclans.com](https://developer.clashofclans.com)\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/leocabeza/clash-api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\nRemember to add a test for each new feature you add, and before submitting a pull request, check that all tests are passing by running: `rake`\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleocabeza%2Fclash-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleocabeza%2Fclash-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleocabeza%2Fclash-api/lists"}