On Jan 10, 2020, at 9:51 AM, 'Olu' via Google App Engine <google-a...@googlegroups.com> wrote:
I think using Firebase Realtime Database to send real-time updates might be applicable in your setup and it works well with App Engine(Standard). I suggest you go through this doc[1].
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/602eb9d0-d46f-45cd-91dd-a59eddd0ef88%40googlegroups.com.
And a related issue. I have some code that this app successfully uses to connect to the google analytics API. I tweaked that code for firebase as follows:
from oauth2client.service_account import ServiceAccountCredentialsfrom httplib2 import Httpcredentials = ServiceAccountCredentials.from_json_keyfile_name(CLIENT_SECRETS, scopes=['https://www.googleapis.com/auth/firebase.database', 'https://www.googleapis.com/auth/userinfo.email'])http = Http()http_auth = credentials.authorize(http)But that gives 401 errors. I would guess that I need to enabled an API on the console, but I can’t figure out which one to enable. I enabled “Firebase Storage” but that didn’t help.What API do I need to enable to get that scope authorized?-Joshua
On Jan 10, 2020, at 3:19 PM, Joshua Smith <mrjoshu...@gmail.com> wrote:
This looks very promising, and I’m playing with it now. Getting the permissions set up is hard, though.At first, I simply tried to create a firebase project associated with the GAE project that’s going to dump data there. I was able to do that, but it won’t let me create a realtime database because my GAE project has a database of its own.So then I tried creating a brand new thing. And that works, except I can’t figure out how to give my GAE project permission to read/write to it. If I try to add it’s “@appspot.gserviceaccount.com” email as a User with Editor permission, it just gives an error.Any idea how I can give my GAE project permission to authenticate against a different Firebase project?
-Joshua
On Jan 10, 2020, at 9:51 AM, 'Olu' via Google App Engine <google-appengine@googlegroups.com> wrote:
I think using Firebase Realtime Database to send real-time updates might be applicable in your setup and it works well with App Engine(Standard). I suggest you go through this doc[1].--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/936d054a-fb51-4fbf-b379-52692a8c1f8c%40googlegroups.com.