Returns json data about a single user.
-
URL
-
Method:
GET
-
URL Params
Required:
api_key=[String]
-
Data Params
q=[String] limit=[Integer]
-
Success Response:
- Code: 200
Content:{ id : 1, name : "xyz" }
- Code: 200
-
Error Response:
- Code: 404 NOT FOUND
Content:{ error : "doesn't exist" }
OR
- Code: 401 UNAUTHORIZED
Content:{ error : "You are unauthorized to make this request." }
- Code: 404 NOT FOUND
-
Sample Call:
$.ajax({ url: "/users/1", dataType: "json", type : "GET", success : function(r) { console.log(r); } });