DEV Community

codebangkok
codebangkok

Posted on

How to create Google OAuth2 API

  1. Go to https://console.cloud.google.com
  2. Sign in

  3. Country

  4. Checkbox

  5. Click - Agree and continue

  6. Click - Select a project

  7. Click - New Project or Select existing project

  8. Search - OAuth

  9. Click - OAuth consent screen

  10. For new user

  11. Click - Get started

  12. App name

  13. User support email

  14. Click - Next

  15. Choose - External

  16. Click - Next

  17. Email addresses

  18. Click - Next

  19. Checkbox

  20. Click - Create

  21. Click - Clients

  22. Click - Create client

  23. Application type - Web Application

  24. Name

  25. Click - Add URI (Authorized redirect URIs)

  26. URIs 1 - https://[host]/rest/oauth2-credential/callback

  27. Click - Create

  28. Copy - Client ID

  29. Copy - Client secret

  30. Click - OK


Product API

  1. Enable - Gmail API
  2. Enable - Google Drive API
  3. Enable - Google Docs API
  4. Enable - Google Sheets API
  5. Enable - Google Slides API
  6. Enable - Google Calendar API
  7. Enable - Google Tasks API
  8. Enable - Contacts API

Top comments (0)