Skip to content

Commit 49718f4

Browse files
authored
update weather key
1 parent ab57de3 commit 49718f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

weather-bot/weather-bot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ npm install node-fetch --save
399399
Vous allez devoir appeler l'<a href="https://developer.worldweatheronline.com/api/docs/" target="_blank">API worldweatheronline</a> afin de récupérer les informations météorologiques.
400400

401401
```javascript
402-
const response = await fetch(`http://api.worldweatheronline.com/premium/v1/weather.ashx?key=8c021b4e600b4cd8b24194452182606&q=${location}&format=json&date=${formattedDate}&lang=fr`);
402+
const response = await fetch(`http://api.worldweatheronline.com/premium/v1/weather.ashx?key=4cb957ddc2b84ab29a3151553181510&q=${location}&format=json&date=${formattedDate}&lang=fr`);
403403
const data = await response.json();
404404
const weatherData = data.data;
405405
```
@@ -414,7 +414,7 @@ class MeteoDialog extends PromptDialog {
414414
const formattedDate = `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`;
415415
const location = matchedEntities.location && matchedEntities.location.values[0].value;
416416

417-
const response = await fetch(`http://api.worldweatheronline.com/premium/v1/weather.ashx?key=8c021b4e600b4cd8b24194452182606&q=${location}&format=json&date=${formattedDate}&lang=fr`);
417+
const response = await fetch(`http://api.worldweatheronline.com/premium/v1/weather.ashx?key=4cb957ddc2b84ab29a3151553181510&q=${location}&format=json&date=${formattedDate}&lang=fr`);
418418
const data = await response.json();
419419
const weatherData = data.data;
420420

0 commit comments

Comments
 (0)