Google Domain Api Access Type Public Not Working

87 Views Asked by At

I have issue connect with type access, after post with help google domain api on google plus page, top part on my post I can't see "public" only private, domain or show only for me, how can I resolve it ? I spoke with google support he told me what on my console all good.

Scopes
http://i.prntscr.com/IVs4E5yHQLi30sYazCaKNw.png

Get Token
http://i.prntscr.com/afhAgxzgRz_AflG3fkLgrA.png

How I see on top my post 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);
0

There are 0 best solutions below