【发布时间】:2017-01-19 11:57:38
【问题描述】:
嗨,当我通过 google plus 中的统一引擎 api 发送消息时,我收到了这个错误
stdClass Object
(
[Status] => stdClass Object
(
[GP] => stdClass Object
(
[status] => 504
[info] => 504 Connection Error: Post https://googleplus-v2connector.unificationengine
.com/v2/message/send: EOF:
)
)
[URIs] => Array
(
)
)
unificationengine api 可以在 facebook 和 twitter 上正常工作,但不能在 googleplus 上工作
我的代码是
$app = new UEApp("APP_KEY","APP_SECRATE");
$user = new UEUser("USER_KEY","USER_SECRET");
$connection = $user->add_connection('google', "googleplus", $access_token);
$options = array(
"receivers" => array(
array(
"name"=> "Me"
)
),
"message"=>array(
"subject"=>"ABC",
"body"=> "",
"image"=>$shareImageUrl,
"link"=>array(
"uri"=> $link,
"description"=> "",
"title"=>"Click here for view"
)
)
);
//Send the message and get their uris
$uris = $connection->send_message($options);
print_r($uris);
$myArray = explode('/', $uris[0]);
return $myArray[3];
【问题讨论】:
标签: php unificationengine