const googleAuth = require('google-auth-library'); const SCOPES = ['https://www.googleapis.com/auth/cloud-platform']; async function getAccessToken() { const serviceAccount = require('/path/to/service_account_key.json'); const jwtClient = new googleAuth.JWT( serviceAccount.client_email, null, serviceAccount.private_key, SCOPES, null ); return jwtClient.authorize().then((tokens) => tokens.access_token); }
top of page
Email Signature Logo.png
!
Widget Didn’t Load
Check your internet and refresh this page.
If that doesn’t work, contact us.
!
Widget Didn’t Load
Check your internet and refresh this page.
If that doesn’t work, contact us.
!
Widget Didn’t Load
Check your internet and refresh this page.
If that doesn’t work, contact us.
Screenshot 2021-01-23 212704.png
bottom of page