An Unofficial Wakatime Ruby API Client
Add this line to your application's Gemfile:
gem 'wakatime'
And then execute:
$ bundle
Or install it yourself as:
$ gem install wakatime
@session = Wakatime::Session.new({
api_key: ENV['wakatime_api_key']
})
@client = Wakatime::Client.new(@session)
@client.summaries
@client.durations
@client.heartbeats
@client.current_user
@client.plugins
- Ensure your API Key is in a yaml file in spec/support/account.yml
- Fork it ( https://github.com/burningpony/wakatime/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Massive Credit to [Ruby Box][https://github.com/attachmentsme/ruby-box] as being a template API client.