google-api-php-client Questions

4

What's wrong with my request? I have string in russian: $string = Потенциал, % I want to translate it to ukrainian with google API: I urlencode string: $q = urlencode($string) And i request google...
Eerie asked 17/2, 2015 at 20:35

14

Solved

I am using Google's php api client. I am running through the quickstart guide for service accounts. I followed the steps perfectly (as far as I can tell). I am running into the following error: { ...
Sannyasi asked 2/1, 2018 at 6:17

11

Solved

I am currently facing a very strange problem, indeed I've been following this very same guide (https://developers.google.com/google-apps/calendar/quickstart/php) from Google API documentation. I tr...

5

I'm using the calendar.events.insert API to add an Event to my Calendar via the PHP client. The event is being inserted correctly along with appropriate values as set by the API. The same however i...

2

I'm trying to fetch the gmail inbox directly from backend by a cronjob, with no browser or oauth thing. here is the error i get Google\Service\Exception: { "error": { "code": ...

4

Once I am trying to use google search api it's showing me an error: Traceback (most recent call last): File "C:\Users\Maor Ben Lulu\Desktop\Maor\Python\google\google_Bot.py", line 1, in ...
Spartan asked 27/8, 2018 at 11:59

4

I use google-api-php-client library to access webmaster tools data. When I wanted to list sitemaps, it appeared Fatal error: Uncaught exception 'Google_Service_Exception'(403) User does not have su...

6

Solved

I am making a call to the google indexing API for job postings: private $client; private $httpClient; public function initClient($kernel) { $this->client = new \Google_Client(); $this->cl...

4

Solved

I am trying to use Google Oauth API to get userinfo. It works perfectly for Google Plus API but I am trying to create a backup in case the user doesn't have google plus account. The authentication ...
Prochora asked 22/12, 2012 at 23:49

5

Solved

I'm using the Google APIs Client Library for PHP for offline authentication, but when I use this code: $this->google->refreshToken($result["google_refresh_token"])); it returns NULL. $thi...
Blane asked 1/5, 2014 at 16:59

5

I have donwloaded new Gmail API source code from Google PHP client library. I inititalized the service using: set_include_path("./google-api-php-client-master/src/".PATH_SEPARATOR.get_inc...
Smashing asked 1/7, 2014 at 6:10

2

Solved

I'm working on a client web app where users can book drives with date, time, location...etc the client required that every booking is added as an event on his google calendar I created an API key...
Creigh asked 2/6, 2018 at 10:52

4

Solved

I am looking to implement a page view tracking system on one of my websites. The website is a directory where suppliers can advertise their services. Suppliers have a unique profile page on the si...

2

i'm using google-api-php-client to request an access token from the client 0auth flow, but it returns the error "Could not determine client ID from request". My code is below. My client_s...

6

Solved

I have the following code, modified from Google's documentation: $GOOGLE_APPLICATION_CREDENTIALS = "./[path].json"; $_ENV["GOOGLE_APPLICATION_CREDENTIALS"] = "./[path].json"; $_SERVER["GOOGLE_A...
Annisannissa asked 15/2, 2016 at 20:48

1

Solved

I am using PHP to get oauth token for FCM however the access token returned contains a lot of '....' $client= new \Google_Client(); error_log(__DIR__); $client->setAuthConfig(__DIR__ . '/servi...

2

I have a Google Sheets file shared with 1 user - owner (Gmail account) and 2nd user - writer (google service account like @iam.gserviceaccount.com). I use this function to copy a table from user 1 ...

2

Solved

I am about to start using Google's Calendar API where I am asking an access to my user's calendar. In the php docs example the token is being stored in a file (token.json), but in my case each user...
Elastomer asked 15/2, 2022 at 14:3

2

I have a php application that use OAuth2 to authenticate users to their account. until yesterday, everything worked very well. But today, and without changing my code, when I try to access to my ...
Buonarroti asked 4/11, 2015 at 13:33

2

I am using the Google drive v3 and try to export a Google Spreadsheet file to PDF. Almost everything works like expected. Exception: the generated PDF is always in format LETTER and PORTRAIT, but ...
Ingrained asked 8/12, 2021 at 7:17

5

I am following with the article below, https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/web-php But in the end, when I try with the sample code (HelloAnalytics.php),...

3

Solved

I'm trying to work with the php client of google Oauth2 api to validate an id_token. The id_token is provided by a javascript app on which the user login his google account, and i'm givin this toke...
Tubman asked 16/4, 2014 at 9:4

2

Solved

I'm trying to update and get some results from google sheets, it's working but slow. I need to batchUpdate and get the data. This is my script foreach ($import_cels as $celu => $valoare) { $r...
Copepod asked 5/7, 2018 at 16:44

2

I want to access the locations associated with my account and their reviews, for that I am using the google my business API and I have access to it (it does work on oAuthplayground). Now I want to...
Insomniac asked 21/11, 2016 at 12:53

1

I'm creating a Google Doc to HTML converter, I want to use the Doc Api and not export it as HTML using the Drive Api : $service = new Google_Service_Docs($client); $request = $service->documen...

© 2022 - 2025 — McMap. All rights reserved.