API Endpoint: Get A User's Badges
Get all the badges a user has earned.
Request
GET /api/0.1/user/{userid}/badges Route Parameters
| userid | Required. Integer. The userid of the user to retrieve. Can be obtained from a call to /api/users. |
GET Parameters
| jsonp | Optional. String. The name of a Javascript function to call with the results. See JSONP. |
Example Request
/api/0.1/api/1.0/user/4/badges
Example Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | [
{
"badgeid":50,
"name":"Artisan",
"type":"gold",
"category":"badgeGuide",
"description":"1,000 people successfully follow your guides",
"multiple":false,
"times_earned":1
},
{
"badgeid":39,
"name":"Founding Father",
"type":"gold",
"category":"badgeGuide",
"description":"Start a guide that gets 15,000 views",
"multiple":true,
"times_earned":2
},
...
]
|