Project

trell

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Simple Ruby wrapper for the Trello API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0

Runtime

~> 0.5.3
 Project Readme

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)