No commit activity in last 3 years
No release in over 3 years
API wrapper for Pearson Kitchen Manager
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

PearsonKitchenManager

API wrapper for Pearson Kitchen Manager

Installation

Add this line to your application's Gemfile:

gem 'pearson_kitchen_manager'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pearson_kitchen_manager

##Requirements

A Pearson account and API key. You can see your API keys here.

Usage

pkm = PearsonKitchenManager.new("your_api_key")

Note: In an effort to simplify PearsonKitchenManager, you can use 'MAILCHIMP_API_KEY' in the environment variable instead of passing it. Fetching data is as simple as calling API methods directly on the wrapper object. The API calls may be made with either camelcase or underscore separated formatting as you see in the "More Advanced Examples" section below.

Check the API documentation for details.

Fetching Recipes

For example, to fetch your first 100 recipes (offset 0):

recipes = pkm.recipes({offset: 0, limit: 100})

Fetching Recipe

For example, to fetch your first 100 recipes (offset 0):

recipe = pkm.recipes(url_extension: "recipe_id")

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request