Skip to main content

Documentation

Library Exports.Region

A region.

Constructors

constructor

new Region(youtube, data, full?)

Parameters

NameTypeDefault value
youtubeYouTubeundefined
dataSchema$I18nRegionundefined
fullbooleantrue

Defined in

entities/region.ts:53

Properties

data

data: any

The raw data of this region.

Defined in

entities/region.ts:36


full

full: boolean = true

Whether or not this is a full region object.

Defined in

entities/region.ts:31


gl

gl: string

The country code that uniquely identifies the region.

Defined in

entities/region.ts:46


id

id: string

The ID of this region.

Defined in

entities/region.ts:41


name

name: string

The region's name.

Defined in

entities/region.ts:51


youtube

youtube: YouTube

The YouTube object that created this region object.

Defined in

entities/region.ts:26


endpoint

Static endpoint: string = 'i18nRegions'

The name of the endpoint used for this entity.

Defined in

entities/region.ts:11


fields

Static fields: string = 'items(kind,id,snippet(gl,name))'

The fields to request for this entity.

Defined in

entities/region.ts:21


part

Static part: string = 'snippet'

The parts to request for this entity.

Defined in

entities/region.ts:16