How to Install Python from command line and Docker on Windows
Introduction We will see how we can install Python 3.7 on Windows without UI. i…
March 04, 2018
This library is ES6, promise compatible.
Or, in your package.json file, include: youtube-api-es6 by running commmand:
npm install youtube-api-es6
const youtubeService = require('youtube-api-es6').youtubeService;
const youtubeConfig = {
key: 'Your key'
};
return youtubeService.init(youtubeConfig)
.then(function() {
return youtubeService.getVideoDetail('a7hGVtz8syM');
})
.then(function(res) {
console.log(JSON.stringify(res, null, 3));
});
const youtubeService = require('youtube-api-es6').youtubeService;
const youtubeConfig = {
key: 'your key'
};
youtubeService.init(youtubeConfig);
// playlistId: 'xxx',
type: 'video'
};
<h3>getVideoDetail(videoId, detailOptions)</h3>
Get video details. Second parameter is optional: detailOptions, and by default it returns details for levels: snippet,contentDetails,topicDetails,statistics.
You can also pass which level of details you want in this parameter. Each level should be passed comma separated.
Example:
```js
getVideoDetail(1234, 'snippet,statistics');
Use api:
getVideoDetail(videoId, 'snippet')
const youtubeService = require('youtube-api-es6').youtubeService;
const youtubeConfig = {
key: 'Your key'
};
return youtubeService.init(youtubeConfig)
.then(function() {
return youtubeService.getVideoDetail('a7hGVtz8syM', 'snippet');
})
.then(function(res) {
console.log(JSON.stringify(res, null, 3));
});
Introduction We will see how we can install Python 3.7 on Windows without UI. i…
This article shows some of common usages of JIRA rest apis. Note: This article…
Introduction You have a running kubernetes setup, and have a webservice (exposed…
Visual Studio Code is one of the awesome developer tools by Microsoft. Let’s…
Introduction In this guide, We will get basic understanding of various options…
Introduction In this post we will see following: How to schedule a job on cron…
Introduction There are some cases, where I need another git repository while…
Introduction In this post, we will see how to fetch multiple credentials and…
Introduction I have an automation script, that I want to run on different…
Introduction I had to write a CICD system for one of our project. I had to…
Introduction Java log4j has many ways to initialize and append the desired…