且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

*** API 出现 500 错误

更新时间:2022-12-06 18:53:54

如果你得到一个 500 错误 等待几分钟,然后重试.如果您仍然收到 500 错误,请尝试等待几个小时或几天.请确保您提供了正确的频道 ID.

If you get a 500 Error wait some minutes and try again. If you still get a 500 Error try and wait some hours or some days. Please make sure that you are giving the right channel id.

在 API 中执行此操作的方法是,执行一个 channels->list 请求并使用该响应对象,对其进行修改并将其放回去.(最重要的是确保 id 存在并设置.)

The way to do it in API, do a channels->list request and use that response object, modify it and put it back. (Most important make sure the id is there and set.)

HTTP 请求

PUT https://www.googleapis.com/***/v3/channels

注意:此请求需要至少具有以下范围之一的授权.

Note: This request requires authorization with at least on of the following scopes.

使用 API Explorer 对实时数据调用此方法并查看 API 请求和响应:https://developers.google.com/***/v3/docs/channels/update#try-it

Use the API Explorer to call this method on live data and see the API request and response: https://developers.google.com/***/v3/docs/channels/update#try-it