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.
- Go to https://cloud.google.com/
- Click "Get Started"
- Enter a Project Name here(any name), copy and save your project id
- you are now entered into your project. in left menu < your-project means you are inside your project.
- In left menu click API & Auth->APIs. Turn ON(right side of page) Calendar API
- 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.
- (Optional)in left menu click "Consent Screen". Enter information you wish to use.
No comments:
Post a Comment