Ruby library to access the Lift.do API. Since there is not yet an official API, this library uses the undocumented mobile app API.
Add this line to your application's Gemfile:
gem 'liftapp-client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install liftapp-client
client = Liftapp::Client.new('neo@matrix.com', 'whiterabbit')
# Log in with your email/password
puts client.profile_hash
data = client.dashboard
data['plans'].each do |plan|
puts plan['name'] + ": " + plan['id'].to_s
end
Cook: 1285
Connect: 20785
Create something: 2818
data = client.checkin_data('3280')
puts data['checkins'].inspect
puts data['habit-name']
data = client.dashboard
habit_id = data['plans'][1]['habit']['id']
client.checkin(habit_id)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request