aboutsummaryrefslogtreecommitdiff
path: root/src/server/youtubeApi/youtubeApiSample.js
diff options
context:
space:
mode:
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,