I am calling the Translate API, but don't need any User Information, and the only solutions I have found involve the User signing in with Google.
What's the easiest way to get the Auth Token for repeated use of the Translate API through a Custom Action?
Is this code snippet close to what I should be looking for?
final response = await http.post( // 'https://oauth2.googleapis.com/token', // body: { // 'client_id': 'YOUR_CLIENT_ID', // 'client_secret': 'YOUR_CLIENT_SECRET', // 'redirect_uri': 'YOUR_REDIRECT_URI', // 'code': code, // 'grant_type': 'authorization_code', // },
Easiest Way To Generate Google API Auth Token
Database & APIs
I have tried to find a solution to either generate a refresh token or look into service accounts, but I am having a hard time understanding both.
No
1