Google Photos Library API IDs are invalid

限于喜欢 提交于 2019-12-14 02:54:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!