I’m trying to upload files into a google drive in a specific folder using a service account. It all appears to work – but the files always show up with 0 size. I’ve found a couple of very similar questions on here but none of the answers have worked. The code I’m using is: With {PARENT_ID} being the ID of
Tag: service-accounts
Updating spreadsheet data with Google Spreadsheet api and php suddenly not working with authentication error
In a form which takes input and updates the value in a spreadsheet. It was working fine before but suddenly stopped working with this error message: According to other questions and answers it is because of authentication problem, but the form was working for 5 years with the same authentication so it is confusing. Is there any other reason for
How to use Google Drive PHP Api with service account
I’ve written a series of functions to do things in Google Drive like copy folders, copy documents, get document content, etc. All of them work when I am authenticating as a particular user using OAuth….
Google Calendar API PHP | GOOGLE_APPLICATION_CREDENTIALS: file xxx.json does not exist
I’m pretty new at this but I’ve been trying to use the google calendar API to show upcoming events on a website I’m making. So far I’ve enabled the API and created a service account to access the …
OAuth2 token, message: ‘{ “error” : “access_denied” }’ returned when I try to update Google Calendar using OAuth (Service Account)
I am using Google Standard Library for PHP for using Calendar Service and I have set up a Service Account type for OAuth 2.0 Authentication through Google API Console. My main objective is to update …