Method: customers.list
Wyświetla listę kont klientów użytkownika.
Żądanie HTTP
GET https://androiddeviceprovisioning.googleapis.com/v1/customers
Adres URL używa składni transkodowania gRPC.
Parametry zapytania
Parametry |
pageSize |
integer
Wymagane. Maksymalna liczba klientów wyświetlana na stronie wyników. Liczba z zakresu od 1 do 100 (włącznie).
|
pageToken |
string
Token określający, która strona z wynikami ma zostać zwrócona.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Odpowiedź na wiadomość dotyczącą listy klientów
Zapis JSON |
{
"customers": [
{
object (Company )
}
],
"nextPageToken": string
} |
Pola |
customers[] |
object (Company )
Konta klientów, do których należy wywołujący użytkownik.
|
nextPageToken |
string
Token służący do uzyskania dostępu do następnej strony wyników. Pomijany, jeśli nie ma innych dostępnych wyników.
|
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/androidworkzerotouchemm
Więcej informacji znajdziesz w artykule Omówienie OAuth 2.0.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-12-21 UTC.
[null,null,["Ostatnia aktualizacja: 2024-12-21 UTC."],[[["This endpoint retrieves a list of customer accounts associated with the authenticated user via a `GET` request to `https://androiddeviceprovisioning.googleapis.com/v1/customers`."],["The request requires `pageSize` and `pageToken` as query parameters to manage the number of results per page and navigate through multiple pages of customer accounts."],["The request body should be empty for this endpoint, meaning no data should be sent within the request body."],["The response body contains a list of customer objects in the `customers` field, and an optional `nextPageToken` string to retrieve subsequent pages of results if available."],["Authorization for this request requires the `https://www.googleapis.com/auth/androidworkzerotouchemm` OAuth scope."]]],["This document outlines the process for listing a user's customer accounts via an HTTP GET request to `https://androiddeviceprovisioning.googleapis.com/v1/customers`. Required query parameters include `pageSize` (1-100) and `pageToken` for pagination. The request body must be empty. A successful response returns a JSON structure containing an array of `customers` (Company objects) and a `nextPageToken` for subsequent pages. Authorization requires the `androidworkzerotouchemm` OAuth scope.\n"]]