How do I make requests from Android to a Python API deployed on Google App Engine?
-
I am having trouble figuring out how to implement a simple request to my deployed Python App Engine API. I have created an app engine backend via the Google plugin available in eclipse, but I am pretty sure that it creates this backend project with the implementation of Java Servlets in mind. I see a lot of code examples that use this type of service object creation "Tictactoe.Builder builder = new Tictactoe.Builder( AndroidHttp.newCompatibleTransport(), new GsonFactory(), null); service = builder.build();" Is this defined in an HTTP Request Class? What would I be looking to do to give myself the ability to make requests and pass data over Google Cloud Endpoints with and Android Client? Would I define a class that solely deals with the HTTP Transport and use that to create a service object from?
-
Answer:
You should follow google documentation for this . you should create client libraries first.. follow this doc https://developers.google.com/appengine/docs/python/endpoints/gen_clients and consume it on your android ,follow this doc https://developers.google.com/appengine/docs/python/endpoints/consume_android it will work fine its simple and powerful i know google docs for endpoints are little bit confusing... you can alse refer this link https://googledrive.com/host/0B19L0O2pMOKjVUJBV0tEb0psVlU/#16 Inbox me if you need any help regarding this i will avail :) Gud luck
Ahamed Muneeb at Quora Visit the source
Related Q & A:
- How do I apply the overlay to draw a line in maps Android?Best solution by Stack Overflow
- How do I make a python web program that is on a ubuntu server allow access to the server?Best solution by Yahoo! Answers
- How do I make 3 way calling on a chocolate phone?Best solution by Yahoo! Answers
- How do I make the caps lock key a third shift key?Best solution by Ask Ubuntu
- How can I make my website visible in the search engine?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.