Transitobject: list

Requires authorization

Returns a list of all transit objects for a given class ID.

Request

HTTP request

GET https://www.googleapis.com/walletobjects/v1/transitObject

Parameters

Parameter name Value Description
Required query parameters
classId string The ID of the class whose objects will be listed.

This value should follow the format issuer ID.identifier where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'.
Optional query parameters
maxResults integer Identifies the max number of results returned by a list. All results are returned if maxResults isn't defined.
token string Used to get the next set of results if maxResults is specified, but more than maxResults objects are available in a list. For example, if you have a list of 200 objects and you call list with maxResults set to 20, list will return the first 20 objects and a token. Call list again with maxResults set to 20 and the token to get the next 20 objects.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/wallet_object.issuer

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "pagination": {
    "kind": "walletobjects#pagination",
    "resultsPerPage": integer,
    "nextPageToken": string
  },
  "resources": [
    transitobject Resource
  ]
}
Property name Value Description Notes
pagination nested object Nested object containing pagination information.
pagination.kind string Identifies what kind of resource this is. Value: the fixed string "walletobjects#pagination".
pagination.resultsPerPage integer Number of results returned in this page.
pagination.nextPageToken string Page token to send to fetch the next page.
resources[] list