0

我在连接类型访问时遇到问题,在 google plus 页面上使用帮助 google domain 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);
4

0 回答 0