google-cloud-endpoints

Messed up character encoding with Android + GAE Cloud Endpoints

懵懂的女人 提交于 2019-11-29 07:17:42
I made web app using GAE's Cloud Endpoints. App has only backend part. App calls Google Places API and parses JSON responses, creating objects which returns to client. Client is Android app which uses generated client libraries from GAE. My problem is folowing: app running on local dev server shows on Android correctly UTF-8 formatted strings, but deployed app is showing on Android messed up strings. E.g: Instead of Klinički Centar it shows Klini��ki Centar. I'm using latest Fedeora GNU/Linux, developing in Eclipse Kepler (newest edition), GAE is ver 1.8.1, Google Plugin for Eclipse ver 3.2.4

How to move Cloud Endpoints generated sources.jar library into Android project

你说的曾经没有我的故事 提交于 2019-11-29 05:07:33
Google Plugin for Eclipse includes a facility to automatically generate the cloud endpoints client library. But there doesn't seem to be an easy way to move the generated source.jar file into your Android source. The documentation https://developers.google.com/appengine/docs/java/endpoints/consume_android says The Endpoints generation results in a sources jar file. Add the contents of this jar file to your Android project. It doesn't seem possible to put the source.jar file into an Android /lib or /libs, since the source is .java rather than .class form. So I just manually copy over the source

Google App Engine with Android - testing endpoints on real device

旧巷老猫 提交于 2019-11-29 04:38:42
i've been following the tutorial in Creating an Endpoints Backend from an Android Project . Everything is compiling and looks promising. The backend is up, i changed CloudEndpointUtils#LOCAL_ANDROID_RUN to 'true'. but when i try to test the app on a real device (not emulator) im failing on - java.net.SocketException: failed to connect to /10.0.2.2 (port 8888) after 20000ms: isConnected failed: EHOSTUNREACH (No route to host) So i looked at CloudEndpointUtils and saw that setting LOCAL_ANDROID_RUN to 'true' makes the app look for DevAppServer in http://10.0.2.2:8888 , which is the emulator

AngularJS and google cloud endpoint: walk through needed

流过昼夜 提交于 2019-11-29 04:05:05
问题 I'm new to AngularJS but I really like the way AngularJS works so I want to deployed it as client side for my Google cloud endpoint backend. Then I immediately get two problems: 1, Where to put the myCallback , so it's able to work into the ANgularJs controller? <script src="https://apis.google.com/js/client.js?onload=myCallback"></script> 2, How I'm able to do the oauth2? and how the controller knows if the user authorized? gapi.auth.authorize({client_id: myCLIENT_ID, scope: mySCOPES,.....

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

How can I pass custom information from an App Engine Authenticator to the Endpoint?

时光毁灭记忆、已成空白 提交于 2019-11-28 23:03:29
问题 I am referencing @MinWan 's awesome answer in this post Google Cloud Endpoints and user's authentication, where he describes a way to add custom headers to a request against App Engine's Cloud Endpoints. It becomes clear that we can add a custom header and write an authenticator per each service (e.g. Google, Twitter, Facebook) against which we want to authenicate, where each authenticator reads a specific header and authenticates against the service. If the token is valid, a service

Authenticating your client to Cloud Endpoints without a Google Account login

廉价感情. 提交于 2019-11-28 20:23:44
I have been doing extensive research on how to authenticate your client (Android, iOS, web-app) with Cloud Endpoints without requiring your user to use their Google account login the way the documentation shows you. The reason for this is that I want to secure my API or "lock it down" to only my specified clients. Sometimes I will have an app that does not have a user login. I would hate to pester my user to now sign in just so my API is secure. Or other times, I just want to manage my own users like on a website and not use Google+, Facebook, or whatever else login authentication. To start,

REST API in Google App Engine + Python?

冷暖自知 提交于 2019-11-28 17:36:15
问题 How create a RESTful API using Google App Engine with Python? I've tried using Cloud Endpoints, but the documentation does not focus on a RESTful API. Is there something similar to django-tastypie for GAE? 回答1: The RESTful api can be build based on EndPoint API. There are some tools can help you make things easier: appengine rest server (not based on endpoints) Drop-in server for Google App Engine applications which exposes your data model via a REST API with no extra work. https://code

Google Cloud Endpoints limitations… any proposed solutions?

允我心安 提交于 2019-11-28 16:48:49
Am I correct in thinking that the goodness of Cloud Endpoints comes with the following limitations: The REST Api cannot be deployed to a custom domain (it'll remain on appspot.com). The only authentication supported is OAuth against Google accounts. Corollary: it isn't currently possible to create a user login/session-tracking mechanism that is Google-accounts-agnostic (e.g., with email as username and a password). Is there any plan to do away with these limitations and if so, what is the ETA? Taking these item by item: Currently, yes this is still the case. Keep in mind, our initial release

How to unit test Google Cloud Endpoints

江枫思渺然 提交于 2019-11-28 15:20:47
问题 I'm needing some help setting up unittests for Google Cloud Endpoints. Using WebTest all requests answer with AppError: Bad response: 404 Not Found. I'm not really sure if endpoints is compatible with WebTest. This is how the application is generated: application = endpoints.api_server([TestEndpoint], restricted=False) Then I use WebTest this way: client = webtest.TestApp(application) client.post('/_ah/api/test/v1/test', params) Testing with curl works fine. Should I write tests for endpoints