Skip to content

pixta-dev/esa-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esa-ruby

[WIP] esa API v1 client library, written in Ruby

Installation

Add this line to your application's Gemfile:

gem 'esa'

And then execute:

$ bundle

Or install it yourself as:

$ gem install esa

Usage

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

Contributing

  1. Fork it ( https://github.com/esaio/esa-ruby/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

esa API v1 client library, written in Ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%