Setting up an authentication
When working with any Google Cloud AI service, we need to have either an API key or a service account key set up. In this section, we are going to set up both, so you can use any approach to explore. Before we set up the API key or a service account, we need to have a Google Cloud project. If you already have a project, you can skip this section.
Creating the project
To create a new project, follow the below steps:
- Navigate to Google Platform Console: https://console.cloud.google.com/
- Create a new project using the project selector menu form the top navigation bar of the page
- I have created a new project for this book named as
SmartExchange
and have given a custom project ID assmart-exchange-b10882
, you can pick which ever you are comfortable with
This is the project we are going to use for this book and we are going to enable all the required keys and APIs on this project.
Setting up API key
Now that we have a project, let's set up an API key first. Follow these steps...