Questions tagged [google-php-sdk]
43 questions
1
vote
1 answer
Download google slide via google api with raw request
I am new to google developer's api, my goal is to download google slide from google drive to my server with raw request in php only not with the pdk sdk. I have done the following step:
1) I got access_token by authenticate process by giving all the…

lazyCoder
- 2,544
- 3
- 22
- 41
1
vote
0 answers
Google v3 API and Oauth - Do I need to use the json file?
In the official docs for the Google API and OAuth, it has you download a .json file that includes things like clientid, secret, redirect etc. Then it has you build your Google Client like this (I'm using PHP and offline access to interface with the…

Feature
- 163
- 1
- 1
- 6
1
vote
1 answer
"Access denied" exception is thrown, though the account has access
I'm using a service account to delegate domain wide security in order to pull a user listing from our Google Apps for Education instance via the Directory API and the PHP client library.
I'm fairly certain my service account has all the correct…

cesar.vega
- 13
- 3
1
vote
0 answers
YouTube API call fails, even though server’s IP address is white-listed
I’ve a simple PHP component that fetches videos from a public playlist on YouTube. I’m using Google’s official PHP SDK and authenticated with a server key (as I only need to access public data, not data in a user context).
Throughout development and…

Martin Bean
- 38,379
- 25
- 128
- 201
0
votes
1 answer
Using php to create authenticated request to an google endpoints
I am trying to figure out a way to create a JWT and sign it with the service account's private key and
Send the signed JWT in a request to the Google API Endpoint. I have search out there are numerous of the library available for Java and Python…

Piyush Sharma
- 591
- 7
- 9
0
votes
0 answers
Reduce size of Google & Facebook php SDK
I'm currently working on a plugin for wordpress, in which I have to use Google Analytics Reporting API and Facebook's Graph API.
Now everything is working fine with their respective php SDKs, the only problem is both are very large and not suitable…

Arman Khan
- 25
- 4
0
votes
0 answers
Gmail API using service account is getting delegation denied error message
I am developing a web-based application using Google API. I am using server-to-server which is obviously with a service account. I am almost done.
I can now insert new users through Google api. I can even create and/or give newly created users…

James
- 21
- 4
0
votes
1 answer
PHP Google API Client updating library problem
I have to update the google/apiclient package 1.0.*@dev to ^2.2.
I had this code in version 1.0:
$this->_client = new Google_Client();
$this->_client->setAssertionCredentials(new Google_Auth_AssertionCredentials(
'__ACCOUNT__',
…

lisi4ok
- 725
- 1
- 6
- 9
0
votes
1 answer
PHP Google_Service_Dataflow not finding file in bucket
I've come across an issue using the googleapis/google-api-php-client library, specifically the Dataflow Service that I cannot solve.
When I try to use the library I set up the request like so:
$this->client = new…

Asur
- 3,727
- 1
- 26
- 34
0
votes
1 answer
What is the URL to authenticate Gsuite users using curl?
I want to authenticate Gsuite users in order for them to be able to create groups from my company's application, I have to do so using CURL, what URL should I send a post request to?
For example, if I want to login a user to Google plus, I would hit…

Lynob
- 5,059
- 15
- 64
- 114
0
votes
0 answers
Login Through Google Cannot handle token prior to timestamp
My php
'cacert.pem']);
$g_client = new…

Lynob
- 5,059
- 15
- 64
- 114
0
votes
1 answer
Google OAuth authorisation of many people in one script
Good day! I have a small problem with Google OAuth. There is some application that needs to synchronize contacts from some database with Google Contacts. Accordingly, I have to authorize users in my application in Google Cloud People. So the…

AtCliff_
- 173
- 8
0
votes
0 answers
Refresh token is null from my google php client
I am trying to get refresh token for the authentication using Google_Client class. Here's how I am trying to do.
using package "google/apiclient": "^2.2",
$client = new \Google_Client($config);
$client->setAccessType("offline");…

Anand Siddharth
- 967
- 1
- 9
- 30
0
votes
0 answers
Missing listChildren method in php sdk 2.2.1
I'm using release version 2.2.1 (latest) of the google php sdk. I need to get a list of all the files/folders from a specific folder on drive. From Google's documentation the proper way to do this is explained here. But when I use their example…

Rodney
- 250
- 3
- 14
0
votes
1 answer
Google drive api upload User rate limit exceeded
I'm using PHP SDK to copy files to Google Drive, my account can use unlimited storage
After 300-500 files uploaded, User rate limit exceeded show up and i can't upload until next day
{
"code": 403,
"message": "User rate limit…

John Doe
- 245
- 3
- 14