google-app-engine

How to manage multiple accounts login and logout in different browser pages?

夙愿已清 提交于 2020-01-23 15:21:25
问题 I have a website built on App Engine(Java) and need user use Google Account to login. The situation is that: User Adam has multiple accounts. User Adam login with account Adam1 and get his Adam1 data in browser page A. He clicked logout link, but opened it in another tab page B(the same browser of course) He login with another account Adam2 in browser page B get his Adam2 data shown. He then returned to browser page A and made some changes to his data and then send to server, at this time my

Cloudflare Origin Certificate with Google App Engine

不想你离开。 提交于 2020-01-23 12:29:08
问题 Cloudflare recently released origin certs. I can generate one for my domain but am not able to upload it to app engine. After getting the cert and key from cloudflare, I have to run openssl rsa -in old -out new on the key to convert it to an RSA key. Using this key and the cert, app engine shows the following error: The SSL certificate provided could not be inserted. With no additional information it's difficult to know what's going on here. 回答1: CloudFlare PM here for Origin CA. A few

Google API client secrets error (Python)

点点圈 提交于 2020-01-23 11:42:46
问题 I want to retrieve data from Google analytics. I have created a service account in the console and I am using Google's Python ( hello_analytics_api_v3.py ) code to access the data. I have copied the client_secrets.json into my folder but get this error: *SystemExit: WARNING: Please configure OAuth 2.0 To make this sample run you will need to populate the client_secrets.json file found at:* What should I do? I am using Python 2.7. 回答1: Ensure the terminal is pointing to the same path directory

Google Translate get synonyms and examples

末鹿安然 提交于 2020-01-23 10:33:41
问题 Can I access word's synonyms and examples along with the translation itself, when using Google Translate API? I checked out docs but I don't see anything like that. 回答1: No, you cannot get the synonyms and examples along with the translated text.As currently they have only 3 methods in the Translate API.The 3 methods are detections.list, languages.list and translations.list. So i think it would be great if you make a feature request for this API at PIT of AppEngine. 回答2: Pearson released

Google Translate get synonyms and examples

跟風遠走 提交于 2020-01-23 10:31:14
问题 Can I access word's synonyms and examples along with the translation itself, when using Google Translate API? I checked out docs but I don't see anything like that. 回答1: No, you cannot get the synonyms and examples along with the translated text.As currently they have only 3 methods in the Translate API.The 3 methods are detections.list, languages.list and translations.list. So i think it would be great if you make a feature request for this API at PIT of AppEngine. 回答2: Pearson released

How to connect external database to AppEngine?

假装没事ソ 提交于 2020-01-23 08:29:07
问题 Are there any ways (better than using UrlFetch ) to connect to any external database from AppEngine? I already know about hosted SQL databases in App Engine for Business, but they are not free and will be avialable in Q2 2011, so it's not an option right now. I like datastore very much, but customers don't like vendor lock or have other reasons. 回答1: The only way to connect external databases to AppEngine is by exposing them via a web API. Basically you need to create a webservices layer upon

Not able to remove Google App engine Service from the admin console

二次信任 提交于 2020-01-23 07:06:06
问题 How to delete Google app engine services from admin console which was added through developer email login. After paid google hosting now I am not able to login with developer email account Its now only allow with the email account which I open for this domain email account. I set all the permission (Super Admin, Groups Admin, User Management Admin, Help Desk Admin, Services Admin) but still when I try to remove Google app engine service from admin console it give this error, You do not have

App Engine Entity to Dictionary

柔情痞子 提交于 2020-01-23 06:53:33
问题 What is a good way to copy a google app engine entity (in python) to a dictionary object? I'm using db.Expando objects. All properties are expando properties. Thanks! 回答1: Having an entity called foo try with: foo.__dict__ 回答2: try this. Where "m" is the instance of the Expando you wish to turn into a dictionary. dict([(x,getattr(m,x)) for x in m.dynamic_properties()]) 回答3: This should work from google.appengine.ext import db db.to_dict(entity) 回答4: The new version of the Google Cloud Python

Google App Engine and Google Sheets exceeding soft memory limit

我们两清 提交于 2020-01-23 06:51:45
问题 I'm writing a simple service to take data from a couple of sources, munge it together, and use the Google API client to send it to a Google Sheet. Easy peasy works good, the data is not that big. The issue is that calling .spreadsheets() after building the api service (i.e. build('sheets', 'v4', http=auth).spreadsheets() ) causes a memory jump of roughly 30 megabytes (I did some profiling to separate out where the memory was being allocated). When deployed to GAE, these spikes stick around

AppEngine SDK 1.8.5 and Eclipse Juno not working

谁说我不能喝 提交于 2020-01-23 04:41:06
问题 I've installed the Eclipse plug-in for both GWT and Appengine on 3 different machines, all with Juno (4.2). In each case, I get the following error: "The selected App Engine SDK is not valid: Failed to initialize App Engine SDK at (path)." Reinstalling the SDK does not make any difference. Here is more info. about the different configurations I've tried: Ubuntu 12.0.4, Java 7, Eclipse 4.2 Mac OSX 10.8.5, Java 7, Eclipse 4.2-32 bit Mac OSX 10.8.5, Java 7, Eclipse 4.2-64 bit Mac OSX 10.6.8,