I am trying to create post on Google Plus using API. I am using http protocol for create post as below.
URL : https://www.googleapis.com/plusDomains/v1/people/me/activities
Method : POST
header parameter :
Content-Type :application/json
Authorization : "browser key"
I am using below json
as Request Body:
{
"object": {
"originalContent": "Happy Monday! #caseofthemondays",
},
"access": {
"items": [{
"type": "domain"
}],
"domainRestricted": true
}
}
Now 1 got response:
Status : 401 Unauthorized
{
"error": {
"errors": [
{
"domain": "global", "reason": "authError",
"message": "Invalid Credentials", "locationType": "header",
"location": "Authorization"
}
],
"code": 401, "message": "Invalid Credentials"
}
}
I am using correct key and also enable Google Plus API and Google domain api enable. Can anyone help me how can I create post using Google Plus API. I am trying create new post on Google Plus using HTTP protocol.