Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use GAE Cloud Endpoints from a desktop application?

I want to write a desktop application that interacts with a GAE-based web service. For Android and Web clients there is the possibility to generate client libraries automatically. Is there a way to generate client libraries for C or C++? I would settle for Python as well.

like image 272
Julian Stecklina Avatar asked May 27 '13 08:05

Julian Stecklina


2 Answers

Theoretically all the Google APIs Client libraries allow accessing any Discovery-based API as long as the discovery document is available (which is the case for cloud endpoints) even though the functionality isn't very well documented in most cases.

See https://developers.google.com/discovery/libraries for a list of currently available client libraries.

As example of how you can use the python client library with cloud endpoints:

service = build("your_api", "your_api_version", http=http, 
  discoveryServiceUrl=("https://yourapp.appspot.com/_ah/api/discovery/v1/"
                       "apis/{api}/{apiVersion}/rest"))

result = service.resource().method([parameters]).execute()
like image 192
Scarygami Avatar answered Sep 28 '22 02:09

Scarygami


Currently, Google App Engine Cloud Endpoints only supports generating client libraries for Android (Java), iOS (Objective-C) and JavaScript. See https://developers.google.com/appengine/docs/java/endpoints/overview.

Of course you may still develop your application using GAE for your web service and write the web service interface libraries yourself in any language you choose.

like image 35
Jeff Lockhart Avatar answered Sep 28 '22 04:09

Jeff Lockhart