Build Status

todaysplan-ruby

A Ruby Library for TodaysPlan

This library is currently limited to only a few API calls needed. Feel free to do Pull Request to include additional calls.

Installation

Add the gem to your app

gem 'todaysplan-ruby', require: 'todays_plan

Usage

To authenticate with TodaysPlan API by setting the username and password variables

TodaysPlan.username = '[email protected]'
TodaysPlan.password = 'secret'
athletes = TodaysPlan::Athlete.all

or create a TodaysPlan client and pass the client to the method

client = TodaysPlan::Client.new('[email protected]','secret')
athletes = TodaysPlan::Athlete.all(client)

Testing

You can test live data by setting your credentials in todays_plan.yml. If this file exists, live connections can be made and log the response to the console.

---
username: '[email protected]'
password: 'secret'
endpoint: 
timeout: 120 
logger: 'stdout'
debug: true