Method: inappproducts.get
รับไอเทมที่ซื้อในแอป ซึ่งอาจเป็นผลิตภัณฑ์ที่มีการจัดการหรือการสมัครใช้บริการ
คุณไม่ควรใช้วิธีนี้เพื่อเรียกข้อมูลการติดตามอีกต่อไป ดูข้อมูลเพิ่มเติมได้ที่บทความนี้
คำขอ HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
packageName |
string
ชื่อแพ็กเกจของแอป
|
sku |
string
ตัวระบุที่ไม่ซ้ำสำหรับไอเทมที่ซื้อในแอป
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ InAppProduct
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/androidpublisher
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-17 UTC
[null,null,["อัปเดตล่าสุด 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"]]