class AccountsInvitations extends Resource (View source)

The "invitations" collection of methods.

Typical usage is:

 $mybusinessaccountmanagementService = new Google\Service\MyBusinessAccountManagement(...);
 $invitations = $mybusinessaccountmanagementService->accounts_invitations;

Methods

accept(string $name, AcceptInvitationRequest $postBody, array $optParams = [])

Accepts the specified invitation. (invitations.accept)

decline(string $name, DeclineInvitationRequest $postBody, array $optParams = [])

Declines the specified invitation. (invitations.decline)

listAccountsInvitations(string $parent, array $optParams = [])

Lists pending invitations for the specified account.

Details

MybusinessaccountmanagementEmpty accept(string $name, AcceptInvitationRequest $postBody, array $optParams = [])

Accepts the specified invitation. (invitations.accept)

Parameters

string $name

Required. The name of the invitation that is being accepted. accounts/{account_id}/invitations/{invitation_id}

AcceptInvitationRequest $postBody
array $optParams

Optional parameters.

Return Value

MybusinessaccountmanagementEmpty

Exceptions

Exception

MybusinessaccountmanagementEmpty decline(string $name, DeclineInvitationRequest $postBody, array $optParams = [])

Declines the specified invitation. (invitations.decline)

Parameters

string $name

Required. The name of the account invitation that is being declined. accounts/{account_id}/invitations/{invitation_id}

DeclineInvitationRequest $postBody
array $optParams

Optional parameters.

Return Value

MybusinessaccountmanagementEmpty

Exceptions

Exception

ListInvitationsResponse listAccountsInvitations(string $parent, array $optParams = [])

Lists pending invitations for the specified account.

(invitations.listAccountsInvitations)

Parameters

string $parent

Required. The name of the account from which the list of invitations is being retrieved. accounts/{account_id}/invitations

array $optParams

Optional parameters.

Return Value

ListInvitationsResponse

Exceptions

Exception