Sha256: 896096deb44c678d541ceb89b7e71a0b7aa767198aa51abe6f212c8f1dd6c044
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
# Liftapp::Client Ruby library to access the Lift.do API. Since there is not yet an official API, this library uses the undocumented mobile app API. ## Installation Add this line to your application's Gemfile: gem 'liftapp-client' And then execute: $ bundle Or install it yourself as: $ gem install liftapp-client ## Usage ##### Request your profile_hash ```ruby client = Liftapp::Client.new(email: 'neo@matrix.com', password: 'whiterabbit') data = client.login() puts data['profile_hash'] ``` ##### Request your subscribed habits ```ruby client = Liftapp::Client.new(email: 'neo@matrix.com', password: 'whiterabbit') data = client.dashboard puts data['subscriptions'].inspect ``` ##### Request checkin data for your habit ```ruby client = Liftapp::Client.new(profile_hash: 'e7fcd2db926273e895ef') data = client.checkin_data('3280') puts data[:checkins].inspect puts data[:'habit-name'] ``` ## 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
liftapp-client-0.0.2 | README.md |