Skip to Content
Mobile Python: Rapid Prototyping of Applications on the Mobile Platform
book

Mobile Python: Rapid Prototyping of Applications on the Mobile Platform

by Jürgen Scheible, Ville Tuulos
December 2007
Intermediate to advanced
348 pages
8h 5m
English
Wiley
Content preview from Mobile Python: Rapid Prototyping of Applications on the Mobile Platform

9.1. Basic Principles

You can think of a web service as an ordinary Python module whose functions are just called in a particular way using urllib. As with ordinary modules, you have to see the API documentation to understand how to use the related functions. However, whereas the API of an ordinary Python module stays constant, even in different versions of Python, a web service provider may change the web API any time without prior notice. Because of this, we focus mostly on the basic principles of the Web service usage here, instead of explaining the current web APIs in detail.

To use a web service, you typically have to go through the following steps:

  1. Go to the service provider's website and find the web API or developer documentation. Some well-known web APIs can be found at following addresses:

  2. Find documentation for the functionality you need.

  3. Find out which protocol the service uses on top of HTTP. Many services support several different protocols. The most typical alternatives are JSON, XML or plain HTTP. Some services even provide a custom module for Python that hides requests to the web service behind normal Python function calls. However, some of these modules use new features of Python which are not yet supported by Python for S60.

  4. Find out what kind of input data and parameters the service expects and how the output looks.

  5. Add a function ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Creating Apps in Kivy

Creating Apps in Kivy

Dusty Phillips
How to Develop a Great Digital Strategy

How to Develop a Great Digital Strategy

Jeanne W. Ross, Cynthia M. Beath, Ina M. Sebastian

Publisher Resources

ISBN: 9780470515051Purchase book