Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //je sais qu'il y a pas de fonction main mais niktaras
  2. function main() {
  3.     getLocation(photoIdMain, function(location){
  4.         if(location.nom == "dans ta mere"){
  5.             location.personnes.pute["ta grosse daronne"].poutrer();
  6.         }
  7.     });
  8. }
  9.  
  10.  
  11. function getLocation(photoId, callback){
  12.     $.ajax({
  13.         url : 'https://api.flickr.com/services/rest', // Ressource ciblée coté serveur
  14.         type : 'GET',
  15.         dataType : 'json', //Le type de données à recevoir, ici, du json.
  16.         data : 'method=flickr.photos.geo.getLocation&format=json&nojsoncallback=1&api_key=92380bd93f69cbdfd19dad7ceb96dcfc&photo_id='+photoId,
  17.         success : function(result){
  18.             if (result.stat !== "fail"){
  19.                 location = new Object();
  20.                 location.latitude = result.photo.location.latitude;
  21.                 location.longitude = result.photo.location.longitude;
  22.                 callback(location);
  23.             }
  24.         },
  25.         error : function(resultat, statut, erreur){
  26.             console.log(erreur);
  27.         },
  28.         complete: function(result){
  29.         }
  30.     });
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement