-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.js
More file actions
37 lines (29 loc) · 855 Bytes
/
index.js
File metadata and controls
37 lines (29 loc) · 855 Bytes
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
var youtubeAPI = require('youtube-api');
var youtubeAPISimplifier = {
/**
* The Youtube-API Key which will be used for all Requests.
*
* @property {String} _APIKEY
* @private
*/
_APIKEY: '',
/**
* Setup function, needs to be called first!
*
* @method setup
* @param {String} apiKEY
*/
setup: function (apiKEY) {
this._APIKEY = apiKEY;
youtubeAPI.authenticate({
type: 'key',
key: apiKEY
});
},
channelFunctions: require('./lib/channel-functions'),
playlistFunctions: require('./lib/playlist-functions'),
searchFunctions: require('./lib/search-functions'),
videoFunctions: require('./lib/video-functions'),
activitiesFunctions: require('./lib/activities-functions')
};
module.exports = youtubeAPISimplifier;