PublicationsReaders
class PublicationsReaders extends Resource (View source)
The "readers" collection of methods.
Typical usage is:
$readerrevenuesubscriptionlinkingService = new Google\Service\SubscriptionLinking(...);
$readers = $readerrevenuesubscriptionlinkingService->publications_readers;
Methods
Removes a publication reader, effectively severing the association with a
Google user. If force
is set to true, any entitlements for this reader will
also be deleted. (Otherwise, the request will only work if the reader has no
entitlements.) - If the reader does not exist, return NOT_FOUND. - Return
FAILED_PRECONDITION if the force field is false (or unset) and entitlements
are present. (readers.delete)
Gets a reader of a publication. Returns NOT_FOUND if the reader does not exist. (readers.get)
Gets the reader entitlements for a publication reader. - Returns PERMISSION_DENIED if the caller does not have access. - Returns NOT_FOUND if the reader does not exist. (readers.getEntitlements)
Updates the reader entitlements for a publication reader. The entire reader entitlements will be overwritten by the new reader entitlements in the payload, like a PUT. - Returns PERMISSION_DENIED if the caller does not have access. - Returns NOT_FOUND if the reader does not exist.
Details
DeleteReaderResponse
delete(string $name, array $optParams = [])
Removes a publication reader, effectively severing the association with a
Google user. If force
is set to true, any entitlements for this reader will
also be deleted. (Otherwise, the request will only work if the reader has no
entitlements.) - If the reader does not exist, return NOT_FOUND. - Return
FAILED_PRECONDITION if the force field is false (or unset) and entitlements
are present. (readers.delete)
Reader
get(string $name, array $optParams = [])
Gets a reader of a publication. Returns NOT_FOUND if the reader does not exist. (readers.get)
ReaderEntitlements
getEntitlements(string $name, array $optParams = [])
Gets the reader entitlements for a publication reader. - Returns PERMISSION_DENIED if the caller does not have access. - Returns NOT_FOUND if the reader does not exist. (readers.getEntitlements)
ReaderEntitlements
updateEntitlements(string $name, ReaderEntitlements $postBody, array $optParams = [])
Updates the reader entitlements for a publication reader. The entire reader entitlements will be overwritten by the new reader entitlements in the payload, like a PUT. - Returns PERMISSION_DENIED if the caller does not have access. - Returns NOT_FOUND if the reader does not exist.
(readers.updateEntitlements)