Google Contacts
Allows you to automate via API the addition of contacts to your WhatsApp account for further use of contacts when adding to a group, as well as starting new private conversations.
Getting an integration token
Go to Integrations and select the Google Contacts block.
Select a channel and click the "Give permission to the application" button.
You will be redirected to give permission for our application to Google. IMPORTANT: Choose the Google Account to which your phone's contacts are synchronized!
Synchronize Google with your phone contacts, which will add unfamiliar numbers to the group. To do this on your phone, go to "Accounts" and select your Google profile. Next, open the Account Synchronization tab. Activate the toggle switch next to "Contacts". Click the button in the form of three dots, and then select the "Synchronize" option. If everything is done correctly, the list of subscribers will be immediately uploaded to the Google Contacts servers.
After giving permission, you will be taken back to the integration page, now there is a new field: your token for requests to Google. Copy it!
Use this token when generating a request
Adding contacts
POST
https://tools.whapi.cloud/integrations/google_people/addContacts
The request will require specifying a Header with the name Authorization and the value "Bearer channel Token"
Body:
Resetting a token and getting a new one
POST
https://tools.whapi.cloud/integrations/google_people/removeToken
The request will require specifying a Header with the name Authorization and the value "Bearer channel Token"
After resetting the token, we advise you to completely disable the old integration to avoid creating any errors in the future. To do this, delete the old integration with the Whapi.Cloud app in the accessibility settings of your Google account. You can do this by following this link: https://myaccount.google.com/connections?filters=3
Now that all the old information has been reset - you can get a new token again!
Last updated