0

タイプ アクセスで接続に問題があります。Google プラス ページの 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);
4

0 に答える 0