google-api - Google API 调用:“此 URL 不支持 HTTP 方法 PUT。” URL 可能有什么问题?
问题描述
回复:
<HEAD>
<TITLE>HTTP method PUT is not supported by this URL</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>HTTP method PUT is not supported by this URL</H1>
<H2>Error 405</H2>
</BODY>
</HTML>
, finalURL=https://www.googleapis.com/auth/admin/directory/v1/users/ttestaccount@pps.net, headers={Alt-Svc=h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43", Cache-Control=private, max-age=0, Content-Security-Policy=frame-ancestors 'self', Content-Type=text/html; charset=UTF-8, Date=Tue, 22 Sep 2020 23:03:06 GMT, Expires=Tue, 22 Sep 2020 23:03:06 GMT, Server=GSE, Transfer-Encoding=chunked, X-Content-Type-Options=nosniff, X-Frame-Options=SAMEORIGIN, X-XSS-Protection=1; mode=block}, initialURL=https://www.googleapis.com/auth/admin/directory/v1/users/ttestaccount@pps.net, statusCode=405.0, statusReason=HTTP method PUT is not supported by this URL}
<br><br>
似乎我使用的 URL 格式与此处的 Google 参考指南中推荐的 URL 格式相同: https ://developers.google.com/admin-sdk/directory/v1/reference/users/update
解决方案
推荐阅读
- react-native - 在 React Native 应用中实现 Java SDK
- python - 如何从 python 请求响应中访问某些项目?
- loops - 使用 while 循环重复 3 个小部件。飘飘然
- python - 根据来自另一个数据框的间隔将列添加到数据框
- java - 在 Toast 中获取 ratingbar 值
- tableau-api - 将客户要求的色板与 Tableau 中的销售人员匹配
- d3.js - 在 D3.js v4 中用轴转换包装长标签
- python - Numpy:将 2D 数组附加到 3D 数组
- kubernetes - 我在哪里可以找到有关 kubernetes ID 规范的信息,即 pod 后缀 ID 长度或 replicaSet 后缀 ID 长度?
- angular - Angular ngFor 和 CSS Grid - 如何检测第一列?