O'Reilly logo

Learning Windows Azure Mobile Services for Windows 8 and Windows Phone 8 by Geoff Webber-Cross

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

API scripts

API scripts can be used to do things outside the scope of a table's method, such as making HTTP requests to call other web services and performing push notification requests (this will be discussed in the next chapter). We can still access tables through the request.service.tables object, which exposes our tables and all their methods. However, these methods go directly into the table and not through the API. Hence, any table script modifications will be bypassed.

API scripts support the following five HTTP methods:

  • GET
  • POST
  • PUT
  • PATCH
  • DELETE

Creating an API script

To create an API script, follow this procedure:

  1. Go to the API tab in the portal and click on the CREATE button:
  2. Enter the name and choose the permissions:
  3. Once created, select it from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required