Przeglądasz starszą dokumentację interfejsu Google Photos Library API.
Method: albums.create
Tworzy album w bibliotece Zdjęć Google użytkownika.
Żądanie HTTP
POST https://photoslibrary.googleapis.com/v1/albums
Adres URL używa składni transkodowania gRPC.
Treść żądania
Treść żądania zawiera dane o następującej strukturze:
Zapis JSON |
{
"album": {
object (Album )
}
} |
Pola |
album |
object (Album )
Wymagane. Album, który ma zostać utworzony.
|
Treść odpowiedzi
Jeśli operacja się powiedzie, treść odpowiedzi będzie zawierała nowo utworzoną instancję Album
.
Zakresy autoryzacji
Wymaga jednego z tych zakresów protokołu OAuth:
https://www.googleapis.com/auth/photoslibrary
https://www.googleapis.com/auth/photoslibrary.appendonly
https://www.googleapis.com/auth/photoslibrary.sharing
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-07 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-07 UTC."],[[["Creates a new album within a user's Google Photos library using a POST request."],["The request body should contain the album details in JSON format, specifying properties like title and description."],["A successful response returns the newly created album object with its assigned ID and other relevant information."],["Requires authorization using one of the specified OAuth scopes to access and modify the user's Google Photos library."]]],["A user can create a new album in their Google Photos library by sending a `POST` request to `https://photoslibrary.googleapis.com/v1/albums`. The request body must include an \"album\" object. Successful requests return the newly created album. This action requires authorization through one of three OAuth scopes: `photoslibrary`, `photoslibrary.appendonly`, or `photoslibrary.sharing`. The album is to be made using a JSON structured representation.\n"]]