Where is the items & badge_counts documentation?
This is returned as JSON. I am using the /me/associated query function.
1 Answer
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
-
There should be new page for items (my suggestion is api.stackexchange.com/docs/types/items) like network_user - Stack Exchange API is for network_useramit jha– amit jha2015-06-22 05:54:16 +00:00Commented Jun 22, 2015 at 5:54
-
Can't really document
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– Brock Adams2015-06-22 06:40:14 +00:00Commented Jun 22, 2015 at 6:40