Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

first-pj

<!DOCTYPE html>
<html>
<head>
<title>Try jQuery Online</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>


var url = "https://api.flickr.com/services/rest/";
var api_key = "c3478c8127e776fc838eb9a759367843";
var user_id = "52495277@N05";
var reqParams;

function getUserPhotosets() {
    var reqParams = {
        "method": "flickr.photosets.getList",
        "api_key": api_key,
        "user_id": user_id,
        "format": "json",
        "nojsoncallback": 1
    };
    $.getJSON(url, reqParams, getPhotosets);
}
 
function getPhotosets(data, status) {
    $.each(data.photosets.photoset, function(index, photoset){
        $("div ul").append("<li> <a href='https://www.flickr.com/photos/52495277@N05/albums/" + photoset.id +"'>" + photoset.title._content + "</a>" + photoset.visibility_can_see_set + "</li>");
    });
    
    $("div").append(status);
}
    //    $("div").text(data.photosets.photoset[2].title._content);
    //https://www.flickr.com/photos/52495277@N05/albums/72157683431222634

$(function() {
    getUserPhotosets();
});


</script>
</head>
<body>

<div>
    <ul>
        
    </ul>
</div>
    
</body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.