Recent Updates

Rick's Avatar

Rick

07 Aug, 2007 05:09 AM

I've updated the Lighthouse API lib to go with the recent updates. Some bugs were fixed, and Ticket tagging support is available:


t = Lighthouse::Ticket.new(:project_id => 1)
t.tags << 'defect' << '@high'
t.tags.delete '@high'
t.save

You can also get very basic info for users, like me.

You can query your own user's memberships with ACCOUNT.lighthouseapp.com/users/USER-ID/membership.xml

Finally, you can get the basic token information with ACCOUNT.lighthouseapp.com/tokens/TOKEN-KEY.xml


token = Token.find("MY-TOKEN")
user = User.find token.user_id
user.memberships.each do |m|
  if m.attributes['account']
    puts "account: #{m.account}"
  else
    puts "project: #{m.project}"
  end
end

Grab the library from svn.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac