ชั้นวางหนังสือ: รายการ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ดึงรายการแหล่งข้อมูลชั้นวางหนังสือสาธารณะสำหรับผู้ใช้ที่ระบุ
ลองใช้เลย
ดูข้อมูลเพิ่มเติมเกี่ยวกับรหัสผู้ใช้ได้ในส่วนรหัส Google Books
ส่งคำขอ
คำขอ HTTP
GET https://www.googleapis.com/books/v1/users/userId/bookshelves
พารามิเตอร์
ชื่อพารามิเตอร์ |
ค่า |
คำอธิบาย |
พารามิเตอร์ที่จำเป็น |
userId |
string |
รหัสของผู้ใช้ที่จะดึงข้อมูลชั้นวางหนังสือ
|
พารามิเตอร์ที่ไม่บังคับ |
source |
string |
สตริงสำหรับระบุผู้สร้างคำขอนี้
|
เนื้อความของคำขอ
โปรดอย่าให้เนื้อหาคำขอด้วยวิธีนี้
คำตอบ
หากสำเร็จ เมธอดนี้จะแสดงเนื้อหาการตอบกลับซึ่งมีโครงสร้างต่อไปนี้
{
"kind": "books#bookshelves",
"items": [
bookshelf Resource
]
}
ชื่อพร็อพเพอร์ตี้ |
ค่า |
คำอธิบาย |
หมายเหตุ |
kind |
string |
ประเภททรัพยากร |
|
items[] |
list |
รายการชั้นวางหนังสือ |
|
ลองเลย
ใช้เครื่องมือสํารวจด้านล่างเพื่อเรียกใช้เมธอดนี้กับข้อมูลจริงและดูคําตอบ
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-08 UTC
[null,null,["อัปเดตล่าสุด 2024-11-08 UTC"],[[["\u003cp\u003eRetrieves a list of public bookshelves for a specific user ID.\u003c/p\u003e\n"],["\u003cp\u003eRequest requires the user ID and can optionally include the request source.\u003c/p\u003e\n"],["\u003cp\u003eResponse includes resource type and a list of bookshelves if successful.\u003c/p\u003e\n"],["\u003cp\u003eMethod does not require a request body.\u003c/p\u003e\n"],["\u003cp\u003eUsers can try the method with live data using the provided explorer.\u003c/p\u003e\n"]]],[],null,["# Bookshelf: list\n\nRetrieves a list of public [Bookshelf resource](/books/docs/v1/reference/bookshelves) for the specified user.\n[Try it now](#try-it).\n\nMore information about user IDs can be found in the section [Google Books IDs](/books/docs/v1/using#ids).\n\nRequest\n-------\n\n### HTTP Request\n\n```\nGET https://www.googleapis.com/books/v1/users/userId/bookshelves\n```\n\n### Parameters\n\n| Parameter Name | Value | Description |\n|----------------|----------|----------------------------------------------------|\n| **Required Parameters** |||\n| `userId` | `string` | ID of user for whom to retrieve bookshelves. |\n| **Optional Parameters** |||\n| `source` | `string` | String to identify the originator of this request. |\n\n### Request Body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```objective-c\n{\n \"kind\": \"books#bookshelves\",\n \"items\": [\n bookshelf Resource\n ]\n}\n```\n\n| Property Name | Value | Description | Notes |\n|---------------|----------|------------------------|-------|\n| `kind` | `string` | Resource type. | |\n| `items[]` | `list` | A list of bookshelves. | |\n\nTry It!\n-------\n\n\nUse the explorer below to call this method on live data and see the response."]]