【发布时间】:2018-02-09 11:26:49
【问题描述】:
我在用户个人资料上发布问题(并非所有用户都出现错误)。
错误代码:400 错误消息:必须由 Google+ 信息页或代表 Google+ 信息页调用此方法。
$options = array( "headers" => array( 'content-type' => 'application/json;' ), "body" => json_encode($activity) );
$httpClient = $this->gplus->client->authorize();
$request = $httpClient->post("googleapis.com/plusPages/v2/people/$Id/activities";, $options);
$response = $request->getBody();
$googlePostResponse = $response->getContents();
$googlePostResponse = json_decode($googlePostResponse, TRUE);
【问题讨论】:
-
请附上您的代码
-
@DaImTo
code$options = array( "headers" => array( 'content-type' => 'application/json;' ), "body" => json_encode($activity) ); $httpClient = $this->gplus->client->authorize(); $request = $httpClient->post("googleapis.com/plusPages/v2/people/$Id/activities", $options); $response = $request->getBody(); $googlePostResponse = $response->getContents(); $googlePostResponse = json_decode($googlePostResponse, TRUE); -
您可能想要编辑您的主题和标签。那是域 api 而不是 google puls 这与 Google+ 无关
标签: google-api google-workspace google-domain-api