Keep this info open in a browser tab for the next step. Once we’ve filled in the necessary fields we should be able to see our credentials back in the Credentials section. Clicking Create will generate a client ID and client secret. We do not need to enter an authorized redirect URI. For a local development environment this will likely be or similar. Select Web application as the application type and enter at least one authorized JavaScript origin. Click Create and Google will generate an API key.įor the OAuth client ID, click once more on New credentials and select OAuth client ID. However, for production I’d recommend adding a HTTP referrer (this will prevent abuse of our API key from non-authorized domains). On the following page we need only fill in the name field. Now we need to create two sets of credentials: a browser API key and an OAuth client ID.įor the browser API key select API key then Browser key. From here we need to pop out the hamburger navigation menu and choose API Manager, then in the sidebar on the left we need to choose Credentials, before clicking on the New credentials button on the following page. Clicking Create will take us to the new project dashboard interface. Navigate to the Google Developer Console and create a project. Since we last looked at the Gmail API, Google have changed the user interface for the API management console - so here’s a quick update on how to create the necessary Gmail API credentials. This will allow us to create applications which utilise Gmail functionality. The first step is to set up the Gmail API on your Google account. Enabling the Gmail API on Your Google Account
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |