Skip to content

Instantly share code, notes, and snippets.

@judy-zz
judy-zz / authenticate_fitbit.rb
Last active December 11, 2015 17:08
Load data from Livestrong MyPlate (or any other source) into FitBit.
require 'oauth'
require 'launchy'
require 'yaml'
require_relative 'weights'
@consumer = OAuth::Consumer.new ENV['FITBIT_KEY'], ENV['FITBIT_SECRET'],
{:site=>"https://api.fitbit.com"}
@request_token = @consumer.get_request_token
@auth = {}