HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: User

Location: n/a

Formats: XML, JSON

Returns a user profile.

Params

No options available

Examples

Request JSON, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/users/_id_or_login.json

Response

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Mon, 17 Sep 2012 09:00:17 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

{
  "phone":"112233",
  "login":"test_1",
  "name":"Firstname Lastname",
  "id":"bLGGlS_Lyr4BonadbNA33N",
  "organization":"Assembla",
  "im":{"type":"Skype","id":"dsa"}
}

JSON is formatted here for readability, in a real response JSON body is inline with no indentation.

Request XML, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/users/_id_or_login.xml

Response

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Mon, 17 Sep 2012 09:02:30 GMT
Content-Type: application/xml; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Status: 200
...

<?xml version="1.0" encoding="UTF-8"?>
<user>
  <phone>112233</phone>
  <login>test_1</login>
  <name>Firstname Lastname</name>
  <id>bLGGlS_Lyr4BonadbNA33N</id>
  <organization>Assembla</organization>
  <im>
    <type>Skype</type>
    <id>dsa</id>
  </im>
</user>

Description for each field: user object fields reference