google-app-engine

Access to user's name and profile picture in the AppEngine's app

人走茶凉 提交于 2020-01-16 04:59:06
问题 AppEngine has Users service to access Google account information. Unfortunately, it doesn't provide access to the Google account's many properties, specifically name and profile picture. Could anyone advise a proper way of retrieving that information? 回答1: The Users API does not provide any way to access anything other than the user's email address. Any other information has to be accessed independently, using APIs such as the Google Profiles API. 回答2: Google Profiles API would not work for

Unable to enable Identity Platform on Google Cloud

孤者浪人 提交于 2020-01-16 04:22:13
问题 We currently use Google Identity Toolkit on a web project on Google App Engine. We need to migrate to Google Identity Platform or Firebase Auth since Toolkit is being deprecated. Every time I work up the nerve to work on it, I get stuck at the first step: trying to enable it as per the instructions: https://developers.google.com/identity/toolkit/migrate-identityplatform The issue occurs at step 2 of "Before you Begin" where I am supposed to 'Enable Identity Platform.' When doing so I get a

Asynchronous requests in AppEngine

心已入冬 提交于 2020-01-16 03:25:07
问题 I'm building an app that essentially does the following: Get the user to enter certain parameters. Pass those params to the backend and start a task based on those params. When the task is complete redirect the user to another page showing the results of the task. The problem here is that the task is expected to take quite long. I was thus hoping to make the request asynchronous. Does appengine allow this ? If not, what are my options ? I was looking at the documentation for task queues.

How to get all records from GAE datastore with particular parent?

纵然是瞬间 提交于 2020-01-16 02:56:25
问题 I have several records in my database with the same parent. How can I get all of them by parent? 回答1: OK, looks like the following code works: items = ITEM.gql('WHERE ANCESTOR IS :parent', parent=parent_key).fetch(5) 来源: https://stackoverflow.com/questions/7868333/how-to-get-all-records-from-gae-datastore-with-particular-parent

How to get all records from GAE datastore with particular parent?

懵懂的女人 提交于 2020-01-16 02:56:06
问题 I have several records in my database with the same parent. How can I get all of them by parent? 回答1: OK, looks like the following code works: items = ITEM.gql('WHERE ANCESTOR IS :parent', parent=parent_key).fetch(5) 来源: https://stackoverflow.com/questions/7868333/how-to-get-all-records-from-gae-datastore-with-particular-parent

App engine datastore denormalization: index properties in the main entity or the denormalized entity?

北城以北 提交于 2020-01-16 02:55:13
问题 Consider the classic example of blog data modelling, where we have a Blog entity with many properties, and we want to list the latest blogs in a page. It makes sense to denormalize the BlogPost entity into a BlogPostSummary entity which will be shown in the list view, avoiding fetching and deserializing many unwanted properties. class BlogPost(db.Model): title = db.StringProperty() content = db.TextProperty() created = db.DateProperty() ... class BlogPostSummary(db.Model): title = db

How to send data from android to google app engine web app made in java

梦想的初衷 提交于 2020-01-16 02:05:51
问题 private String s; EditText numDisplay; Button calculateNow; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); numDisplay= (EditText)findViewById(R.id.editText1); calculateNow = (Button)findViewById(R.id.button1); //s=numDisplay.toString(); calculateNow.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { { new MyAsyncTask().execute(numDisplay.getText().toString()); } } } ); }

Google App Engine fails to connect Aerospike installed on Google Compute Engine

醉酒当歌 提交于 2020-01-16 01:53:07
问题 I'm trying to connect my GAE Application to Aerospike installed on Google Compute Engine. Code snippet below is ok if i use main function. public static void main(String[] args) { AerospikeClient client = new AerospikeClient("xxx.xxx.xx.xx", 3000); boolean isConnect = client.isConnected(); Key key = new Key("test", "demo", "putgetkey"); Bin bin1 = new Bin("bin1", "value1"); Bin bin2 = new Bin("bin2", "value2"); client.put(null, key, bin1, bin2); Record record = client.get(null, key); client

Google App Engine Launcher delete datastore

社会主义新天地 提交于 2020-01-16 01:13:30
问题 I am developing a web application using Google AppEngine (GAE). I have make some examples using dataStore (free, non-relational) using Google AppEngine Launcher (GAEL). All is correct. However I'd like delete the datastore before to deploy an application. I have read that I have to use the command --clear_datastore I don't know like running the server to delete the data store when I deploy or re-deploy the application. I have chech some ways, for example I have write in the Application

Google App Engine Launcher crashes on mac

北慕城南 提交于 2020-01-16 01:02:46
问题 My Google App Engine Launcher crashes on my mac with SIGSEGV. When I run a Python project on the launcher, it starts running. But the launcher crashes when the project receives HTTP communication such as post. Does the following crash dump says the reason of the crash is a hash function for a font? The same project runs without any problem on another machine. Other projects run on the launcher. It is 100% reproducible and always same crash message. I would appreciate any hint. Process: