holidayapi-ruby/README.md
Josh Sherman 3039177c42 Update README.md
Fixed typo
2016-08-31 16:30:59 -05:00

31 lines
471 B
Markdown

# ruby-holidayapi
Official Ruby library for Holiday API
## Installation
```shell
gem install ruby-holidayapi
```
## Usage
```ruby
require 'ruby-holidayapi'
hapi = HolidayAPI::V1.new('_YOUR_API_KEY_')
parameters = {
# Required
'country' => 'US',
'year' => 2016,
# Optional
# 'month' => 7,
# 'day' => 4,
# 'previous' => true,
# 'upcoming' => true,
# 'public' => true,
# 'pretty' => true,
}
response = hapi.holidays(parameters)
```