Method: albums.create
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างอัลบั้มในคลังภาพ Google Photos ของผู้ใช้
คำขอ HTTP
POST https://photoslibrary.googleapis.com/v1/albums
URL ใช้ไวยากรณ์การแปลง gRPC
เนื้อหาของคำขอ
เนื้อความของคำขอมีข้อมูลซึ่งมีโครงสร้างดังต่อไปนี้
การแสดง JSON |
{
"album": {
object (Album )
}
} |
ช่อง |
album |
object (Album )
ต้องระบุ อัลบั้มที่จะสร้าง
|
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะมีอินสแตนซ์ Album
ที่สร้างขึ้นใหม่
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/photoslibrary.appendonly
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-04-01 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-04-01 UTC"],[[["This documentation outlines the process for creating an album in a user's Google Photos library using the Photos Library API."],["The API request involves sending a POST request to a specific endpoint with a JSON body containing the album details."],["A successful response will return the newly created album object, including its properties and metadata."],["Authentication requires one of the provided OAuth scopes to grant necessary permissions."],["Beginning March 31, 2025, the scopes will change to limit functionality to media items created by the user's application, as outlined in the Photos APIs updates document."]]],["This document details creating albums in a user's Google Photos library via the API. It uses a `POST` request to `https://photoslibrary.googleapis.com/v1/albums`. The request body, formatted as JSON, requires an `album` object. Successful requests return the newly created `Album` instance. Authorization necessitates specific OAuth scopes: `photoslibrary`, `photoslibrary.appendonly`, or `photoslibrary.sharing`. Note that scopes will limit interactions with media items, created by the app, after March 31, 2025.\n"]]