Difference between revisions of "API:GET /user/:id"

From SoFurry
Jump to: navigation, search
(Created page with "= Resource URL = https://api.sofurrybeta.com/user = Request = GET /user/3 X-SoFurry-Token: 1:f23f4c181cc8b73a6b4b5d14b45ce79b {} = Response: Success = HTTP 200 {...")
 
(Resource URL)
 
Line 1: Line 1:
 
= Resource URL =
 
= Resource URL =
  
  https://api.sofurrybeta.com/user
+
  https://api.sofurrybeta.com/user/{id}
  
 
= Request =
 
= Request =

Latest revision as of 13:03, 25 April 2016

Resource URL

https://api.sofurrybeta.com/user/{id}

Request

GET /user/3
X-SoFurry-Token: 1:f23f4c181cc8b73a6b4b5d14b45ce79b
{}

Response: Success

HTTP 200
{
  "id": 3,
  "name": "user2",
  "email": "user2@sofurrybeta.com",
  "level": "user",
  "created_at": "2016-04-15 11:08:01",
  "updated_at": "2016-04-15 11:08:01",
  "activated_at": null,
  "bio": null
}

The resulting content will be a JSON object containing information about the authenticated user's profile.