Flickr API Example

Developer
Size
2,291 Kb
Views
14,168

How do I make an flickr api example?

Used to demo the flickr api to co-workers. Uses yql and ajax to retreieve the flickr feed per http://kylerush.net/blog/tutorial-flickr-api-javascript-jquery-ajax-json-build-detailed-photo-wall/,. What is a flickr api example? How do you make a flickr api example? This script and codes were developed by Marty Powell on 15 September 2022, Thursday.

Flickr API Example Previews

Flickr API Example - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flickr API Example</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="county-photo-feed">
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://martypowell.com/js/mustache.js'></script> <script src="js/index.js"></script>
</body>
</html>

Flickr API Example - Script Codes CSS Codes

img { border: 1px solid lightgray; margin: 5px; padding: 5px;
}

Flickr API Example - Script Codes JS Codes

var template = "{{#.}}<img src='http://farm{{farm}}.static.flickr.com/{{server}}/{{id}}_{{secret}}_q.jpg' />{{/.}}", flickrUrl = "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20flickr.photosets.photos%20where%20api_key%3D%22ee58ce6536e4b39a95ebdf000ae4adf3%22%20and%20photoset_id%3D%2272157649564338091%22%20limit%208&format=json&diagnostics=true&callback=";
$.getJSON(flickrUrl, function(data) { formatData(data.query.results.photo);
});
var formatData = function (data) { var html = Mustache.render(template, data); $('.county-photo-feed').html(html);
};
Flickr API Example - Script Codes
Flickr API Example - Script Codes
Home Page Home
Developer Marty Powell
Username martypowell
Uploaded September 15, 2022
Rating 3
Size 2,291 Kb
Views 14,168
Do you need developer help for Flickr API Example?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Marty Powell (martypowell) Script Codes
Create amazing web content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!