Where is the items & badge_counts documentation?
This is returned as JSON. I am using the /me/associated query function.
Asked
Active
Viewed 49 times
2
Brock Adams
- 12,901
- 5
- 38
- 64
amit jha
- 842
- 4
- 11
1 Answers
4
items is documented in the Common Wrapper Object. It is an array of whichever object the given route returns.
In the case of /me/associated, items is an array of network_user objects.
If you use a filter that returns .wrapper.type, then type will return the type that items has assumed. EG:
{
"items": [ // <=== Linked
{
"badge_counts": {
"bronze": 123,
"silver": 72,
"gold": 8
},
"question_count": 11,
"answer_count": 1241,
...
},
...
],
"quota_max": 10000,
"total": 36,
"type": "network_user" // <=== Linked
}
badge_counts is documented in the badge_count object and is just an object with 3 integer properties:
Fields
bronze integer
gold integer
silver integer
Brock Adams
- 12,901
- 5
- 38
- 64
itemsmore than it already is, becauseitemsis an array that has a different type for each different API route. What else would you put in the doc page? – Brock Adams Jun 22 '15 at 06:40