Integrate API

Integrate API - Header

Sunday, December 15, 2013

How to get oAuth credentials from cloud.google.com

You will need oAuth credentials for many different applications. In order to use/inegrate google service like Google Calendar, Invite Gmail Contact Friends and ton others you need oAuth credentials like Client ID & Secret, Web Origin & Redirect URI. Here i show in very short how do you get oAuth 2.0 credentials in less then 5 minutes.

  1. Go to https://cloud.google.com/
  2. Click "Get Started"
  3. Enter a Project Name here(any name), copy and save your project id
  4. you are now entered into your project. in left menu < your-project means you are inside your project.
  5. In left menu click API & Auth->APIs. Turn ON(right side of page) Calendar API
  6. In left menu Click API & Auth->Registered Apps. Enter a name here(anything). Platform: Web Application. Click Register. Click "OAuth 2.0 Client ID". Enter http://www.only-domain.com as Web Origin and http://www.only-domain.com/testoAuth/path-to-dir/test-oauth.php as redirect URI. Click "Generate". You will get here Client ID and Secret. Click Download JSON to get all info at once.
  7. (Optional)in left menu click "Consent Screen". Enter information you wish to use.

No comments:

Post a Comment