Fixed
Status Update
Comments
jf...@google.com <jf...@google.com>
jf...@google.com <jf...@google.com> #2
This issue has been fixed in the latest release of the Google Photos Library API.
See the release notes for more details:https://developers.google.com/photos/library/support/release-notes#2018-09-05
See the release notes for more details:
Description
First, please search through existing issues to ensure that the bug has not already been reported. You can start the search here:
If the issue has already been reported, you can click the star next to the issue number to subscribe and receive updates. We prioritize responding to the issues with the most stars. You can also comment on the issue to provide any details of your experience with it.
If your issue has not been reported, please provide all of the following:
-----------------------------------------------------------------------------------------------------------------------------
A short description of the issue:
When calling batchCreate with multiple media items, the media items show up in the Google Photos App in randomized orders.
Your project number from the Google Developers Console:
N/A
The calls to the API that lead to the error. Include the sequence of calls, including request headers and body.
Do not include any personal information, authentication secrets, media item or album IDs.
curl -H "Content-type: application/json"
-H "Authorization: Bearer $OAUTH_TOKEN"
-X POST
-d "{album_id:\"$ALBUM\", new_media_items:[{simple_media_item: {upload_token:\"$UPLOAD_TOKEN1\"}}, {simple_media_item: {upload_token:\"$UPLOAD_TOKEN2\"}}, {simple_media_item: {upload_token:\"$UPLOAD_TOKEN3\"}}]}"
$LIB_URL/mediaItems:batchCreate
What steps will reproduce the problem?
1. Create multiple upload tokens
2. Create media items in an album
3. Repeat
What is the expected output? What do you see instead? If you see error messages, please provide them.
Sometimes the order of the media items are in the order that they were uploaded, sometimes they're randomized.
Expect to see it in the same order they were uploaded every time.
Please provide any additional information below.