From a96653452d4372a14d31512f666e524a769ed900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionic=C4=83=20Biz=C4=83u?= <bizauionica@gmail.com> Date: Wed, 11 May 2016 14:51:37 +0300 Subject: [PATCH] :arrow_up: 2.0.1 :tada: --- README.md | 24 ++++++------------------ package.json | 28 ++++++++-------------------- 2 files changed, 14 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index 700e47d..28a5a5d 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,7 @@ This is an example application how to use the [`youtube-api`](https://github.com 1. You need a [Google Account](https://www.google.com/accounts/NewAccount) to access the Google APIs Console, request an API key, and register your application. 2. [Register your application](https://console.developers.google.com/project) 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. - + 3. After registering your application, select **YouTube Data API** as one of the services that your application uses. - Go to the [APIs Console](https://console.developers.google.com/project) and select the project that you just registered. - Click on *APIs & auth* on the left side. Then a dropdown will be opened. @@ -25,23 +23,17 @@ This is an example application how to use the [`youtube-api`](https://github.com ## Installation and usage - 1. - Download this repository by running: - + 1. Download this repository by running: ```sh git clone http://github.com/IonicaBizau/test-youtube-api ``` - 2. - Enter in the downloaded directory and run `npm install`: - + 2. Enter in the downloaded directory and run `npm install`: ```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 <kbd>Create new Client ID</kbd>. This will create new OAuth 2.0 credentials: - + 3. Go back in your Google app and click again on *APIs & auth* and then select *Credentials*. + 4. Click <kbd>Create new Client ID</kbd>. This will create new OAuth 2.0 credentials: - Select *Web application* - Click <kbd>Configure consent screen</kbd> @@ -52,9 +44,7 @@ This is an example application how to use the [`youtube-api`](https://github.com - Home page is optional - Save the changes - - - Now you will have to set the auth urls. This test application uses the following urls: - + - 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) - Authorized redirect URIs: `http://localhost:5000/oauth2callback` (paste it in the second textarea) @@ -62,10 +52,8 @@ This is an example application how to use the [`youtube-api`](https://github.com - Finally, click <kbd>Create Client ID</kbd> - 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`. 2. Open `credentials.json` and replace `yourClientId` with the **client id** and `yourSecretKey` with **client secret** generated previously. 3. Now you are ready. Start the script (`npm start`) and open `http://localhost:5000`. diff --git a/package.json b/package.json index 6d51744..ebb4e1a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "test-youtube-api", - "version": "2.0.0", + "version": "2.0.1", "description": "Test Youtube API NodeJS module", "author": "Ionică Bizău <bizauionica@gmail.com> (http://ionicabizau.net)", "contributors": [ @@ -49,9 +49,7 @@ "You need a [Google Account](https://www.google.com/accounts/NewAccount) to access the Google APIs Console, request an API key, and register your application.", "[Register your application](https://console.developers.google.com/project) with Google so that it can submit API requests:", [ - { - "p": "After registering your application, select **YouTube Data API** as one of the services that your application uses." - }, + "After registering your application, select **YouTube Data API** as one of the services that your application uses.", { "ul": [ "Go to the [APIs Console](https://console.developers.google.com/project) and select the project that you just registered.", @@ -74,9 +72,7 @@ { "ol": [ [ - { - "p": "Download this repository by running:" - }, + "Download this repository by running:", { "code": { "language": "sh", @@ -85,9 +81,7 @@ } ], [ - { - "p": "Enter in the downloaded directory and run `npm install`:" - }, + "Enter in the downloaded directory and run `npm install`:", { "code": { "language": "sh", @@ -98,11 +92,9 @@ } } ], - "Go back in your Google app and click again on *APIs & auth& and then select *Credentials*.", + "Go back in your Google app and click again on *APIs & auth* and then select *Credentials*.", [ - { - "p": "Click <kbd>Create new Client ID</kbd>. This will create new OAuth 2.0 credentials:" - }, + "Click <kbd>Create new Client ID</kbd>. This will create new OAuth 2.0 credentials:", { "ul": [ "Select *Web application*", @@ -119,9 +111,7 @@ } ], [ - { - "p": "Now you will have to set the auth urls. This test application uses the following urls:" - }, + "Now you will have to set the auth urls. This test application uses the following urls:", { "ul": [ "Authorized JavaScript origins: `http://localhost:5000/` (paste it in the first textarea)", @@ -136,9 +126,7 @@ ] }, [ - { - "p": "OK, at this step you have the credentials (in your Google app). Now you have to use them in this test application:" - }, + "OK, at this step you have the credentials (in your Google app). Now you have to use them in this test application:", { "ol": [ "Rename `credentials.templ.json` into `credentials.json`.",