I want to access the live streaming of my Google nest camera using the Google Apis.
So far I've managed to:
- Register into Device Access Console
- Create a project inside the Google console
I was able to obtain authorization following the guide but, this is not how I want to gain access.
Is it not possibile to create a service account that authenticates without following the OAuth consent screen?
I tried to do this with a small js code using googleapis npm package
const scopes = ['https://www.googleapis.com/auth/sdm.service'];
const auth = new google.auth.GoogleAuth({
keyFile: './key.json',
scopes
});
const client = await auth.getClient();
google.options({ auth: client });
const sdm = google.smartdevicemanagement({
version: 'v1'
});
But it keep telling me that the enterprise id is not found. It seems to me that the service account is not linked to "Device access console".
I tried also to give Google Home Developer Console Admin
role to the service account.
Is there a way to link the service account?
Thanks