endpoints-proto-datastore

What is the best way to auth, identify and store delicate information about users?

旧时模样 提交于 2019-12-08 04:50:04
问题 With the purpose of learning about endpoints I'm building an app called "Where Are You?". The app lets users request the location of other users. The idea is that it does so by letting the user select a contact, lookup the contact by phone number in my endpoint. If found it means that the contact have the app and GCM is sent requesting the location. If the contact isn't found a SMS is sent with an url which will request the location through a browser, perform a http post of said location and

Using endpoints-proto-datastore, how do you pass attributes to a method that are not contained in the EndpointsModel

那年仲夏 提交于 2019-12-07 13:33:59
问题 I am trying to pass attributes into an API call that are not contained in my EndpointsModel. For example, say I have the following model: class MyModel(EndpointsModel): attr1 = ndb.StringProperty() Then assume I want to pass in attr2 as a parameter, but I don't want attr2 to be used as a filter nor do I want it to be stored in the model. I simply want to pass in some string, retrieve it inside of the method and use it to perform some business logic. The documentation describes the query

Android Studio: IncorrectOperationException when 'Add as Library' is clicked whilst trying to configure Google Apps Endpoints client libraries

♀尐吖头ヾ 提交于 2019-12-06 07:59:45
问题 I am trying to generate and use the android client libraries for a Python google app engine project following this guide https://developers.google.com/appengine/docs/python/endpoints/consume_android Everytime I get to this step Select the library you just added, right-click, then select Add As Library to your project. I get the following exception: IncorrectOperationException: Must not change document outside command or undo-transparent action. I'm new to Android Studio but can't seem to find

Using endpoints-proto-datastore, how do you pass attributes to a method that are not contained in the EndpointsModel

北城以北 提交于 2019-12-05 22:35:13
I am trying to pass attributes into an API call that are not contained in my EndpointsModel . For example, say I have the following model: class MyModel(EndpointsModel): attr1 = ndb.StringProperty() Then assume I want to pass in attr2 as a parameter, but I don't want attr2 to be used as a filter nor do I want it to be stored in the model. I simply want to pass in some string, retrieve it inside of the method and use it to perform some business logic. The documentation describes the query_fields parameter for specifying the fields you want to pass into the method, but these appear to be coupled

Android Studio: IncorrectOperationException when 'Add as Library' is clicked whilst trying to configure Google Apps Endpoints client libraries

百般思念 提交于 2019-12-04 12:51:12
I am trying to generate and use the android client libraries for a Python google app engine project following this guide https://developers.google.com/appengine/docs/python/endpoints/consume_android Everytime I get to this step Select the library you just added, right-click, then select Add As Library to your project. I get the following exception: IncorrectOperationException: Must not change document outside command or undo-transparent action. I'm new to Android Studio but can't seem to find any resources on how to get endpoints client libraries working in Eclipse. Has anyone else experienced

Local testing for Android App using Cloud Endpoints for Google App Engine

人走茶凉 提交于 2019-12-03 08:53:43
I am developing an Android app that uses Google Cloud Endpoints on Google App Engine (in Python) for its backend. The Android app authorizes the user using Google Play Services on the Android device, and it all works fantastically. However, now that I have actual users, I'd like to be able to test this all locally before deploying any app engine API changes to production, and I haven't figured out how to have the Android app talk to my local development server anywhere. The testing recommendations suggest that I just do some manual tinkering with API Explorer, but as I'm using the Endpoints

Dynamically created method and decorator, got error 'functools.partial' object has no attribute '__module__'

六眼飞鱼酱① 提交于 2019-11-30 08:14:57
I am currently using EndpointsModel to create a RESTful API for all my models on AppEngine. Since it is RESTful, these api have a lot of repeat code which I want to avoid. For example: class Reducer(EndpointsModel): name = ndb.StringProperty(indexed=False) @endpoints.api( name="bigdata", version="v1", description="""The BigData API""", allowed_client_ids=ALLOWED_CLIENT_IDS, ) class BigDataApi(remote.Service): @Reducer.method( path="reducer", http_method="POST", name="reducer.insert", user_required=True, ) def ReducerInsert(self, obj): pass ## and GET, POST, PUT, DELETE ## REPEATED for each

Cloud Endpoints - Retrieving a single entity from datastore (by a property other than the helper methods provided by EndpointsModel)

自古美人都是妖i 提交于 2019-11-30 05:29:07
This question completely follows on from a related question I had asked (and was answered) here: Error when trying to retrieve a single entity As I understand, to retrieve a single entity from the datastore using a property other than helper methods already provided (e.g. 'id' ) requires turning a simple data property into an EndpointsAliasProperty ? If yes, how would I go about doing that? Or is it that we can only use 'id' (helper methods provided by EndpointsModel ) and we cannot use any of the properties that we define (in this case 'title' )? The distinction between the custom

Is there a way to secure Google cloud endpoints proto datastore?

时光总嘲笑我的痴心妄想 提交于 2019-11-29 09:32:35
my setup: Python, google app engine using endpoints_proto_datastore iOS, endpoints Obj-C client library generator Background I've setup a test Google cloud endpoints api and had it running pretty quickly. It works great, using the test app in the iOS simulator, and using Google's APIs Explorer. The API is currently open to all with no authentication. I'd like to: setup an API-key or system-credential that can be used by the app to ensure it alone can access the api - with all others being refused. The method in the Google Endpoints Auth docs (1) is to create an OAuth 2.0 client ID using the

Cloud Endpoints - Retrieving a single entity from datastore (by a property other than the helper methods provided by EndpointsModel)

醉酒当歌 提交于 2019-11-29 04:04:13
问题 This question completely follows on from a related question I had asked (and was answered) here: Error when trying to retrieve a single entity As I understand, to retrieve a single entity from the datastore using a property other than helper methods already provided (e.g. 'id' ) requires turning a simple data property into an EndpointsAliasProperty ? If yes, how would I go about doing that? Or is it that we can only use 'id' (helper methods provided by EndpointsModel ) and we cannot use any