1. Register your application with Google

Posted: 24/12/2013 in Youtube API
Tags: , , ,

You need to register your application with Google to be able to use OAuth 2.0 authorization. The following steps explain how to register your application and create an OAuth 2.0 client ID to use in that application.

Create your project and select API services

Create a project in the Google APIs Console.

1. If you have not created a project before, the Console page displays a big Create project button.


2. If you have created a project before, you can create a new project via the Console menu shown below.


3. The console displays the Services pane, which shows a list of the Google API services that your application could use. Toggle the status for the YouTube Data API v3 service to ON. (You may need to read and accept a license agreement to complete this step for certain services.)

4. After enabling the services that your application will use, you can click on the API Access pane to retrieve your API key. API requests must specify an API key or an OAuth 2.0 token.


Create an OAuth 2.0 client ID

  1. Click the API Access pane in the navigation menu.


2. Click the Create an OAuth 2.0 client ID button.


3. Enter a product name for your application and, if you wish, a URL for your product logo. By default, we will use your email address as the support email for your application. You can change the email address by signing in to the API Console with a different account that has an email address that you have verified.


Click the Next button to proceed

4. Indicate whether your application is a web application or an installed application. If it is a web application, you will need to also provide a domain or hostname.


5. After you direct a user to Google’s authorization server, and the user logs in and decides whether to grant access to your application, Google will redirect the user to a redirect_uri that you specified.

  1. For web applications, you need to register the redirect_uri that your application uses with Google before you will be able to complete the steps needed to obtain OAuth 2.0 access tokens. You can register more than one redirect_uri.The Console will define a default redirect URI and a default, authorized JavaScript source. You can register additional redirect_uri values and add or change authorized JavaScript sources by clicking the more options link in the Client ID Settings window.
  2. Click the Create client ID button.

Refereed By : Google API’s


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s