Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Ajay Prasannan
16,124 PointsTreehouse profile JSON feed - can badges/courses be categorised?
I was wondering: Can the data objects representing badges and courses have a category field added? E.g. something like:
{
"id": 6322,
"category": "JavaScript",
"name": "Introduction to Methods",
"url": "https://teamtreehouse.com/library/objectoriented-javascript/introduction-to-methods",
"icon_url": "https://achievement-images.teamtreehouse.com/badges_javaScript_oojs_Stage1.png",
"earned_date": "2015-08-14T19:38:17.000Z",
"courses": [{
"title": "Object-Oriented JavaScript",
"url": "https://teamtreehouse.com/library/objectoriented-javascript",
"badge_count": 1
}, {
"title": "Introduction to Methods",
"url": "https://teamtreehouse.com/library/objectoriented-javascript/introduction-to-methods",
"badge_count": 1
}]
}
A mechanism like this would help greatly in allowing filtering/sorting of Treehouse achievements in apps consuming the data!