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

YouTubeReporting

import { YouTubeReporting } from "https://googleapis.deno.dev/v1/youtubereporting:v1.ts";

Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files.

class YouTubeReporting {
constructor(client?: CredentialsClient, baseUrl?: string);
async jobsCreate(req: Job, opts?: JobsCreateOptions): Promise<Job>;
async jobsDelete(jobId: string, opts?: JobsDeleteOptions): Promise<Empty>;
async jobsGet(jobId: string, opts?: JobsGetOptions): Promise<Job>;
async jobsList(opts?: JobsListOptions): Promise<ListJobsResponse>;
async jobsReportsGet(
jobId: string,
reportId: string,
): Promise<Report>;
async jobsReportsList(jobId: string, opts?: JobsReportsListOptions): Promise<ListReportsResponse>;
async mediaDownload(resourceName: string): Promise<GdataMedia>;
async reportTypesList(opts?: ReportTypesListOptions): Promise<ListReportTypesResponse>;
}

§Constructors

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

§Methods

§
jobsCreate(req: Job, opts?: JobsCreateOptions): Promise<Job>
[src]

Creates a job and returns it.

§
jobsDelete(jobId: string, opts?: JobsDeleteOptions): Promise<Empty>
[src]

Deletes a job.

@param jobId

The ID of the job to delete.

§
jobsGet(jobId: string, opts?: JobsGetOptions): Promise<Job>
[src]

Gets a job.

@param jobId

The ID of the job to retrieve.

§
jobsList(opts?: JobsListOptions): Promise<ListJobsResponse>
[src]

Lists jobs.

§
jobsReportsGet(jobId: string, reportId: string, opts?: JobsReportsGetOptions): Promise<Report>
[src]

Gets the metadata of a specific report.

@param jobId

The ID of the job.

@param reportId

The ID of the report to retrieve.

§
jobsReportsList(jobId: string, opts?: JobsReportsListOptions): Promise<ListReportsResponse>
[src]

Lists reports created by a specific job. Returns NOT_FOUND if the job does not exist.

@param jobId

The ID of the job.

§
mediaDownload(resourceName: string): Promise<GdataMedia>
[src]

Method for media download. Download is supported on the URI /v1/media/{+name}?alt=media.

@param resourceName

Name of the media that is being downloaded.

§
reportTypesList(opts?: ReportTypesListOptions): Promise<ListReportTypesResponse>
[src]

Lists report types.