Google Photos Library API ID无效 [英] Google Photos Library API IDs are invalid

查看:107
本文介绍了Google Photos Library API ID无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

媒体项目,专辑和扩充项目的缓存ID停止工作.

Cached IDs of media items, albums and enrichment items stopped working.

例如,使用存储的媒体项目ID调用mediaItems.get会返回以下错误:

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"
    }
}

推荐答案

由Google Photos Library API返回的所有ID的格式已于9月5日更改.

The format of all IDs returned by the Google Photos Library API changed on September 5.

如果您在2018年9月5日之前存储了诸如专辑ID,媒体项目ID或扩充项目ID之类的ID,则由于ID的格式最近发生了变化,它们将不再起作用.获取要在您的应用程序中使用的新ID.

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.

您可以再次请求检索新的ID,例如,列出图书馆的内容,专辑或提交其他搜索请求.

You can make a request again to retrieve the new IDs, for example by listing the library contents, albums or submitting another search request.

请参见 API发行说明了解更多信息

这篇关于Google Photos Library API ID无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆