I’ll like to upload videos to youtube, I have correctly the token, but never uploads it , gives no error… it stops execution at line $status = $media->nextChunk($chunk); Here is my code: when executing the code, it outputs “YES 1YES 2” , never reaches echo “NOT REACHED”; line…. why? Can I add an exception or something to tell me the
Tag: google-api
Drive API uploaded file always has zero size with PHP client
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
Google Oauth request results in invalid grant error
We have an app with offline access_type token. Yesterday all queries were broken, because authorization failed resulted in a 400 Bad Request response: { “error”: “invalid_grant”, “error_description”: “Bad Request” }). We use SDK Google Ads API Client Library for PHP for any queries to API. Code example: App is in production in google cloud console. What have we already done:
Google Chat API. Can’t create space. Method not found
I’m trying to create a google chat space via making a post request to https://chat.googleapis.com/v1/spaces with Guzzle. In response I’m getting: But if I change the body of the request and add some new invalid fields like this: I’m getting the next response: docs: https://developers.google.com/chat/api/reference/rest/v1/spaces/create What’s wrong with my original request? Thanks. Answer The spaces.create documentation explains this at the
How fetch access token with auth code for google api using php?
I am working on google docs api and I want to send request and get the auth code which in exchange will give the access token. Below code is working fine but the problem is I have to copy the auth url and paste it to the browser and then from browser url, I am copying the auth code and
How we can insert header and footer in google docs with google docs api using PHP code
I want to insert header and footer in my google docs with google docs api in PHP code. I am doing it like this- but, i am getting this error- Please help me out with this, That how we can insert texts in header and footer in google docs using PHP. Answer In your script, how about the following modification?
How we can share a google docs link with others without requesting access using PHP?
Is it possible to share a google docs link to others so that they can see and edit my google docs without requesting access. I already gone through this link https://developers.google.com/drive/api/v3/reference/files for “webView link”. But I am not getting it how to use it in my code using PHP so that I can share my google docs without requesting access.
Convert Local Excel.xlsx File to Google spreadsheet Google DRIVE API
I am trying to convert a local Excel.xlsx file with all existent design, format and formulas existent in my local Excel file. How can I do that using Google API with PHP? What I was doing but not working was : But that is not working. How should I correct? Answer I believe your goal as follows. You want to
Client is unauthorized to retrieve access tokens using this method – Google calendar php api
I have read a lot of articles : Google Calendar API – PHP https://developers.google.com/calendar/quickstart/php and others.. I want to use the service account, I gave permissions for my calendar, I have downloaded the json key. If I use the code from Google, I got: missing the required redirect URI If i use the code: I have: Client is unauthorized to
codeigniter google login with existing gmail account creating duplicate row
I have implemented google login in existing user table in coeigniter. User can login whether with existing email and password or from google login. Everything working fine but i need to check with existing email. Suppose that gmail already in the database i need to update the oauth_provider and oauth_uid in the existing row. Right now creating new row for