Get all users for a project

  1. Yes, you can use something like /projects/{projid}/memberships.xml but I'll have to see if Rick (technoweenie) can reply and give you some more detail, as I'm not the most knowledgeable of the Lighthouse API

  2. That is the xml that I need (works when i curl), I just can't figure out the ruby API for it, using active resource.

    I have tried getting it from the project itself, but there is no memberships relation.

    Any suggestions would be helpful. Thanks

  3. Just pushed an update to http://github.com/caged/lighthouse-api

    Lighthouse.account = 'activereload'
    Lighthouse.token = '...'
    p = Lighthouse::Project.find 44
    puts p.memberships.map { |m| "user_id #{m.user_id} can access #{m.url}" }
    
  4. Thanks for updating the ruby api. I was looking for something just like that.

  5. I'm having a little trouble getting a list of users for the purpose of scaring up the user name attached to a user-id.

    is there an easy way to get an array of users objects (as described in the API)?

    thanks

  6. Right now you have to query them individually. I should add a group method so you can get a bunch of them in one http call though.

  7. That would be WIN =)

  8. A Lighthouse ticket was created for this discussion

  9. brandi closed this discussion on 29 Jun, 2012 10:10 PM.

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

Recent Discussions