Notes & Code Snippets

Read notes about design & development, or useful scripts and bits of code from me

Connecting to Flickr

November 19, 2013

Keywords: js javascript json

Keeping this for reference, settings needed to connect to Flickr's API
 
$.ajax({
	url: 'http://api.flickr.com/services/rest/',
	data: {
		method: 'flickr.people.getPublicPhotos',
		api_key: '4ef2fe2affcdd6e13218f5ddd0e2500d',
		user_id: '29096781@N02',
		format: 'json',
	},
	jsonp: 'jsoncallback',
	type: 'GET',
	dataType: 'jsonp',
	success: function(d){
		console.log(d);
	},
	error: function(e){
		console.log('error!');
		console.log(e);
	}
})

Back to top