Method: inappproducts.batchGet
อ่านไอเทมที่ซื้อในแอปหลายรายการ ซึ่งอาจเป็นผลิตภัณฑ์ที่มีการจัดการหรือการสมัครใช้บริการ
ไม่ควรใช้วิธีนี้เพื่อเรียกข้อมูลการติดตาม ดูข้อมูลเพิ่มเติมได้ที่บทความนี้
คำขอ HTTP
GET https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/inappproducts:batchGet
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
packageName |
string
ชื่อแพ็กเกจของแอป
|
พารามิเตอร์การค้นหา
พารามิเตอร์ |
sku[] |
string
ตัวระบุที่ไม่ซ้ำสำหรับไอเทมที่ซื้อในแอป
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
ข้อความตอบกลับสําหรับปลายทาง subscriptions.batchGet
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"inappproduct": [
{
object (InAppProduct )
}
]
} |
ช่อง |
inappproduct[] |
object (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"],[[["Reads multiple in-app products, including managed products and subscriptions, but should not be used to retrieve subscriptions."],["Sends an HTTP GET request to the specified endpoint with package name and product identifiers as parameters."],["Requires an empty request body and returns a response containing a list of in-app products."],["The response is structured in JSON format with an array of `inappproduct` objects, each representing an in-app product."],["Needs authorization with the `https://www.googleapis.com/auth/androidpublisher` scope."]]],["This outlines how to retrieve multiple in-app products (excluding subscriptions) via a `GET` request to the Android Publisher API. The request URL requires the app's package name as a path parameter and a list of unique product identifiers as query parameters (sku[]). The request body must be empty. A successful response returns a JSON object containing a list of in-app products, ordered as requested, with details provided within an InAppProduct object. This process requires specific OAuth authorization scopes to be granted.\n"]]