A simple client to work with Youtube API.
npm install youtube-api-client 
A simple client to work with the Youtube API.
``sh`
$ npm install youtube-api-client --save
`js
import YoutubeAPI from 'youtube-api-client';
const youtube = new YoutubeAPI({
apiKey: 'YOUR_TOKEN_HERE'
});
youtube.getSearchResultsFor('Five Finger Death Punch');
`
`js
const youtube = require('youtube-api-client');
const youtube = new YoutubeAPI({
apiKey: 'YOUR_TOKEN_HERE'
});
youtube.getSearchResultsFor('Asking Alexandria');
`
`html
`
After that the library will be available to the Global as YoutubeAPI. Follow an example:
`js
const youtube = new YoutubeAPI({
apiKey: 'YOUR_TOKEN_HERE'
});
youtube.getSearchResultsFor('Angra');
`
> Follow the methods that the library provides.
> Search for youtube videos with provided query.
Arguments
| Argument | Type | Options |
|----------|---------|-------------------|
|query |string | 'Any search query'|
Example
`js``
youtube.getSearchResultsFor('Pink Floyd')
.then(result => {
// do what you want with the result
});
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
| !Caue Queiroz|
|:---------------------:|
| Caue Queiroz |
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details