google-api

How to run Google Embed API Server-side Authorization with PHP?

淺唱寂寞╮ 提交于 2020-05-11 17:33:06
问题 I am trying to run the Google Embed API Server-side Authorization demo, here: https://ga-dev-tools.appspot.com/embed-api/server-side-authorization/, but using PHP instead of Python for Step 3 (Using the JSON key data to request an access token). I have installed the Google API PHP client: https://github.com/google/google-api-php-client. I have created a Service Account (https://console.developers.google.com), enabled Analytics API for it, downloaded the JSON key file, and copied that to my

Is it possible to call APIs from service account without acting on behalf of a user in domain-wide delegation?

我的梦境 提交于 2020-05-11 11:58:54
问题 My Python script retrieves infos about users and groups from a G Suite (testing, for now, with the 14 days free account). I'm using domain-wide delegation and OAuth 2.0 for server to server applications because I don't want to display a pop window where users from hosted domains would allow me to see their groups and users. These are the steps I followed in order to get users and groups: create and download all the necessary credentials, such as Client ID; from my G Suite admin console, allow

Is it possible to call APIs from service account without acting on behalf of a user in domain-wide delegation?

て烟熏妆下的殇ゞ 提交于 2020-05-11 11:54:19
问题 My Python script retrieves infos about users and groups from a G Suite (testing, for now, with the 14 days free account). I'm using domain-wide delegation and OAuth 2.0 for server to server applications because I don't want to display a pop window where users from hosted domains would allow me to see their groups and users. These are the steps I followed in order to get users and groups: create and download all the necessary credentials, such as Client ID; from my G Suite admin console, allow

OAuth consent screen - ability to remove application logo

旧时模样 提交于 2020-05-11 03:47:20
问题 I added an application logo by mistake on the OAuth consent screen (URL: https://console.cloud.google.com/apis/credentials/consent), and now it says my consent screen requires verification by Google. Is there any way to remove the application logo from the consent screen? Edit: I didn't make it clear before but I wanted to remove the logo to get rid of the verification notice. 回答1: In order to delete the logo, follow these steps: Open the OAuth Consent Screen Configuration in Chrome or a

OAuth consent screen - ability to remove application logo

此生再无相见时 提交于 2020-05-11 03:45:52
问题 I added an application logo by mistake on the OAuth consent screen (URL: https://console.cloud.google.com/apis/credentials/consent), and now it says my consent screen requires verification by Google. Is there any way to remove the application logo from the consent screen? Edit: I didn't make it clear before but I wanted to remove the logo to get rid of the verification notice. 回答1: In order to delete the logo, follow these steps: Open the OAuth Consent Screen Configuration in Chrome or a

Is it possible to get the “Popular times” information through the Google Places API

人走茶凉 提交于 2020-05-09 21:15:11
问题 Is it possible to get the "Popular times" information through the Google Places API or any other API? I need this information to be displayed in my application for a particular place. 回答1: I haven't managed to test it myself but this is what populartimes offers to do in Python: import populartimes populartimes.get("your-api-key", ["bar"], (48.132986, 11.566126), (48.142199, 11.580047)) More info on developer's github. 回答2: This is one of the top feature requests in Google issue tracker (more

Is it possible to get the “Popular times” information through the Google Places API

好久不见. 提交于 2020-05-09 21:07:36
问题 Is it possible to get the "Popular times" information through the Google Places API or any other API? I need this information to be displayed in my application for a particular place. 回答1: I haven't managed to test it myself but this is what populartimes offers to do in Python: import populartimes populartimes.get("your-api-key", ["bar"], (48.132986, 11.566126), (48.142199, 11.580047)) More info on developer's github. 回答2: This is one of the top feature requests in Google issue tracker (more

How to dynamically add rows/columns to a Google Column Chart

守給你的承諾、 提交于 2020-05-09 18:00:14
问题 I want to create a Column Chart , using Google Visualization API , I can send the data to populate the chart's DataTable in array form. But I need to generate the chart with variable number of columns/rows , depending on what my arrays contain and i don`t know how to correctly iterate them and add them to the DataTable. Here is an example for parsing STATIC data to generate the chart : (all this is in javascript) var data = google.visualization.arrayToDataTable([ ['Year', 'Sales', 'Expenses']

Google PHP API too many files

感情迁移 提交于 2020-05-09 02:34:22
问题 I am trying to create a plugin for WordPress using the Google Analytics Reporting API v4 https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-php We need to load the Google API PHP Client Library require_once __DIR__ . '/vendor/autoload.php'; I have downloaded the latest release of Google API https://github.com/google/google-api-php-client/releases but the vendor folder contains more than 7000 files! My question is if I am doing something wrong here or I am

Google API: How to increase access token expiration date?

蓝咒 提交于 2020-04-30 16:34:31
问题 Google API expiration date is 1 hour, the problem is that I'm using the API in order allow users to use admin SDK features (List groups, add members to a group etc.) No one can do any of that in one hour, that would require users to login to their accounts multiple times per day to manage their groups. A 1 hour expiration date is good if you just want to use Google to authenticate users. How to increase that or is there any work around? Am I missing something? 回答1: Due to security reasons,