Questions tagged [google-api-php-client]

The Google APIs Client Library for PHP provides access to many Google APIs. It is designed for PHP client-application developers and offers simple, flexible, powerful API access.

The Google APIs Client Library for PHP provides access to many Google APIs. It is designed for PHP client-application developers and offers simple, flexible, powerful API access.

Beta

This library is in Beta. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it. We will make an effort to support the public and protected surface of the library and maintain backwards compatibility in the future. While we are still in Beta, we reserve the right to make incompatible changes. If we do remove some functionality (typically because better functionality exists or if the feature proved infeasible), our intention is to deprecate and provide ample time for developers to update their code.

Requirements

  • PHP 5.2.1 or higher
  • PHP JSON extension

Note: some features (service accounts and id token verification) require PHP 5.3.0 and above due to cryptographic algorithm requirements.

Developer Documentation

Google APIs Client Library for PHP

GitHub

2080 questions
0
votes
1 answer

import google skd in cakephp 2

I'm a bit new to cakephp and I'm struggling to find a good tutorial which explains how to import the Google PHP SDK into my cakephp 2 project. I only want to use the Google+ bit to allow users to authenticate with Google. I've downloaded the SDK…
0
votes
1 answer

Why isn't G-Drive returning my files list?

I'm using the following code to connect and make my requests to G-API: require_once '/google-api/vendor/autoload.php'; putenv('GOOGLE_APPLICATION_CREDENTIALS=/mySecretFile.json'); $client = new…
0
votes
0 answers

Get list of shared calendars through Google Calendar API

I want to get a list of shared (not primary or resource) Calendars through Google Calendar API for PHP. I tried the following: (...) $service = new Google_Service_Calendar($client); (...) $calendarList =…
0
votes
1 answer

GoogleAnalytics API: Is there a way to get data by specific session id?

My goal: I want to save the session ID of Google Analytics (also need to figure out how to get that) with every order on my (PHP based) website & then use that in order to get additional data from GoogleAnalytics about this specific session (for…
0
votes
1 answer

Google API Data Tranfer Insert (Google Drive): Says completed, but nothing actually happens

I found a similar article here, but after a lot of testing, I'm still running into issues (Google API Data Transfer Insert: missing resource.applicationDataTransfer). Essentially I'm trying to transfer ownership of a Google Drive to another person. …
Ben R.
  • 1
  • 2
0
votes
1 answer

insufficientPermissions Google Analytics

I already have a google analytics account. so when I try to run HelloAnalytics.php following Hello Analytics API: PHP quickstart for service accounts It's…
0
votes
0 answers

How can I trigger a Google Apps Script function from the Google API PHP Client with the authentication I have set already?

I'm struggling to trigger a Google Apps Script Function which builds many dropdowns of a Google Spreadsheet. I need this data to be updated daily on this Google Spreadsheet so I must call the function. Seems like I'm required to have a client-side…
0
votes
3 answers

How to access google photos using api in php?

I want to fetch all the photos on Google photos on my web site using php. Is it possible?. I know Picasa Web Albums Data API deprecated. I have got try it from Picasa. but i am not able to download library from…
0
votes
1 answer

Google Drive API - export as HTML results in 500 Internal Error

I've been using the Google Drive API for several months to fetch the contents of a Google Drive Document that I created and export as HTML to embed within my web application. Sample code: $client = new…
0
votes
0 answers

Output link request only google_client / google drive

How to output link request only without download it? i already use htmlentities it keep download it don't want output the link directly without download. Secret Json file http://s000.tinyupload.com/index.php?file_id=86058541986944274128 and this…
daivd rush
  • 87
  • 6
0
votes
0 answers

Download google drive file with v3 api

The Google drive api seems confusing when it comes to downloading files. I've been able to list all of the files and even downloaded few files but got stuck while downloading Google docs. Why don't really they have common method for downloading a…
Basheer Kharoti
  • 4,202
  • 5
  • 24
  • 50
0
votes
0 answers

Google Calendar PHP api - empty token

I am trying to learn the google Calendar API and unfortunately I've hit a snag. I can't seem to get a the auth token to take. I've done the quickstart.php and it works using CLI, but I want a web based app that will add to the users calendar once…
0
votes
1 answer

PHP Google Calendar API not returning error string

I'm using a calendar which syncs both automatically and under request (if designated by user) with G!Calendar. All works fine, except that I need to check if the calendar ID provided by the user exists. For this I'm using: $cal = "GOOGLE CALENDAR…
0
votes
1 answer

google api client php 403 forbidden error

I use laravel 5.3 for this project. I have a google analytics api on an account and have another gmail account. I want to give access permission to api to second gmail account and I added it to users. i have a credential json file and all codes are…
0
votes
1 answer

Export to PDF only 1 sheet of the whole spreadsheet in PHP client

I have a web app that calculates quotations for building houses using a Google Sheet. Once the client completes a form with the inputs, I calculate the cost and generate a spreadsheet with the corresponding values to send to the client via…
1 2 3
99
100