{"id":14956051,"url":"https://github.com/jquass/swgoh-api","last_synced_at":"2026-02-08T19:02:23.806Z","repository":{"id":45289256,"uuid":"276406552","full_name":"jquass/SWGOH-API","owner":"jquass","description":"A gem api client wrapper for api.swgoh.help","archived":false,"fork":false,"pushed_at":"2021-12-24T04:36:43.000Z","size":77,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T04:13:06.322Z","etag":null,"topics":["api-client","api-wrapper","rails","rails-api","ruby","ruby-gem","ruby-on-rails","ruby-on-rails-api","rubygem","rubygems","rubyonrails"],"latest_commit_sha":null,"homepage":"","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/jquass.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-01T14:56:21.000Z","updated_at":"2021-12-24T04:36:43.000Z","dependencies_parsed_at":"2022-09-22T19:20:46.850Z","dependency_job_id":null,"html_url":"https://github.com/jquass/SWGOH-API","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/jquass/SWGOH-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquass%2FSWGOH-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquass%2FSWGOH-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquass%2FSWGOH-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquass%2FSWGOH-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jquass","download_url":"https://codeload.github.com/jquass/SWGOH-API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jquass%2FSWGOH-API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265418465,"owners_count":23761817,"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-client","api-wrapper","rails","rails-api","ruby","ruby-gem","ruby-on-rails","ruby-on-rails-api","rubygem","rubygems","rubyonrails"],"created_at":"2024-09-24T13:12:14.379Z","updated_at":"2025-10-08T18:29:22.700Z","avatar_url":"https://github.com/jquass.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SWGOH::API [![Gem Version](https://badge.fury.io/rb/SWGOH-API.svg)](https://badge.fury.io/rb/SWGOH-API)\nRuby client wrapper for the API at https://api.swgoh.help .\n\n### Installation\n\nGemfile:\n\n```ruby\ngem 'SWGOH-API', '~\u003e 1.0.0'\n```\n\nInstall:\n\n```ruby\ngem install SWGOH-API\n```\n\n## Usage\n```ruby\n# Require the gem\nrequire 'SWGOH/API/CLIENT/client'\n\n# Create a new client\nclient = CLIENT.new\n\n# Generate a new access_token\naccess_token = client.authorize(\"username\", \"password\")\n\n# Or authenticate with a saved access_token\nclient.access_token = access_token\n\n# Then start making requests\njson = client.get_players([123456789])\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies.\n\nTo build your changes, run `gem build SWGOH-API.gemspec`\n\nTo install the build onto your local machine, run `gem install 'SWGOH-API'`. \n\n### irb\n```\n$ irb\nirb(main):001:0\u003e require 'SWGOH/API/CLIENT/client'\n=\u003e true\nirb(main):002:0\u003e client = CLIENT.new\n=\u003e #\u003cCLIENT:0x00007fdf90087b28 @language=\"ENG_US\", @enums=false, @structure=false, @access_token=nil\u003e\nirb(main):003:0\u003e client.authorized?\n=\u003e false\nirb(main):004:0\u003e client.access_token = 'myexistingtoken'\n=\u003e \"myexistingtoken\"\nirb(main):005:0\u003e client.authorized?\n=\u003e true\n```\n\n### Unit Tests\n\nRun `rake test` to run the unit tests.\n\n### Release\nThese are the steps to create and tag a new version, push git commits and tags, and push the new gem version to [rubygems.org](https://rubygems.org).\n\n- Update the CHANGELOG and assign version number\n- Update the version number in `version.rb`, and the README.md\n- Run `gem build SWGOH-API.gemspec` to build the new gem version\n- Run the release once to generate all files to commit `bundle exec rake release`  \n- Create a new version commit with all changes\n- Release the new version `bundle exec rake release`\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/jquass/SWGOH-API. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/jquass/SWGOH-API/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the SWGOH::API project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/jquass/SWGOH-API/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjquass%2Fswgoh-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjquass%2Fswgoh-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjquass%2Fswgoh-api/lists"}