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 trialnfs
35,526 Points(JUST CURIOSITY) Is there any such thing as a "Treehouse API"?
I mean there are APIs of websites like Facebook, Twitter, and others. But is there a teamtreehouse API??? I know this sounds dumb, but.... if there had been one then what could it possibly do?
5 Answers
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,350 PointsYes there is! You can pull your personal treehouse badges and user information from a JSON file like so:
https://teamtreehouse.com/nafisfuad.json
Here is a link how to access it:
https://teamtreehouse.com/community/treehouse-badges-website-widget
nfs
35,526 PointsThank you... I suspected as much...
nfs
35,526 PointsThank you, Steven Parker... That's awesome. Now I'm thinking of something else. Can't we just automate the process? I've gone through the whole discussion that Dale Severude, pointed to. And I've been seeing a lot of things like how much we need to think of changes and updating things....
Steven Parker
231,184 PointsDo you mean automate the topic/color array? You could, but it means at least one more data fetch and this API is a bit slow as it is.
nfs
35,526 PointsI see... Thanx again Steven Parker.
Steven Parker
231,184 PointsHi, I got your request. But it looks like Dale beat me to it!
But you may want the colors for the 9 topic areas that have been added since Ethan posted his widget on Codepen:
colors['C#'] = '#9e4d83'; // added here down 17.09.22.sp
colors['Databases'] = '#eb7728';
colors['Game Development'] = '#20898c';
colors['Data Analysis'] = '#645a7e';
colors['Security'] = '#C66C5D';
colors['Go'] = '#375eab';
colors['APIs'] = '#993c50';
colors['Virtual Reality'] = '#95D26C';
colors['Quality Assurance'] = '#80438E';