Test Youtube API NodeJS module
npm install test-youtube-api![PayPal][paypal-donations]    
> Test Youtube API NodeJS module
This is an example application how to use the youtube-api library and explore the YouTube API resources.
1. You need a Google Account to access the Google APIs Console, request an API key, and register your application.
2. Register your application with Google so that it can submit API requests:
3. After registering your application, select YouTube Data API as one of the services that your application uses.
- Go to the APIs Console and select the project that you just registered.
- Click on APIs & auth on the left side. Then a dropdown will be opened.
- Select APIs.
- Search for YouTube Data API v3, click it and click Enable API
1. Download this repository by running:
``sh`
git clone http://github.com/IonicaBizau/test-youtube-api
npm install
2. Enter in the downloaded directory and run :`
sh`
cd test-youtube-api
npm install
3. Go back in your Google app and click again on APIs & auth and then select Credentials.
4. Click Create new Client ID. This will create new OAuth 2.0 credentials:
- Select Web application
- Click Configure consent screen
- Complete the required fields:
- Product name: what ever you want (e.g. "Youtube API Test")
- Product logo is optional
- Home page is optional
- Save the changes
- Now you will have to set the auth urls. This test application uses the following urls:
- Authorized JavaScript origins: http://localhost:5000/ (paste it in the first textarea)http://localhost:5000/oauth2callback
- Authorized redirect URIs: (paste it in the second textarea)
- Finally, click Create Client ID
OK, at this step you have the credentials (in your Google app). Now you have to use them in this test application:
1. Rename credentials.templ.json into credentials.json.credentials.json
2. Open and replace yourClientId with the client id and yourSecretKey with client secret generated previously.npm start
3. Now you are ready. Start the script () and open http://localhost:5000`.
[MIT][license] © [Ionică Bizău][website]
[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
[donate-now]: http://i.imgur.com/6cMbHOC.png
[license]: http://showalicense.com/?fullname=Ionic%C4%83%20Biz%C4%83u%20%3Cbizauionica%40gmail.com%3E%20(http%3A%2F%2Fionicabizau.net)&year=2013#license-mit
[website]: http://ionicabizau.net
[contributing]: /CONTRIBUTING.md
[docs]: /DOCUMENTATION.md