jQuery $.getJSON - How do I parse a flickr.photos.search REST API call?

后端 未结 4 909
借酒劲吻你
借酒劲吻你 2021-01-31 06:15

Trying to adapt the $.getJSON Flickr example:

$.getJSON(\"http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jso         


        
4条回答
  •  [愿得一人]
    2021-01-31 06:41

    To access the Flickr API you must use https: //:

    var url = "https://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=YOURAPIKEYHERE&tags=yokota+air+base&safe_search=1&per_page=20";
    var src;
    

提交回复
热议问题