{"id":15516858,"url":"https://github.com/iotaspencer/cloud_party","last_synced_at":"2025-10-23T19:02:25.502Z","repository":{"id":62555816,"uuid":"159257966","full_name":"IotaSpencer/cloud_party","owner":"IotaSpencer","description":"A HTTParty based rubyflare, instead of relying on curb/libcurl","archived":false,"fork":false,"pushed_at":"2024-12-10T18:45:13.000Z","size":115,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-14T09:14:43.127Z","etag":null,"topics":["cloudflare","cloudflare-api","gem","httparty","ruby","rubygems"],"latest_commit_sha":null,"homepage":"https://iotaspencer.me/projects/cloud_party","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/IotaSpencer.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-27T01:35:55.000Z","updated_at":"2024-12-10T18:44:37.000Z","dependencies_parsed_at":"2024-12-24T06:26:34.973Z","dependency_job_id":"8e680809-5340-4913-96cf-348cc21fa61f","html_url":"https://github.com/IotaSpencer/cloud_party","commit_stats":{"total_commits":68,"total_committers":4,"mean_commits":17.0,"dds":"0.42647058823529416","last_synced_commit":"cc5c7582b2c00448510fbfafa42c7452fa638522"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IotaSpencer%2Fcloud_party","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IotaSpencer%2Fcloud_party/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IotaSpencer%2Fcloud_party/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IotaSpencer%2Fcloud_party/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IotaSpencer","download_url":"https://codeload.github.com/IotaSpencer/cloud_party/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199086,"owners_count":21063641,"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":["cloudflare","cloudflare-api","gem","httparty","ruby","rubygems"],"created_at":"2024-10-02T10:10:14.459Z","updated_at":"2025-10-23T19:02:20.473Z","avatar_url":"https://github.com/IotaSpencer.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CloudParty\nHTTParty based library for Cloudflare\n\n\n### Badges\n[![Gem Version](https://badge.fury.io/rb/cloud_party.svg)](https://badge.fury.io/rb/cloud_party)\n[![Code Climate](https://codeclimate.com/github/IotaSpencer/cloud_party/badges/gpa.svg)](https://codeclimate.com/github/IotaSpencer/cloud_party)\n[![Test Coverage](https://codeclimate.com/github/IotaSpencer/cloud_party/badges/coverage.svg)](https://codeclimate.com/github/IotaSpencer/cloud_party/coverage)\n[![Build Status](https://travis-ci.org/IotaSpencer/cloud_party.svg?branch=master)](https://travis-ci.org/IotaSpencer/cloud_party)\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```\ngem 'cloud_party'\n```\n\nAnd then execute:\n\n```\n$ bundle\n```\n\nOr install it yourself as:\n\n```\n$ gem install cloud_party\n```\n\n## Usage\n\nFirst off, open https://api.cloudflare.com/ to see all the available endpoints\n\n### Quick start\n\n#### Setup connection\n\nTwo configurations are applicable for setup currently,\n\n\n\u003cdetails\u003e\n  \u003csummary\u003e$HOME/.cloud_party/config or /etc/cloud_party/config\u003c/summary\u003e\n    \u003cp markdown=\"1\"\u003e\n\n```yaml\nemail: 'email@here.com'\napi-key: 'abcdefabcdef1234561234567890'\ntoken: 'ABCDEFG123456789ABCDEF\n```\n\u003c/p\u003e\n\u003c/details\u003e\n\n```ruby\nrequire 'cloud_party'\nconnection = \n```\n\n#### GET your user account details\n\n```ruby\n user = connection.get('user')\n\n# Read the first result\np user.result\n\n# Read your first name\np user.result[:first_name]\n```\n\n#### Update(PATCH) your user account\n\n```ruby\nuser = connection.patch('user', { first_name: 'Bear' })\n\n# Read the first result\np user.result\n```\n\n#### GET all your zones\n\n```ruby\nzones = connection.get('zones')\n\n# Read the first zone\np zones.result\n\n# Read the array of zones. Pluralize #result\np zones.results\n```\n\n#### Create(POST) a new zone (domain)\n\n```ruby\nzone = connection.post('zones', { name: 'supercooldomain.com' })\n\n# Check it out\np zone.result\n```\n\n#### Add(POST) an A Record to the zone\n\n```ruby\ndns_record = connection.post('zones/#!{#zone.result[:id]}/dns_records', {\n                             type: 'A',\n                             name: 'supercooldomain.com',\n                             content: '127.0.0.1'\n                             })\n\n# Check it out\np dns_record.result\n```\n\n#### DELETE a zone\n\n```ruby\ndeleted_zone = connection.delete('zones/#!{zone.result[:id]}')\n\n# Check out the response\np deleted_zone\n```\n\n#### Catch errors\n\n```ruby\nbegin\n  connection.get('user')\nrescue =\u003e e\n  # Inspect e.response for more details\n  p e.response\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. 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\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/trev/rubyflare. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.\n\n## Legal\n\ncloud_party, its developers, and other collaborators are not affiliated with nor endorsed by Cloudflare unless explicitly\nnoted\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiotaspencer%2Fcloud_party","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiotaspencer%2Fcloud_party","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiotaspencer%2Fcloud_party/lists"}