aboutsummaryrefslogtreecommitdiff
path: root/src/server/youtubeApi/youtubeApiSample.js
diff options
context:
space:
mode:
authorMohammad Amoush <mohammad_amoush@brown.edu>2019-07-23 19:17:03 -0400
committerMohammad Amoush <mohammad_amoush@brown.edu>2019-07-23 19:17:03 -0400
commit6cdebe507b777f60a0e30a1d7a75300304fbce09 (patch)
tree07e653dcd8fd60bc2def067d9b6f694ecfca65c2 /src/server/youtubeApi/youtubeApiSample.js
parentc86f580191ddf70a6ac2994819a4f33731d79011 (diff)
Refactor and flag
Diffstat (limited to 'src/server/youtubeApi/youtubeApiSample.js')
-rw-r--r--src/server/youtubeApi/youtubeApiSample.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/youtubeApi/youtubeApiSample.js b/src/server/youtubeApi/youtubeApiSample.js
index f81f0dfb5..9853241b6 100644
--- a/src/server/youtubeApi/youtubeApiSample.js
+++ b/src/server/youtubeApi/youtubeApiSample.js
@@ -28,7 +28,7 @@ module.exports.authorizedGetChannel = (apiKey) => {
}
module.exports.authorizedGetVideos = (apiKey, userInput, callBack) => {
- authorize(JSON.parse(apiKey), getSampleVideos, { userInput: userInput, callBack: callBack });
+ authorize(JSON.parse(apiKey), getVideos, { userInput: userInput, callBack: callBack });
}
module.exports.authorizedGetVideoDetails = (apiKey, videoIds, callBack) => {
@@ -141,7 +141,7 @@ function getChannel(auth) {
});
}
-function getSampleVideos(auth, args) {
+function getVideos(auth, args) {
let service = google.youtube('v3');
service.search.list({
auth: auth,