BatchCreateMediaItems()
BatchCreateMediaItems(\Google\Photos\Library\V1\BatchCreateMediaItemsRequest $argument, array $metadata = [], array $options = []) : mixed
Creates one or more media items in a user's Google Photos library.
This is the second step for creating a media item. For details regarding
Step 1, uploading the raw bytes to a Google Server, see
Uploading media.
This call adds the media item to the library. If an album id
is
specified, the call adds the media item to the album too. Each album can
contain up to 20,000 media items. By default, the media item will be added
to the end of the library or album.
If an album id
and position are both defined, the media item is
added to the album at the specified position.
If the call contains multiple media items, they're added at the specified
position.
If you are creating a media item in a shared album where you are not the
owner, you are not allowed to position the media item. Doing so will result
in a BAD REQUEST
error.
Parameters
\Google\Photos\Library\V1\BatchCreateMediaItemsRequest |
$argument |
input argument |
array |
$metadata |
metadata |
array |
$options |
call options |
Returns
mixed