Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ReaderRevenueSubscriptionLinking

import { ReaderRevenueSubscriptionLinking } from "https://googleapis.deno.dev/v1/readerrevenuesubscriptionlinking:v1.ts";

readerrevenuesubscriptionlinking.googleapis.com API.

class ReaderRevenueSubscriptionLinking {
constructor(client?: CredentialsClient, baseUrl?: string);
async publicationsReadersDelete(name: string, opts?: PublicationsReadersDeleteOptions): Promise<DeleteReaderResponse>;
async publicationsReadersGet(name: string): Promise<Reader>;
async publicationsReadersGetEntitlements(name: string): Promise<ReaderEntitlements>;
async publicationsReadersUpdateEntitlements(
name: string,
): Promise<ReaderEntitlements>;
}

§Constructors

§
new ReaderRevenueSubscriptionLinking(client?: CredentialsClient, baseUrl?: string)
[src]

§Methods

§
publicationsReadersDelete(name: string, opts?: PublicationsReadersDeleteOptions): Promise<DeleteReaderResponse>
[src]

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.

@param name

Required. The resource name of the reader. Format: publications/{publication_id}/readers/{ppid}

§
publicationsReadersGet(name: string): Promise<Reader>
[src]

Gets a reader of a publication. Returns NOT_FOUND if the reader does not exist.

@param name

Required. The resource name of the reader. Format: publications/{publication_id}/readers/{ppid}

§
publicationsReadersGetEntitlements(name: string): Promise<ReaderEntitlements>
[src]

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.

@param name

Required. The name of the reader entitlements to retrieve. Format: publications/{publication_id}/readers/{reader_id}/entitlements

§
publicationsReadersUpdateEntitlements(name: string, req: ReaderEntitlements, opts?: PublicationsReadersUpdateEntitlementsOptions): Promise<ReaderEntitlements>
[src]

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.

@param name

Output only. The resource name of the singleton.