问题
Cached IDs of media items, albums and enrichment items stopped working.
For example, calling mediaItems.get
with a media item ID that was stored returns the following error:
{
"error": {
"code": 400,
"message": "Invalid media item ID.",
"status": "INVALID_ARGUMENT"
}
}
回答1:
The format of all IDs returned by the Google Photos Library API changed on September 5.
If you have stored IDs such as albums ids, media item ids, or enrichment item ids before 5th September 2018, these will no longer work as the format of the IDs has changed recently. Obtain new IDs for use in your application.
You can make a request again to retrieve the new IDs, for example by listing the library contents, albums or submitting another search request.
See the API release notes for more information
来源:https://stackoverflow.com/questions/52175632/google-photos-library-api-ids-are-invalid