dimanche 10 juillet 2016

Need new code for yahooapis

Below are my code, but it's not working now. var u = 'c'; var query = "SELECT item.condition FROM weather.forecast WHERE location='MYXX0031' AND u='" + u + "'"; var cacheBuster = Math.floor((new Date().getTime()) / 1200 / 1000); var url = 'https://query.yahooapis.com/v1/public/yql?q=' + encodeURIComponent(query) + '&format=json&_nocache=' + cacheBuster; var query2 = "SELECT item.condition FROM weather.forecast WHERE location='MYXX0013' AND u='" + u + "'"; var cacheBuster2 = Math.floor((new Date().getTime()) / 1200 / 1000); var url2 = 'https://query.yahooapis.com/v1/public/yql?q=' + encodeURIComponent(query2) + '&format=json&_nocache=' + cacheBuster2; var query3 = "SELECT item.condition FROM weather.forecast WHERE location='MYXX0004' AND u='" + u + "'"; var cacheBuster3 = Math.floor((new Date().getTime()) / 1200 / 1000); var url3 = 'https://query.yahooapis.com/v1/public/yql?q=' + encodeURIComponent(query3) + '&format=json&_nocache=' + cacheBuster3;

Aucun commentaire:

Enregistrer un commentaire