[WIP] esa API v1 client library, written in Ruby
Add this line to your application's Gemfile:
gem 'esa'
And then execute:
$ bundle
Or install it yourself as:
$ gem install esa
client = Esa::Client.new(access_token: "<access_token>", current_team: 'foo')
client.teams
#=> GET /v1/teams
client.team('bar')
#=> GET /v1/teams/bar
client.posts
#=> GET /v1/teams/foo/posts
client.current_team = 'foobar'
client.post(1)
#=> GET /v1/teams/foobar/posts/1
client.update_post(1, name: 'baz')
#=> PATCH /v1/teams/foobar/posts/1
client.delete_post(1)
#=> DELETE /v1/teams/foobar/posts/1
- Fork it ( https://github.com/esaio/esa-ruby/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