-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
44 lines (39 loc) · 1.21 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//? IMPORTING FILES
const meme = require("./components/meme");
const headlines = require("./components/headlines");
const keyword = require("./components/keyword");
const {weather,weatherByLatLon,weatherByZip, weatherByCityId, weatherByRectZone} = require("./components/weather");
const food = require("./components/food");
//?dotenv configuration
require('dotenv').config();
//sortBy-> relevancy, popularity
const weatherKEY = process.env.WEATHER_KEY;
const foodKEY = process.env.FOOD_KEY;
const newsKEY = process.env.NEWS_KEY;
const foodID = process.env.FOOD_KEY;
//? CALLBACK FUNCTION
// const callback = (data) => {
// console.log(data);
// return data;
// }
//? API CALLS
// meme(callback);
// keyword(callback, key);
// food(callback, foodID, foodKEY, fname)
// weatherByCityId(callback,weatherKEY,"2172797");
// weatherByLatLon(callback,weatherKEY,"55.5","37.5","10");
// weatherByZip(callback,weatherKEY,"94040","us");
// weatherByRectZone(callback,weatherKEY,"12,32,15,37,10");
// weather(callback,weatherKEY,weatherCity);
// headlines(newsKEY,"sports","in");
module.exports={
meme,
headlines,
keyword,
food,
weather,
weatherByCityId,
weatherByLatLon,
weatherByRectZone,
weatherByZip
}