Configuring Google OAuth2 for WhatsApp API Chains
When creating certain chain templates (for example, a chain with Google sheets), an OAuth2 key and secret are required. This usually means that you need to add a token key so that the server can use it to access your project in Google and use its power to make requests. We chose this path because it saves you money - Google allows you to use part of the queries for free, often these capacities are enough for the implementation of the project.
To configure Google OAuth2:
1 - Create your new project in Google Cloud or select an existing one;
2 - Enable billing for correct operation;
3 - Go to the project libraries section, find and connect the library required for work. For example, if you are going to link WhatsApp API chains with Google natural language, then specify the Google natural language library.
Google will also remind you about the need to connect billing to the project.
4 - Next, you need to create or add a certificate. Go to the "Credentinals" section and click on the “Create credentinals" button at the top of the screen, select create OAuth Client id;
5 - If you are creating an OAuth2 key for the first time, then you will be prompted to set up a permission confirmation page from the user, if you already have an OAuth2 key created, go to item number 8;
6 - Select the external option for the user type;
7 - Then the procedure takes the following form:
Specify any name of the application;
Select your e-mail, specify the same e-mail under the address of the tester;
Click "next", click "next" again on the page with scopes;
In the tester, we create a tester with our e-mail - this is important;
Click next - we will be shown general information, click back to the dashboard and go back to creating the OAuth2 key in the Credentials section.
8 - Select the type of application Web application;
9 - Enter your own key name if you want to remember why you need it;
10 - Copy and paste the key and key secret into the initial setup. In the future, you can find these parameters again in editing the key. You are always free to revoke the key if you so wish.
Congratulations, you have set up Google OAuth2 for the WhatsApp API chain.