HTTP Verb: GET

Available statuses:200 OK, 204 No Content, 403 Forbidden, 404 Not Found

Object: n/a

Location: n/a

Formats: binary

Returns a user profile picture.

Params

No options available

Example

Request a user picture, using cURL utility:

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

HTTP/1.1 200 OK
Server: nginx/0.8.55
Date: Thu, 10 Jan 2013 13:15:27 GMT
Content-Type: image/jpeg
Connection: keep-alive
Content-Length: 31004
Status: 200
X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.17
Content-Transfer-Encoding: binary
Content-Disposition: inline; filename=download
...

The result of this operation is binary data of an image.

Responses

  • 200 OK, success
  • 204 No Content, user has no picture uploaded
  • 403 Forbidden, no permissions to view the picture
  • 404 Not Found, internal error picture can’t be found