无效凭据 google 加上 api
invalid credentials google plus api
我正在尝试使用 API 在 Google Plus 上创建 post。我正在使用 http 协议创建 post,如下所示。
URL : https://www.googleapis.com/plusDomains/v1/people/me/activities
Method : POST
header parameter :
Content-Type :application/json
Authorization : "browser key"
我使用以下 json
作为请求正文:
{
"object": {
"originalContent": "Happy Monday! #caseofthemondays",
},
"access": {
"items": [{
"type": "domain"
}],
"domainRestricted": true
}
}
现在 1 得到回复:
Status : 401 Unauthorized
{
"error": {
"errors": [
{
"domain": "global", "reason": "authError",
"message": "Invalid Credentials", "locationType": "header",
"location": "Authorization"
}
],
"code": 401, "message": "Invalid Credentials"
}
}
我使用了正确的密钥并且还启用了 Google Plus API 和 Google 域 api 启用。谁能帮助我如何使用 Google Plus API 创建 post。我正在尝试使用 HTTP 协议在 Google Plus 上创建新的 post。
我认为您混淆了 Google+ 域和 Google+ 社交媒体平台。
Develop business apps that integrate with Google+
Develop business apps that integrate with Google+ With the Google+
Domains API, Google Apps customers and ISVs can build custom
Google+ functionality and services for people who use Google Apps at
college, at work, or at home. Organizations can develop tools to
interact with Google+ features such as posts, comments, and circles.
These tools let your users share information, reinforce
communications, and grow productivity within your organization.
Getting Started with the Google+ Domains API
The Google+ Domains API offers a number of additional features
compared to the Google+ API v1: Write posts to the stream restricted to the domain.
这是google apps domain
这是Google plus
它们是两个不同的系统,有两个不同的 API。 Google+ 网站有 Google+ API 允许只读访问查看内容。它不允许您 post 到用户流。
Google 应用程序主要由公司使用,并且具有 Google+ 域 API,允许您 post 向域中的其他成员发送消息。这不是 public 除了域的其他成员之外没有人会看到它。
您需要为您的公司注册一个 Google 域帐户才能使用它。它不是免费的
我正在尝试使用 API 在 Google Plus 上创建 post。我正在使用 http 协议创建 post,如下所示。
URL : https://www.googleapis.com/plusDomains/v1/people/me/activities
Method : POST
header parameter :
Content-Type :application/json
Authorization : "browser key"
我使用以下 json
作为请求正文:
{
"object": {
"originalContent": "Happy Monday! #caseofthemondays",
},
"access": {
"items": [{
"type": "domain"
}],
"domainRestricted": true
}
}
现在 1 得到回复:
Status : 401 Unauthorized
{
"error": {
"errors": [
{
"domain": "global", "reason": "authError",
"message": "Invalid Credentials", "locationType": "header",
"location": "Authorization"
}
],
"code": 401, "message": "Invalid Credentials"
}
}
我使用了正确的密钥并且还启用了 Google Plus API 和 Google 域 api 启用。谁能帮助我如何使用 Google Plus API 创建 post。我正在尝试使用 HTTP 协议在 Google Plus 上创建新的 post。
我认为您混淆了 Google+ 域和 Google+ 社交媒体平台。
Develop business apps that integrate with Google+
Develop business apps that integrate with Google+ With the Google+ Domains API, Google Apps customers and ISVs can build custom Google+ functionality and services for people who use Google Apps at college, at work, or at home. Organizations can develop tools to interact with Google+ features such as posts, comments, and circles. These tools let your users share information, reinforce communications, and grow productivity within your organization.
Getting Started with the Google+ Domains API
The Google+ Domains API offers a number of additional features compared to the Google+ API v1: Write posts to the stream restricted to the domain.
这是google apps domain 这是Google plus
它们是两个不同的系统,有两个不同的 API。 Google+ 网站有 Google+ API 允许只读访问查看内容。它不允许您 post 到用户流。
Google 应用程序主要由公司使用,并且具有 Google+ 域 API,允许您 post 向域中的其他成员发送消息。这不是 public 除了域的其他成员之外没有人会看到它。
您需要为您的公司注册一个 Google 域帐户才能使用它。它不是免费的