Method: purchases.products.consume
אירוע שמציין רכישה של פריט מתוך האפליקציה.
בקשת HTTP
POST https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:consume
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
packageName |
string
שם החבילה של האפליקציה שבה המוצר שזמין מתוך האפליקציה נמכר (לדוגמה, 'com.some.thing').
|
productId |
string
המק"ט של המוצר מתוך האפליקציה (לדוגמה, 'com.some.thing.inapp1').
|
token |
string
האסימון שסופק למכשיר של המשתמש כשהתרחשה הרכישה של המוצר מתוך האפליקציה.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה יהיה ריק.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/androidpublisher
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-12-18 (שעון UTC).
[null,null,["עדכון אחרון: 2024-12-18 (שעון UTC)."],[[["Consumes a purchase for an in-app item using an HTTP POST request."],["Requires the package name, product SKU, and purchase token as path parameters."],["Has an empty request body and, if successful, returns an empty response body."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["The core function is consuming a purchase for an in-app item via a `POST` HTTP request. The request targets a specific URL using gRPC Transcoding syntax. It requires three path parameters: `packageName`, `productId`, and `token`. The request body must be empty. A successful operation returns an empty response body. Authorization requires the `https://www.googleapis.com/auth/androidpublisher` OAuth scope. Key actions are providing the necessary path parameters for the given request and ensuring an empty request body.\n"]]