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 trialMarcos Raj
Courses Plus Student 5,979 PointsHow do i get the data from json file on local server? Please check code?
Please check the link, as the program is execute successful but not getting the images, please share me the reason for the same!
1 Answer
Masa Mune
Courses Plus Student 4,794 Pointsnice code, your code is much clearer than mine. i think your url is the problem:
line 7 : let url = "photo.json";
the API of flickr is : https://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?
->so you should have some thing like :
let url = "https://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?";