Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

linyows/trell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trell

Simple Ruby wrapper for API. API documentation: https://trello.com/docs/api

Gem Version Build Status Dependency Status Code Climate Coverage Status

Installation

Add this line to your application's Gemfile:

gem 'trell'

Or install it yourself as:

$ gem install trell

Usage

Reading public data

member = Trell.member 'foo'
=> #<Sawyer::Resource:0x007f971230f538
member.fullName
=> "foo123456"

Authentication

Generate a application key and a application token

`open #{Trell.key_generator}`
#=> get application key by browser
`open #{Trell.token_generator}`
#=> get application token by browser

Trell.configure do |c|
  c.application_key = '429452e37b7eb23182ec12**********'
  c.application_token = '1cf2e7a22edf6ad8e967aa31a60947dc9ad2e0bf90d5********************'
end

Reading private data

member = Trell.member 'me'
=> "invalid token\n"
member = Trell.member 'me'
=> #<Sawyer::Resource:0x007fdf537f07d0
member.fullName
=> "my full name"
member.bio
=> ""
member.idBoards
=> ["4e79823242c330ede8*****",
 "518b1a7f47e4c61d310*****",
  "5313d1b1239bbeb31a1*****"]
member = Trell.update_member 'me', bio: 'hi'
=> #<Sawyer::Resource:0x007fcca26189f8
member.bio
=> "hi"

Contributing

  1. Fork it ( http://github.com/linyows/trell/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 new Pull Request

Authors

License

The MIT License (MIT)

About

Simple Ruby wrapper for the Trello API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages