Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (33 sloc) 1.131 kB
4973c29 @qrush port the rest of the docs
qrush authored
1 Users
2 =====
3
4 Get user
5 --------
6
7 * `GET /users/#{id}.xml` returns an existing user.
8
9 **Response:**
10
11 ``` xml
12 <user>
13 <id type="integer">1</id>
14 <name>Jason Fried</name>
15 <email-address>jason@37signals.com</email-address>
16 <admin type="boolean">true</admin>
17 <created-at type="datetime">2009-11-20T16:41:39Z</created-at>
18 <type>Member</type>
19 <avatar-url>https://asset0.37img.com/global/.../avatar.png</avatar-url>
20 </user>
21 ```
22
23 Get self
24 --------
25
26 * `GET /users/me.xml` returns the user making the API request.
27
28 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.
29
30 **Response:**
31
32 ``` xml
33 <user>
34 <id type="integer">1</id>
35 <name>Jason Fried</name>
36 <email-address>jason@37signals.com</email-address>
37 <admin type="boolean">true</admin>
38 <created-at type="datetime">2009-11-20T16:41:39Z</created-at>
39 <type>Member</type>
40 <avatar-url>https://asset0.37img.com/global/.../avatar.png</avatar-url>
41 </user>
42 ```
Something went wrong with that request. Please try again.