Replies: 2 comments 2 replies
-
hi, hope have a good day |
Beta Was this translation helpful? Give feedback.
-
I feel like there are unsaid things in the various API docs. @hossein-askari83 do you mean the account for admin.google.com ? I don't think we have this, yet we are running a company with a hundred websites. I tried with the console.cloud.google.com admin and I get :
I have created the service account, shared the agenda with it and added its key file and calendar ID to the config file to no avail. I am pretty sure the doc is missing something. |
Beta Was this translation helpful? Give feedback.
-
I'm building a simple implementation for get link and send invitation of diferentes meetings but I have had mistake with API when create a new envent with addAttendee and addMeetLink recive next error of http:
{ "error": { "errors": [ { "domain": "calendar", "reason": "forbiddenForServiceAccounts", "message": "Service accounts cannot invite attendees without Domain-Wide Delegation of Authority." } ], "code": 403, "message": "Service accounts cannot invite attendees without Domain-Wide Delegation of Authority." } }
my code:
`
`
config:
oauth-credentials
{ "web": { "client_id": "-----key----", "project_id": "coral-lightning-414519", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_secret": "----key----" } }
oauth-token
{ "access_token": "---key---" }
{ "type": "service_account", "project_id": "coral-lightning-414519", "private_key_id": "---key---", "private_key": "-----key----, "client_email": "partner@coral-lightning-414519.iam.gserviceaccount.com", "client_id": "---cliend---", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/partner%40coral-lightning-414519.iam.gserviceaccount.com", "universe_domain": "googleapis.com" }
env:
GOOGLE_CALENDAR_ID=key GOOGLE_CALENDAR_IMPERSONATE=partner@coral-lightning-414519.iam.gserviceaccount.com GOOGLE_CALENDAR_AUTH_PROFILE=service_account
alson I was folliwing this instrunction but I dont have good result
https://stackoverflow.com/questions/60760959/google-calendar-api-service-account-error
Beta Was this translation helpful? Give feedback.
All reactions