Webhook for Google Tasks - google-tasks

I have integrated Google Tasks APIs into my web application. The requirement is to sync the task between web application and Google.
So far, the Task in my web application is created and synced with the Google Tasks using the Google Tasks API. I want to add logic for syncing the tasks from Google Task to my web application. I have to call the Google Tasks APIs for each task periodically (let say, every 5 minutes) to check the task details and compare across the tasks in the web application and sync it. Calling Google Tasks API periodically consumes too many API calls and the per day quota is 50,000 calls as per google document. This exceeds or will exceed easily.
Quota Limit mentioned here
Requesting to increase quota is an option. But that can be done only if we know the exact or approx API call we require for the day. As it is difficult to estimate the count, I do not prefer to request for more quota.
I want an alternate solution like using a webhook that notifies me if any modification is made on Google Tasks. With that help I can retrieve only modified Google Task and sync back to my web application. This will subsequently consume fewer API calls.
I did some research for the webhook and I found this. But I am looking for the webhook provided by Google itself, similar to what they provide for google sheet.
Please help if anyone have integrated webhook for Google Tasks.

Related

Google Calendar API - 403 User Rate Limit Exceeded

We have a (verified) application integration with Google Calendar API.
For most of our users, it works perfectly fine. However, we have one particular user account that attempts to synchronize our application's calendar with their Google Calendar. The sync fails with the following message sent back to us via our Google libraries:
Could not sync events to Google Calendar:\nError calling POST https://www.googleapis.com/calendar/v3/calendars/REMOVED/events: (403) Rate Limit Exceeded
This corresponds to the documentation on usage limits.
We have already raised the per-user quota in the development console twice, and neither time did Google's developer console indicate our users were approaching anywhere near to the number of requests that would have led to an issue; we have bumped it significantly anyway.
The other suggestion on this page is the following:
If one user is making a lot of requests on behalf of many users of a G Suite domain, consider a Service Account with authority delegation (setting the quotaUser parameter).
Most of users likely do not have a GSuite domain, so this option is off the table.
Are there any other suggestions for how to handle this situation? Is there anything we can look at to resolve this issue for this user? Would using backoff necessarily resolve this situation? We are uncertain if this user's limit is only for their Google Calendar integration with our software, or if it's possible it relates to other Google services the user might utilizing (in which case backoff on our end would not make a difference). How can we determine the best course of action on this issue?

Google API Youtube V3 - Quota runs in no time

I'm building app that uses Google Youtube Data API V3
Everything is fine, except before I'm able to test app I run out of quota.
So hence my question is if I'm doing something wrong? Seems like daily quota does not allow me to query more than 100 search queries.
Which seems odd, cause even if trying to develop any kind of web app that uses API, I run out of quota and can't do anything in no time.
From what I found over quota calculators, a search is worth 100 points or so.
If I were to finish my App, then trying to release it to people would mean it will stop working after first few searches.
So is there anything I'm doing wrong here?

Can Google Calendar API be used to create scalable scheduling service?

I need to create a scheduler for my own SaaS, and I'm trying to understand whether Google Calendar API is a fit for that. Basically I could have hundreds of thousands of calendars. Each calendar may be a user of my service, but not a Google user. It seems that perhaps I could use resource calendars under my Google Cloud service account. My biggest concern is whether my usage will fall within the Calendar API's service quotas, either automatically or by requesting a quota increase?
Yes service accounts will fall within quota usage limits. There is also a limit about creating more then 25 calendars in a day causing the user to end up in read mode for the rest of the day.
pricing
Google Calendar API Usage Limits
The Google Calendar API has a courtesy limit of 1,000,000 queries per day.
To view or change usage limits for your project, or to request an increase to your quota, do the following:
If you don't already have a billing account for your project, then create one.
Visit the Enabled APIs page of the API library in the API Console, and select an API from the list.
To view and change quota-related settings, select Quotas. To view usage statistics, select Usage.
On the one hand, you could work around the quota issues by sharding your users across multiple Service Accounts. You would probably also want to shard them across multiple App IDs.
On the other hand, don't do it. In my experience, using Google APIs outside their intended use case doesn't end well.

Google play games quota - pricing and per app basis?

The google play api quota is 200K requests as per this page. Assuming that his number is per app (and not per user of app), then is this not too less for any viable app?
I am implementing an app that has realtime multiplayer mode, for which I plan to use use google play games. Assuming that two players share there progress 10 times in a game, that would mean 20 API calls per game (I have ignored the api calls to set room, invite etc etc). Thus less 10K games can be played in a day. If every player plays 10 games a day, that comes to a support of only 1000 active users.
Is there something wrong in my understanding of the quota, or is google play services really so prohibited? Is there any other solution that would reduce my api calls.
Also whats the cost for more api calls? And is there any alternative solution for multiplayer games?
THanks
You are referencing to the wrong API. The link you have provided is for the Google Play Developer API which is for subscription, in-app purchase and publishing. The API for sharing progress and other in-game API calls is the Google Play Games Services which has a default quota of 50000000 requests/day and in which the user can have 500 requests per second(The quotas can be seen in the Developer's Console). You could also see Managing Quota and Rate Limiting for other info about the quota and limits.

Is it possible to configure alerts for exceeding google API quotas?

I've been using the Google Cloud Console to manage API keys and settings. Some of the keys will be for commercially released products, so obviously we need to keep track of our API call quota.
Is it possible to set up alerts (email or otherwise) for nearing or exceeding the quota? We would prefer not to wait until a support request comes in, or try to remember to check the console every day.

Resources