Method: applications.verify
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Memverifikasi token autentikasi yang diberikan dengan permintaan ini untuk aplikasi dengan ID yang ditentukan, dan menampilkan ID pemain yang diberi token tersebut.
Permintaan HTTP
GET https://games.googleapis.com/games/v1/applications/{applicationId}/verify
Parameter jalur
Parameter |
applicationId |
string
ID aplikasi dari konsol developer Google Play.
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Referensi respons verifikasi aplikasi pihak ketiga.
Jika berhasil, isi respons berisi data dengan struktur berikut:
Representasi JSON |
{
"player_id": string,
"alternate_player_id": string,
"kind": string
} |
Kolom |
player_id |
string
ID pemutar yang diberi token autentikasi yang digunakan dalam permintaan ini.
|
alternate_player_id |
string
ID alternatif yang pernah digunakan untuk pemain yang diberi token autentikasi yang digunakan dalam permintaan ini. (Kolom ini biasanya tidak diisi.)
|
kind |
string
Secara unik mengidentifikasi jenis resource ini. Nilainya selalu berupa string tetap games#applicationVerifyResponse .
|
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://www.googleapis.com/auth/games
https://www.googleapis.com/auth/games_lite
Untuk informasi selengkapnya, lihat Ringkasan OAuth 2.0.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# Method: applications.verify\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.VerifyAuthTokenResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nVerifies the auth token provided with this request is for the application with the specified ID, and returns the ID of the player it was granted for.\n\n### HTTP request\n\n`GET https://games.googleapis.com/games/v1/applications/{applicationId}/verify`\n\n### Path parameters\n\n| Parameters ||\n|-----------------|---------------------------------------------------------------------|\n| `applicationId` | `string` The application ID from the Google Play developer console. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA third party application verification response resource.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------|\n| ``` { \"player_id\": string, \"alternate_player_id\": string, \"kind\": string } ``` |\n\n| Fields ||\n|-----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `player_id` | `string` The ID of the player that was issued the auth token used in this request. |\n| `alternate_player_id` | `string` An alternate ID that was once used for the player that was issued the auth token used in this request. (This field is not normally populated.) |\n| `kind` | `string` Uniquely identifies the type of this resource. Value is always the fixed string `games#applicationVerifyResponse`. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/games`\n- `\n https://www.googleapis.com/auth/games_lite`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]