尝试使用 Google API 的 REST 调用(而不是通过 JavaScript 或任何其他编码语言)创建自动化博客文章。我可以使用 api Key 和 Auth2.0 Client 创建所有的 Google。https://console.cloud.google.com/apis/credentials APi 和 auth2 由于 Blogger 的 GET 调用使用 API 密钥,我可以进行所有的获取活动
为了使用 API 发布博客(插入:https ://developers.google.com/blogger/docs/3.0/using#AddingAPost ),需要访问令牌进行身份验证。要获取用于身份验证的访问令牌,请参阅https://developers.google.com/identity/protocols/oauth2/javascript-implicit-flow#oauth-2.0-endpoints。获得 200 OK 但没有获得访问令牌。
发布https://accounts.google.com/o/oauth2/v2/auth
POST 数据:client_id=.apps.googleusercontent.com&response_type=token&redirect_uri=http://localhost:8080&scope=https://www.googleapis.com/auth/blogger