Skip to content

johnakers/gannet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gannet

A RubyGem wrapp for AirNow's API

Installation

gem install gannet

or in your Gemfile...

gem 'gannet'

Configuration

You will need to set your AirNow api_key before making requests. You can get one here.

Gannet.configure do |c|
  c.api_key = 'YOUR_API_KEY'
end

Usage / Examples (TODO)

Once configured, you have access to the below methods. They correspond to the available endpoints, listed on AirNow's API.

query = { zipCode: 94118 }
Gannet::WebServices.forecast_zip_code(query)

# ... In Progress

Full documentation on what can be in query can be found in AirNow's API documentation here

About

RubyGem wrapper for AirNow

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages