Skip to main content

Documentation

Library Exports.Region

A region.

Constructors

constructor

new Region(youtube, data, full?)

Parameters

NameTypeDefault value
youtubeYouTubeundefined
dataanyundefined
fullbooleantrue

Defined in

entities/region.ts:52

Properties

data

data: any

The raw data of this region.

Defined in

entities/region.ts:35


full

full: boolean = true

Whether or not this is a full region object.

Defined in

entities/region.ts:30


gl

gl: string

The country code that uniquely identifies the region.

Defined in

entities/region.ts:45


id

id: string

The ID of this region.

Defined in

entities/region.ts:40


name

name: string

The region's name.

Defined in

entities/region.ts:50


youtube

youtube: YouTube

The YouTube object that created this region object.

Defined in

entities/region.ts:25


endpoint

Static endpoint: string = 'i18nRegions'

The name of the endpoint used for this entity.

Defined in

entities/region.ts:10


fields

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

The fields to request for this entity.

Defined in

entities/region.ts:20


part

Static part: string = 'snippet'

The parts to request for this entity.

Defined in

entities/region.ts:15