Users and Membership
Get User - GET /users/#{ID}.xml
This fetches a public representation of the user with only the name, job, and website attributes.
Response:
<user>
<id type="integer">1</id>
<job>Rails Monkey</job>
<name>rick</name>
<website></website>
</user>
Get Current User - GET /profile.xml
This fetches a public representation of the currently logged-in user
Response:
<user>
<id type="integer">1</id>
<job>Rails Monkey</job>
<name>rick</name>
<website></website>
</user>
Update User - PUT /users/ID.xml
Updates a user. This action can only be performed by the user.
Request:
<user>
<id type="integer">1</id>
<job>Rails Monkey</job>
<name>rick</name>
<website></website>
</user>
Response:
HTTP Status: 200 OK
Get Memberships - GET
/users/#{ID}/memberships.xml
This fetches membership details for a given user. Each membership object contains a full URL to either an account or an account's project.
Response:
<memberships>
<membership>
<id type="integer">1</id>
<user-id type="integer">1</user-id>
<account>http://activereload.lighthouseapp.com</account>
</membership>
<membership>
<id type="integer">2</id>
<user-id type="integer">1</user-id>
<project>http://activereload.lighthouseapp.com/projects/44</project>
</membership>
</memberships>
Get Project Memberships - GET
/projects/#{ID}/memberships.xml
This fetches a membership list for a given project.
Response:
<memberships>
<membership>
<id type="integer">1</id>
<user-id type="integer">1</user-id>
<user>
<id type="integer">1</id>
<job>Rails Monkey</job>
<name>rick</name>
<website></website>
<avatar-url></avatar-url>
</user>
</memberships>
Get Token - GET /tokens/#{token}.xml
This fetches a details on the given token.
Response:
<token>
<created-at type="datetime">2007-04-21T18:17:32Z</created-at>
<note>test 1</note>
<project-id type="integer"></project-id>
<read-only type="boolean">false</read-only>
<token>#{TOKEN}</token>
<user-id type="integer">1</user-id>
<account>http://activereload.lighthouseapp.com</account>
</token>