Method: inappproducts.get
Pobiera produkt w aplikacji, który może być produktem zarządzanym lub subskrypcją.
Tej metody nie należy już używać do pobierania subskrypcji. Więcej informacji znajdziesz w tym artykule.
Żądanie HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
packageName |
string
Nazwa pakietu aplikacji.
|
sku |
string
Unikalny identyfikator produktu w aplikacji.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
W przypadku powodzenia treść odpowiedzi obejmuje wystąpienie elementu InAppProduct
.
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/androidpublisher
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-17 UTC.
[null,null,["Ostatnia aktualizacja: 2024-12-17 UTC."],[[["Retrieves details for a specified in-app product within a given app package."],["This method is deprecated for subscriptions; refer to the provided link for alternative approaches for subscriptions."],["Requires `packageName` and `sku` as path parameters to identify the target in-app product."],["Utilizes an empty request body and returns an `InAppProduct` object upon successful execution."],["Requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization."]]],["The core actions involve retrieving an in-app product using a GET request to a specific URL: `https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}`. Key information includes the use of path parameters, `packageName` and `sku`, to identify the app and product respectively. The request body must be empty. Successful requests return an instance of `InAppProduct`. This method requires authorization via the `https://www.googleapis.com/auth/androidpublisher` OAuth scope and is not to be used to retrieve subscriptions.\n"]]