lib |
spec |
8y .gitignore |
8y Gemfile |
8y Gemfile.lock |
8y LICENSE.txt |
8y README.md |
8y Rakefile |
8y appointment_plus.gemspec |
8y deploy.rb |
A Ruby wrapper for the AppointmentPlus REST API.
Add this line to your application's Gemfile:
gem 'appointment_plus'
And then execute:
$ bundle
Or install it yourself as:
$ gem install appointment_plus
Before you can make calls to AppointmentPlus you must configure the library with a valid API key and Site ID. You can request an API key and Site ID from AppointmentPlus. Basic Authentication is used with Site ID as username and API key as password.
There are two ways to configure the gem. You can pass a hash of configuration options when you create a client, or you can use a configure block.
client = AppointmentPlus.client({api_key: "YOUR_KEY_HERE", site_id: "YOUR_SITE_ID_HERE"})
Logging can also be enabled by passing an optional parameter
client = AppointmentPlus.client({api_key: "YOUR_KEY_HERE", site_id: "YOUR_SITE_ID_HERE" logging: true})
AppointmentPlus.configure do |config| config.api_key = "YOUR_KEY_HERE" config.site_id = "YOUR_SITE_ID_HERE" end client = AppointmentPlus.client
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)