In the Google Drive API there are "watch" endpoints that allow 3rd parties be notified when there are changes via push notifications.
In particular, I'm trying to keep my service's class roster in sync with Google Classroom, and would like to avoid polling if possible. Are there any such endpoints in Classroom API, or any other way to be notified without polling?
In September 2017, Google introduced push notifications for roster changes. You can now listen to these notifications to get notified when student/teachers are added/removed from the class roster.
Google 09/2017 update on introducing the feature -
https://support.google.com/edu/classroom/answer/6149237?hl=en
Google Classroom API documentation about Push notifications-
https://developers.google.com/classroom/guides/push-notifications
The Classroom API currently does not offer this feature. You can star this feature request to indicate your interest and be notified if/when it's developed in the future!
Related
I want to listen programmatically when an event I created on the Google calendar is updated (like when someone accept/reject an invite) and I want to receive the relevant info regarding the event (type, confirmed/declined attendees, etc). I've tried using zapier and so far it does the job. Is there a native way to do that using Google API? I've also tried using Google calendar push notifications but the data I've received from the webhook isn't sufficient for my use case. Thanks!
You should be able to do this with a small Google Apps Script.
Their documentation explains the process of listening for a calendar change event. Then, you'll need to perform an incremental sync with the Calendar Sync API and handle the specifics of the event based on how you want.
Note that more simply, a webhook may suffice for your use case.
I need to add server side logic when a user buys and cancels a subscription. To me this seems like a basic feature that many apps probably use. However as it turns out it's not that simple to setup up the need webhooks.
My App will be available on android and iOS, so I will need to configure both, which is why I thought about using RevenueCat. But it turns out, this is a paid feature for $110/month, which is way too much for a/my new app. This is probably the biggest time saver for RevenueCat compared to using the official InApp Purchases packages, so I don't see why they would make it a paid feature.
Anyways what the best way to handle webhooks with the Play Store and the App Store? Any Guides and Tipps would be very helpful!
Apple and Google both offer server-to-server notifications that will notify you when a subscriber cancels.
Apple guide: Enabling Server-to-Server Notifications
Google guide: Real-time developer notifications
If you have your own user Ids, they won't be present in these server notifications so on your server you can save the user Id along with the transaction identifier of their original purchase. That way when a notification comes in you can look up the user from the transaction identifier and flag them as cancelled.
Alternatively, the RevenueCat API is included on their free plan so you can periodically poll their GET /subscribers endpoint to get the latest subscription status for a user. This obviously won't be real-time, but may be enough for your use-case.
Update: I decided to solve this issue similar as #enc_life suggested with the RevenueCat API. For validation the purchase, I send a request to my server, that checks with if the user actually bought the subscription. For canceling the subscription, I execute a function everyday on my server, that checks for all subscribers if the subscription is still valid.
I'm using google calendar API using google service account from my server.
I was able to send notifications for any event that was added or updated on the calendar.
Also, I shared the calendar with "normal" google account, so I can also add events to that calendar manually.
Recently i Noticed notifications are no longer sent from that calendar (which belongs to the google service account). Tried both by calling the API and manually using google calendar UI.
What i'm missing? Any recent changes to the calendar API can cause this?
Thanks
We would like to create a google Calendar add-on/plugin/extension that will let us push the event to our cloud hosted application when creating or editing an event in Google calendar.
We have a cloud hosted application that our clients use. One of the features in our application is events. Our clients would like to have this feature wherein they can push any event from their Google Calendar to our application. We have been trying and searching but while its possible to create such add-ons for gmail and google docs, we cannot find anything for calendar. It will help if someone can point us to a way by which we can achieve this. Thanks.
Our app has already implemented in-app purchase.
But, we previously don't keep track of it, and only relies on the google's service whether a user's level is premium or regular.
Now, we want to track it in our server as well.
Is it possible to get the users data who've bought our subscriptions? (especially his/her email)
Based from the following documentations, there is no currently existing method to get a list of your app's subscriber's.
Google Play Developer - API Reference
In-app Subscriptions
Currently existing features with Google Play Developer API is that, it offers an HTTP-based API that lets you perform such tasks as:
Remotely query the validity of a specific subscription at any time
Cancel a subscription
Defer a subscription's next billing date
Refund a subscription payment without canceling the subscription
Refund and revoke a subscription
The API is designed to be used from your backend servers as a way of securely managing subscriptions, as well as extending and integrating subscriptions with other services.
For complete information, you may go through Google Play Developer API.