我有问题连接类型访问,在谷歌加页面上的帮助google域api发布后,我的帖子顶部我看不到“公共”只有私人,域或仅为我显示,我该如何解决它? 我采访谷歌支持,他告诉我我的控制台上有什么好处。
作用域
http://i.prntscr.com/IVs4E5yHQLi30sYazCaKNw.png
得到令牌
http://i.prntscr.com/afhAgxzgRz_AflG3fkLgrA.png
我如何看到我的帖子
http://i.prntscr.com/VqeWNM9DS46SyHsQQS3XHw.png
$plusDomain = new \Google_Service_PlusDomains($client);
$activity = new \Google_Service_PlusDomains_Activity();
$obj = new \Google_Service_PlusDomains_ActivityObject();
$access = new \Google_Service_PlusDomains_Acl();
$access_type = new \Google_Service_PlusDomains_PlusDomainsAclentryResource();
$comment = 'new comments';
$me = $plusDomain->people->get('me');
$userId = $me->id;
$obj->setContent($comment);
$access->setDomainRestricted(true);
$access_type->setType('public');
$access->setItems(array($access_type));
$activity->setObject($obj);
$activity->setAccess($access);
$plusDomain->activities->insert($userId, $activity);