function oauth_get()

in assets/www/scripts/photark_flickr.js [181:203]


function oauth_get(auth_token)
{
	method = 'flickr.auth.oauth.getAccessToken';
	sig_string=secret+'api_key'+api_key+'auth_token'+auth_token+'method'+method;
	console.log(sig_string);
	api_sig=$.md5(sig_string);
	url='http://api.flickr.com/services/rest/'+'?method='+method+'&api_key='+api_key+'&auth_token='+auth_token+'&api_sig='+api_sig;
	console.log(url); 
	$.ajax({
		url:url,
		success: function(data) {
					console.log(data);
					oauth_token = $(data).find("access_token").attr('oauth_token');
					oauth_token_secret = $(data).find("access_token").attr('oauth_token_secret');
					console.log(oauth_token);
					console.log(oauth_token_secret);
				},
		async:false
	});
	console.log(oauth_token);
	console.log(oauth_token_secret);
	get_userphotos(oauth_token,oauth_token_secret);
}