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

JavaScript Building with AngularJS and APIs

Dribbble API outdated - broken. Are you guys updating this tutorial?

Building and Angular JS app API tutorial - the Dribbble API is outdated

In the same boat. Trying to use their updated API parameters, etc. Help?

3 Answers

Kevin Fitzhenry
Kevin Fitzhenry
30,096 Points

I think Dribble has simply updated their API from http to https and added a "v1" parameter the the url.

Try this for http.jsonp -- 'https://api.dribbble.com/v1/shots/popular?callback=JSON_CALLBACK'

You can read about this in the Dribbble API overview page: http://developer.dribbble.com/v1/

Kevin Fitzhenry
Kevin Fitzhenry
30,096 Points

Nevermind, I think you do need a token. I am able to get the JSON object but the only value it has it "bad credentials" because I don't have a key / token...

Nilas Christensen
Nilas Christensen
2,762 Points

You can request a token on their site. then you just add "&access_token=000000" after the JSON_CALLBACK and replace the "0" with your own token.

melissa yip
melissa yip
6,952 Points

Looks like there's no "popular" route anymore. I used "http://api.dribbble.com/v1/shots?access_token=XXX&callback=JSON_CALLBACK" and it works. Replace XXX with your client access token.

Looks like the Dribble API is only accessible with an OAuth token now. From the docs:

"Please note that you must register your application and authenticate with either OAuth or your API client access token when making requests. Before doing so, be sure to read our Terms & Guidelines to learn how the API may be used."