google-cloud-endpoints

How to generate client library

限于喜欢 提交于 2019-11-28 05:25:47
问题 I am trying to generate java client library for my existing web application, but each time a select "generate cloud endpoint client library" the eclipse shows progress dialog and freezes. Is there a command line tool (something like bin/endpoints.sh) that can be used to generate client library? thanks in advance. EDIT Thanks Dan, I managed to generate client library by using this command: $SDK/endpoints.sh get-client-lib com.test.MyEndpoint 回答1: You should be able to find out at least a

Google Endpoints API + Chrome Extension returns None for endpoints.get_current_user().user_id()

寵の児 提交于 2019-11-28 04:25:27
I am developing Google App Engine application written in Python and using Endpoints API. In conjunction, I am writing a Chrome Extension to interact with the Endpoints API. I've been running into lots of issues with the Endpoints API and authorization. Currently, here is my setup: Endpoints API (Python) from google.appengine.ext import endpoints from protorpc import message_types from protorpc import remote ALLOWED_CLIENT_IDS = ['client_id_from_google_api_console', endpoints.API_EXPLORER_CLIENT_ID] @endpoints.api(name='my_api',version='v1', description='My API', allowed_client_ids=ALLOWED

Google sign in issue

可紊 提交于 2019-11-28 04:23:31
问题 I use Android Studio 1.0.2 I clicked on the top right google sign in thing and I granted access on the OAuth page, but my internet suddenly dropped in between and I believe this has caused problems. Whenever I click on the top right corner, I get the error log in IDE: IllegalArgumentException: Argument 0 for @NotNull parameter of com/google/gct/login/CredentialedUserRoster.setActiveUser must not be null: Argument 0 for @NotNull parameter of com/google/gct/login/CredentialedUserRoster

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

走远了吗. 提交于 2019-11-28 03:02:45
问题 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

Restrict access to google cloud endpoints to Android app

守給你的承諾、 提交于 2019-11-28 01:35:17
问题 I'm using Android Studio to generate Google Cloud Endpoints for an Android app. I've deployed the endpoints and they work ok. What I want to achieve is to enable access to the endpoints only to my app. All the documentation talks about how to enable authentication for users but I only need to restrict the access to the endpoints only from my app. I don't want to use user credentials because the api does not use that. What I tried is creating a client ID for my app in the Google Console and

Why is my API not showing up on deployment?

試著忘記壹切 提交于 2019-11-28 01:24:54
问题 I suspect this is caused by the following bug in Endpoints (if valid) but I'm also sure there's a workaround somewhere. https://code.google.com/p/googleappengine/issues/detail?id=9050&can=4&colspec=ID%20Type%20Component%20Status%20Stars%20Summary%20Language%20Priority%20Owner%20Log Steps to reproduce: Change a method name, API name of a method, or parameter list in an Endpoints class. Run the endpoints.sh script to generate the API files. Inspect the API files locally and witness the changes

GAE SDK 1.9.4 breaks GPE 3.5.1

流过昼夜 提交于 2019-11-28 01:12:04
问题 When i tried to generate the client library using eclipse interface i got this erro: eclipse.buildId=M20120914-1800 java.version=1.7.0_25 java.vendor=Oracle Corporation BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=pt_BR Framework arguments: -product org.eclipse.epp.package.dsl.product -keyring /Users/renanfranca/.eclipse_keyring -showlocation Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.dsl.product -keyring /Users/renanfranca/

Messed up character encoding with Android + GAE Cloud Endpoints

感情迁移 提交于 2019-11-28 00:44:58
问题 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

Simple Access API (Developer Key) with Google Cloud Endpoint (Python)

不想你离开。 提交于 2019-11-27 22:31:29
Is there a way to use Simple Access API (Developer Key) instead of oAuth2 key with Google Cloud Endpoint? Extra fields in your protorpc request object that aren't part of the definition are still stored with the request. If you wanted to use a key field as a query parameter, you could access it via request.get_unrecognized_field_info('key') even if key is not a field in your message definition. This is done in users_id_token.py (the Auth part of the endpoints library) to allow sending bearer_token or access_token as query parameters instead of as header values. Unfortunately, the nice quota

Multiple Entity arguments in Google Cloud Endpoints

纵饮孤独 提交于 2019-11-27 21:58:42
问题 How can I pass more than one Entity from a client to a Google Cloud Endpoint? For example, passing a single Entity is easily done in an Endpoint api source file in the server: public class SomeEndpoint { ... @ApiMethod(...) public MyEntity someMethod(MyEntity someEntity) { ... } ... } then in a client I could easily call endpoint.someMethod(someEntity).execute() But, what if I want to pass two entities to an endpoint?, like this: @ApiMethod(...) public MyEntity otherMethod(MyEntity someEntity