Login into your Zoho API Console: https://api-console.zoho.com/
Select "Add Client".
Select "Self Client".
Once there, type:
ZohoCRM.modules.ALL,ZohoCRM.settings.ALL
Select "Time Duration": 10 minutes
Scope Description: Aiwifi Connection

Click "Create", and then select "CRM" and your Account Name, this will create a one time code which you will use to get the first token.
Go to the Client Secret tab within the Self Client window and copy both codes

On a Mac computer, open a Terminal window and type the following, replacing the data you obtained from the previous steps.:
curl -X POST "https://accounts.zoho.com/oauth/v2/token" \
-d "code=YOUR_GENERATED_CODE" \
-d "client_id=YOUR_CLIENT_ID" \
-d "client_secret=YOUR_SECRET" \
-d "redirect_uri=https://aiwifi.io" \
-d "grant_type=authorization_code"
This will output a refresh token. Copy the Refresh Token and the Client_ID and Client_Secret with the Aiwifi team. They'll do the rest.