class Grants extends Resource (View source)

The "grants" collection of methods.

Typical usage is:

 $androidpublisherService = new Google\Service\AndroidPublisher(...);
 $grants = $androidpublisherService->grants;

Methods

create(string $parent, Grant $postBody, array $optParams = [])

Grant access for a user to the given package. (grants.create)

delete(string $name, array $optParams = [])

Removes all access for the user to the given package or developer account.

patch(string $name, Grant $postBody, array $optParams = [])

Updates access for the user to the given package. (grants.patch)

Details

Grant create(string $parent, Grant $postBody, array $optParams = [])

Grant access for a user to the given package. (grants.create)

Parameters

string $parent

Required. The user which needs permission. Format: developers/{developer}/users/{user}

Grant $postBody
array $optParams

Optional parameters.

Return Value

Grant

Exceptions

Exception

delete(string $name, array $optParams = [])

Removes all access for the user to the given package or developer account.

(grants.delete)

Parameters

string $name

Required. The name of the grant to delete. Format: developers/{developer}/users/{email}/grants/{package_name}

array $optParams

Optional parameters.

Exceptions

Exception

Grant patch(string $name, Grant $postBody, array $optParams = [])

Updates access for the user to the given package. (grants.patch)

Parameters

string $name

Required. Resource name for this grant, following the pattern "developers/{developer}/users/{email}/grants/{package_name}". If this grant is for a draft app, the app ID will be used in this resource name instead of the package name.

Grant $postBody
array $optParams

Optional parameters.

Return Value

Grant

Exceptions

Exception