RubyApiPackCloudways is a Ruby gem for interacting with the Cloudways API. It provides easy access to providers, server sizes, apps, and packages, with built-in OAuth authentication for secure API requests.
RubyApiPackCloudways is a Ruby gem that provides an easy interface for interacting with the Cloudways API. It includes functionality for fetching information about Cloudways providers, server sizes, apps, and packages, as well as managing server connections and authentication tokens.
You will need to configure your Cloudways API credentials in your Ruby environment. Here’s how you can do it:
RubyApiPackCloudways.configure do |config|
config.api_url = 'https://api.cloudways.com/api/v1'
config.api_path_token = '/oauth/access_token'
config.api_email = '<your_cloudways_email>'
config.api_key = '<your_cloudways_api_key>'
end
Add this line to your application’s Gemfile:
gem "ruby_api_pack_cloudways"
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby_api_pack_cloudways
The gem is available as open source under the terms of the MIT License.