Method: purchases.products.get
בדיקת סטטוס הרכישה והצריכה של פריט בתוך האפליקציה.
בקשת HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
packageName |
string
שם החבילה של האפליקציה שבה המוצר שזמין מתוך האפליקציה נמכר (לדוגמה, 'com.some.thing').
|
productId |
string
המק"ט של המוצר מתוך האפליקציה (לדוגמה, 'com.some.thing.inapp1').
|
token |
string
האסימון שסופק למכשיר של המשתמש כשהתרחשה הרכישה של המוצר מתוך האפליקציה.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה מצליחה, גוף התגובה מכיל מופע של ProductPurchase
.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/androidpublisher
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-12-17 (שעון UTC).
[null,null,["עדכון אחרון: 2024-12-17 (שעון UTC)."],[[["This operation checks the purchase and consumption status of an in-app product."],["It requires an HTTP GET request to a specific URL with the package name, product ID, and purchase token."],["The request body must be empty, and the response provides details about the product purchase."],["This functionality requires authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This document outlines the process to check the status of an in-app purchase. It uses a `GET` HTTP request to a specific URL, structured with `packageName`, `productId`, and `token` as path parameters. The request body must be empty. A successful request returns a `ProductPurchase` instance in the response body. The operation requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope for authorization. It includes instructions to obtain a purchase status.\n"]]