google-client

What is the difference between the two Google JS client CDN's?

*爱你&永不变心* 提交于 2019-12-21 05:41:14
问题 A) <script src="https://apis.google.com/js/api:client.js"></script> versus B) <script src="https://apis.google.com/js/client.js"></script> The only differnence being the api: before client.js . CDN A is used in the Google Sign-In for Websites docs in the Building a button with a custom graphic section. CDN B is used almost in the Google API Client Library for JavaScript (Beta) docs. They both appear to work interchangeably. 回答1: Short answer: there is no difference Long answer: The Google JS

Google Analytics API how to retrieve next page of data

非 Y 不嫁゛ 提交于 2019-12-13 18:18:23
问题 I'm using the Google Analytics API to retrieve reporting data for one of my profiles. If the number of rows in the report exceeds 1000, the response contains 1,000 results plus a parameter called nextPage , which contains a URL for the next page of data. I am confused how to actually use this URL in order to retrieve the data. What API method to I use to actually get the next page of data. Here's my code: $client = new Google_Client(); $client->setApplicationName('Google Analytics'); // name

Code Servlet to Read/Write Google Sheets Data

非 Y 不嫁゛ 提交于 2019-12-13 03:36:46
问题 I'm writing a Servlet that reads and writes data in a Google Sheets doc. The doc is owned or shared with the account of the user hitting the Servlet, so they must authenticate using OAuth2. I wrote a commandline (Java) application that works to get access using the Google API Client Library. I generated a client ID of Application Type "other". Then I wrapped that application in a Servlet extends HttpServlet (running in standalone Jetty). The flow stalls at Credential credential = new

“insufficient permissions” when trying to get Google Spreadsheet meta info

懵懂的女人 提交于 2019-12-11 20:58:43
问题 I'll be needing to add data to an existing ~1000-record spreadsheet row by row soon. I thought I want to make my life easier by making a small PHP page that would show me a row's data and provide me with a form to add the data I want to that row. the spreadsheet is in Drive so that leads me to the Drive API! :) I've downloaded the Google API client manager and got to work with the OAuth 2.0 example (that shortens a URL). That all worked great, but now I'm trying to fetch some metadata off the

Can't refresh access token for Google Calendar API on server side

走远了吗. 提交于 2019-12-11 15:49:11
问题 My client application on iOS authorizes the user and receives the access token and the refresh token and sends it to my server, where it is stored in the database. The server connects to the calendar and get the events. The problem is that the access token is not refreshed in any way using the refresh token and this error is returned: { "error": "unauthorized_client", "error_description": "Unauthorized" } public function sync($token, $expiresIn, $refreshToken, $created) { $client = new Google

Can I access other Google User's Calendars through the Google API v3

一笑奈何 提交于 2019-12-11 11:39:59
问题 I would like to build an application that manages appointments in Google calendar on behalf of my users when they are not logged in. The application would be a booking service, subscribing users (our service providers) would book out the times they are not available, and customers would see a free/busy representation of the service provider's google calendar The application would need the ability to create, delete, and read appointments. I have gone to the Google Developer's Console and have

unable to connect to my google endpoints with my service object

风流意气都作罢 提交于 2019-12-08 04:41:38
问题 I have generated my client library from my endpoints, and also passed the appropriate credential (the client ID is 100% correct) for my authenticated call to the endpoints. But I am still getting this error when I run my codes: com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAuthIOException at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential$RequestHandler.intercept(GoogleAccountCredential.java:286) at com.google.api.client.http

Validating Google sign in ID token in Go

为君一笑 提交于 2019-12-05 12:00:31
I am finding the way to validate ID token for Google sign-in for Android with a Go backend server project. What is the equivalent function for validating ID tokens by using a Google API Client Library in Go? From this page on Using a Google API Client Library section https://developers.google.com/identity/sign-in/android/backend-auth#using-a-google-api-client-library There are Java and Python examples and there are links for verify ID tokens with the Google API Client Library for PHP, Node.js, and other languages. I checked for my target language; Go here https://github.com/google/google-api

What is the difference between the two Google JS client CDN's?

自作多情 提交于 2019-12-03 20:35:51
A) <script src="https://apis.google.com/js/api:client.js"></script> versus B) <script src="https://apis.google.com/js/client.js"></script> The only differnence being the api: before client.js . CDN A is used in the Google Sign-In for Websites docs in the Building a button with a custom graphic section. CDN B is used almost in the Google API Client Library for JavaScript (Beta) docs . They both appear to work interchangeably. Short answer: there is no difference Long answer: The Google JS client CDN is a bit weird because the actual JS you get is dynamically created based on the file name you

Failed to connect to www.googleapis.com port 443: Network unreachable

心不动则不痛 提交于 2019-11-29 08:14:30
I'm trying to implement google sign-in in my website that is written in Symfony2 using Google Client API . I followed the instructions here , but when I call $client->authenticate($code); command an exception is thrown telling that: Failed to connect to www.googleapis.com port 443: Network unreachable What is the problem? Solution 2 (from update). it seems to be some bug with ipv6 interfaces and curl with php, so another solution is to set the appropiate option in curl function to connect to the remote server with ipv4 in your php script curl_setopt( $curl, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4