My request is as follows:
const flickrApiPoint = "https://api.flickr.com/services/feeds/photos_public.gne";
try {
$.ajax({
url: flickrApiPoint,
dataType: 'jsonp',
data: { "format": "json" },
success: function (data) {
console.log(data); //formatted JSON data
}
});
}
catch (e) {
console.log(e);
}
However, I am encountering the following error:
Uncaught ReferenceError: jsonFlickrFeed is not defined
at photos_public.gne?&callback=jQuery331016421245174669186_1523107884637&format=json&_=1523107884638:1
Can someone please point out what I am doing wrong and how I can fix it? Thanks in advance!