forked from paulomcnally/youtube-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
46 lines (45 loc) · 3.99 KB
/
package.json
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
45
46
{
"name": "youtube-node",
"description": "Youtube API v3 client for nodeJS",
"version": "1.3.0",
"author": {
"name": "Paulo McNally",
"email": "paulomcnally@gmail.com"
},
"keywords": [
"youtube",
"videos",
"api"
],
"dependencies": {
"request": "2.53.0",
"prompt": "0.2.14",
"colors": "1.0.3"
},
"directories": {
"lib": "./lib/youtube"
},
"main": "./index.js",
"bin": {
"youtube": "./bin/youtube"
},
"bugs": {
"url": "https://github.com/paulomcnally/youtube-node/issues/new",
"email": "paulomcnally@gmail.com"
},
"repository": {
"type": "git",
"url": "git://github.com/paulomcnally/youtube-node.git"
},
"devDependencies": {
"should": "^4.3.0"
},
"gitHead": "8304e7d3bbd7af494e5ea9ee223326a32ca9065e",
"readme": "# youtube-node [![Dependency Status](https://david-dm.org/paulomcnally/youtube-node.png)](https://david-dm.org/paulomcnally/youtube-node) [![NPM version](https://badge.fury.io/js/youtube-node.png)](http://badge.fury.io/js/youtube-node)\n\n[![NPM](https://nodei.co/npm/youtube-node.png?downloads=true)](https://nodei.co/npm/youtube-node/)\n\n* YouTube API v3 - Require key ([video](https://www.youtube.com/watch?v=Im69kzhpR3I))\n* CLI\n\n## CLI\n\nFor use CLI need install youtube-node using -g param.\n\n $ npm install youtube-node -g\n\n#### CLI Example getById ( require key and video ID )\n\n $ youtube id\n\n\n#### CLI Example search (require key, query and maxResults)\n\n $ youtube search\n\n## Usage\n\n#### Installation\n $ npm install youtube-node\n\n#### Example search (search term, num results, results) return object\n var YouTube = require('youtube-node');\n\n var youTube = new YouTube();\n\n youTube.setKey('AIzaSyB1OOSpTREs85WUMvIgJvLTZKye4BVsoFU');\n\n youTube.search('World War z Trailer', 2, function(error, result) {\n if (error) {\n console.log(error);\n }\n else {\n console.log(JSON.stringify(result, null, 2));\n }\n });\n\nSee output: [https://gist.github.com/paulomcnally/620b76a9afe81f56e8c9](https://gist.github.com/paulomcnally/620b76a9afe81f56e8c9)\n\n#### Example getById (youtube id, result) return object\n var YouTube = require('youtube-node');\n\n var youTube = new YouTube();\n youTube.setKey('AIzaSyB1OOSpTREs85WUMvIgJvLTZKye4BVsoFU');\n\n youTube.getById('HcwTxRuq-uk', function(error, result) {\n if (error) {\n console.log(error);\n }\n else {\n console.log(JSON.stringify(result, null, 2));\n }\n });\n\nSee output: [https://gist.github.com/paulomcnally/50e0b96291c82b87009b](https://gist.github.com/paulomcnally/50e0b96291c82b87009b)\n\n#### Example related (youtube id, maxResults, result) return object\n\n var YouTube = require('youtube-node');\n\n var youTube = new YouTube();\n\n youTube.setKey('AIzaSyB1OOSpTREs85WUMvIgJvLTZKye4BVsoFU');\n\n youTube.related('hafhSaP_Nh4', 2, function(error, result) {\n if (error) {\n console.log(error);\n }\n else {\n console.log(JSON.stringify(result, null, 2));\n }\n });\n\nSee output:\n[https://gist.github.com/paulomcnally/ebab23c68c374723f28a](https://gist.github.com/paulomcnally/ebab23c68c374723f28a)\n\n#### Optional Parameters\n\n[https://developers.google.com/youtube/v3/docs/search/list#optional-parameters](https://developers.google.com/youtube/v3/docs/search/list#optional-parameters)\n\nTo set an optional parameter use:\n\n youTube.addParam('order', 'title');\n\n### For older version use:\n\n $ npm install youtube-node@0.0.4\n\n**Older version use API v2 and is not recommended**\n\n## Those who use it?\n* [http://sync.club/](http://sync.club/#dev-session)\n",
"readmeFilename": "README.md",
"homepage": "https://github.com/paulomcnally/youtube-node#readme",
"_id": "youtube-node@1.3.0",
"_shasum": "c8728e701a61bb85156fafa5e7941b0d4119be33",
"_from": "andreaswidmer/youtube-node",
"_resolved": "git://github.com/andreaswidmer/youtube-node.git#8304e7d3bbd7af494e5ea9ee223326a32ca9065e"
}