google-api

Webmasters API - Quota limits

最后都变了- 提交于 2021-01-27 05:54:59
问题 We're trying to download page data for sites using the Webmasters API .NET Client Library, by calling WebmastersService.SearchAnalytics.Query() . To do this we are using Batching and sending approx. 600 requests in one batch. However most of these fail with the error "Quota Exceeded". The amount that fail varies each time but it is only about 10 of the 600 that work (and it varies where they are within the batch). The only way we can get it to work is to reduce the batch size down to 3, and

How do I retrieve user's email from Google

梦想的初衷 提交于 2021-01-27 03:51:38
问题 I am using the Google client library in PHP. I am successfully authenticated. Missing a simple thing (I added the right scope). How do I retrieve the user's email after I finish the auth process. Below is what I have: $client = new Google_Client(); $client->setClientId(MYCLIENTID); $client->setClientSecret(MYSECRET); $client->setRedirectUri(SOMEURLINMYSYSTEM); $service = new Google_Service_Oauth2($client); $client->addScope(Google_Service_Oauth2::USERINFO_EMAIL); $client->authenticate($_GET[

Getting permission denied error while uploading image on Google Drive by Google Drive API Javascript

荒凉一梦 提交于 2021-01-07 02:45:39
问题 This is the code to upload image on my Google Drive, then get the url and delete if needed and it was working perfectly. function uploadImageInFolderAndGetVisibleDocURL(imgName, url) { return new Promise(function(resolve, reject) { const fileName = imgName; var folderId = '01220GsMOG727b2TxnSB_7zkgAFcygd'; fetch(url).then(res => res.blob()).then(blob => { const form = new FormData(); form.append('metadata', new Blob([JSON.stringify({name: fileName, parents: [folderId]})], {type: 'application

How to use Google API credentials on Heroku in Spring Boot Project

隐身守侯 提交于 2021-01-07 02:21:22
问题 I have followed official documentation to achieve this. But I'm still facing issue. I'm doing spring boot project. below is my code, @Configuration public class FirebaseConfiguration { // database url, other urls // other codes... @Value(value = "classpath:google-credentials.json") private Resource gservicesConfig; @Bean public FirebaseApp provideFirebaseOptions() throws IOException { FirebaseOptions options = new FirebaseOptions.Builder() .setCredentials(GoogleCredentials.fromStream(

How to use Google API credentials on Heroku in Spring Boot Project

淺唱寂寞╮ 提交于 2021-01-07 02:21:17
问题 I have followed official documentation to achieve this. But I'm still facing issue. I'm doing spring boot project. below is my code, @Configuration public class FirebaseConfiguration { // database url, other urls // other codes... @Value(value = "classpath:google-credentials.json") private Resource gservicesConfig; @Bean public FirebaseApp provideFirebaseOptions() throws IOException { FirebaseOptions options = new FirebaseOptions.Builder() .setCredentials(GoogleCredentials.fromStream(

How to improve my YouTube video upload data v3 [duplicate]

六月ゝ 毕业季﹏ 提交于 2021-01-07 01:20:51
问题 This question already has an answer here : The request cannot be completed because you have exceeded your quota (1 answer) Closed 21 days ago . I have the following problem. Google recently limited my queries per day to 10,000 and I'm looking to increase or decrease my chunksize. I honestly don't know how much I need to increase / decrease to use a few queries per upload, follow the code below that I did: HTML and javascript code Arquivo Escolher arquivo Enviar </div> <div id="authorize

Why google Calendar event not being created with stored access token and refresh token in php

瘦欲@ 提交于 2021-01-05 07:41:36
问题 I have successfully integrated google OAuth 2.0 with Calendar permissions and I am storing access token and refresh token in the database, after that fetch both token. do not know what wrong I am doing the Calendar event not being created. <?php include($_SERVER["DOCUMENT_ROOT"]."/config.php"); include($_SERVER["DOCUMENT_ROOT"]."/functions.php"); require 'vendor/autoload.php'; function getClient($useremail) { $client = new Google_Client(); $client->setApplicationName('Google Calendar API PHP

Error while creating google calendar event with a service account

穿精又带淫゛_ 提交于 2021-01-04 07:17:12
问题 I have a requirement of creating a google calendar event on a calendar and add other users as attendees to that event. The objective is to send calendar events to the application users without taking their consent ( O-Auth ). After reading Google's documentation, I found out that I need a service account. So I created a project and a service account from one of the email addresses of our G-Suite, noreply@xxxxx.com and enabled calendar API for the same. I created and downloaded a key pair (

Google News XML API: use country/language parameters

爱⌒轻易说出口 提交于 2021-01-03 04:16:30
问题 I would like to subscribe to an RSS/XML feed from Google News that captures the following query: Articles mentioning "studie" (German for "study"), written in German, emanating from any country. I'm using https://news.google.com/rss/search, but for this example, it's easier to see the UI output at https://news.google.com/search, so I'll use the latter URL base in this example. Now, in the XML API reference, Google mentions four different parameters that influence either language or country:

Google News XML API: use country/language parameters

无人久伴 提交于 2021-01-03 04:15:07
问题 I would like to subscribe to an RSS/XML feed from Google News that captures the following query: Articles mentioning "studie" (German for "study"), written in German, emanating from any country. I'm using https://news.google.com/rss/search, but for this example, it's easier to see the UI output at https://news.google.com/search, so I'll use the latter URL base in this example. Now, in the XML API reference, Google mentions four different parameters that influence either language or country: