Campfire API

Users

Show

GET /users/#{id}.xml

Returns an existing user.

Response

Status: 200 OK

<user>
  <id type="integer">1</id>
  <name>Jason Fried</name>
  <email-address>jason@37signals.com</email-address>
  <admin type="boolean">true</admin>
  <created-at type="datetime">2009-11-20T16:41:39Z</created-at>
  <type>Member</type>
  <avatar-url>https://asset0.37img.com/global/.../avatar.png</avatar-url>
</user>

Show authenticated user

GET /users/me.xml

Returns the user making the API request. This end-point may be requested using
the username and password, rather than the API token. This makes it easier for
applications to obtain the typically-obscure API token on mobile platforms,
where it is inconvenient to have to key in all 40 characters of the token.

Response

Status: 200 OK

<user>
  <id type="integer">1</id>
  <name>Jason Fried</name>
  <email-address>jason@37signals.com</email-address>
  <admin type="boolean">true</admin>
  <created-at type="datetime">2009-11-20T16:41:39Z</created-at>
  <type>Member</type>
  <avatar-url>https://asset0.37img.com/global/.../avatar.png</avatar-url>
</user>