Send Requests

  • After setup, the Android Over The Air API allows you to send requests to manage deployments, including listing, retrieving, and updating them.

  • Code samples are provided to demonstrate how to interact with the API using simple requests for common operations.

  • The reference documentation offers a complete list of available methods for more advanced interactions with the Android Over The Air API.

  • You can retrieve a specific deployment or update an existing one using the provided protocols and code samples.

  • The API supports complex query parameters in GET requests, like retrieving chart data with custom resolutions and chart line limits.

After you've set everything up, you can send requests to the Android Over The Air API.

The following code samples demonstrate how to send a few simple requests:

  • Get a list of deployments.
  • Retrieve a specific deployment from the list.
  • Update a specific deployment.

For a full list of methods, see the reference documentation.

Get a list of deployments

To get a list of deployments, use the following code:

Protocol

GET /v1/deployments HTTP/1.1
Host: androidovertheair.googleapis.com

Retrieve a specific deployment

To retrieve a specific deployment from the list, use the following code:

Protocol

GET /v1/deployment id HTTP/1.1
Host: androidovertheair.googleapis.com

Update a deployment

To update a deployment, use the following code:

Protocol

PUT /v1/deployment id HTTP/1.1
Host: androidovertheair.googleapis.com
{
  "deployment": updated_deployment,
  "versionTag": {
    {
      "version": version
    }
  },
}

Get a chart

This example shows how complex query parameters may be provided in GET requests.

To get a chart with 24 hour resolution and 5 chart lines, use the following code:

Protocol

GET /v1/deployment id/groups/group id/charts/chart id?options.resolution=RESOLUTION_TWENTY_FOUR_HOURS&options.maxChartLines=5 HTTP/1.1
Host: androidovertheair.googleapis.com