Skip to main content

Documentation

OAuth.OAuthVideos

Constructors

constructor

new OAuthVideos(oauth)

Parameters

NameType
oauthOAuth

Defined in

oauth/videos.ts:11

Properties

oauth

oauth: OAuth

Defined in

oauth/videos.ts:11

Methods

deleteVideo

deleteVideo(videoResolvable): Promise\<void>

Deletes a Video.

Parameters

NameTypeDescription
videoResolvableVideoResolvableThe video to delete.

Returns

Promise\<void>

Defined in

oauth/videos.ts:116


getMyRatings

getMyRatings\<T>(videoResolvable): Promise\<T extends any[] ? VideoRating[] : VideoRating>

Retrieve your rating on Videos.

Type parameters

NameType
Textends VideoResolvable | VideoResolvable[]

Parameters

NameTypeDescription
videoResolvableTThe video(s) to retrieve your rating from.

Returns

Promise\<T extends any[] ? VideoRating[] : VideoRating>

Defined in

oauth/videos.ts:33


getVideoAbuseReportReasons

getVideoAbuseReportReasons(): Promise\<VideoAbuseReportReason[]>

Gets a list of VideoAbuseReportReasons.

Returns

Promise\<VideoAbuseReportReason[]>

Defined in

oauth/videos.ts:188


rateVideo

rateVideo(videoResolvable, rating): Promise\<void>

Like, dislike, or remove a rating from a Video.

Parameters

NameTypeDescription
videoResolvableVideoResolvableThe video to rate.
rating"none" | "like" | "dislike"The rating to give the video.

Returns

Promise\<void>

Defined in

oauth/videos.ts:18


reportAbuse

reportAbuse(videoResolvable, reasonId, secondaryReasonId?, comments?, language?): Promise\<void>

Report a Video for abuse.

Parameters

NameTypeDescription
videoResolvableVideoResolvableThe video to report.
reasonIdstringThe reason for reporting. (IDs can be found here)
secondaryReasonId?stringAn optional second reason for reporting.
comments?stringAny additional information.
language?stringThe language that the reporter speaks.

Returns

Promise\<void>

Defined in

oauth/videos.ts:87


setThumbnail

setThumbnail(videoResolvable, image): Promise\<{ default?: Thumbnail ; high?: Thumbnail ; maxres?: Thumbnail ; medium?: Thumbnail ; standard?: Thumbnail }>

Sets a new Thumbnail for a Video.

Parameters

NameTypeDescription
videoResolvableVideoResolvableThe video to set the thumbnail for.
imageImageThe image data and type to upload.

Returns

Promise\<{ default?: Thumbnail ; high?: Thumbnail ; maxres?: Thumbnail ; medium?: Thumbnail ; standard?: Thumbnail }>

Defined in

oauth/videos.ts:172


updateVideo

updateVideo(video): Promise\<Video>

Updates a Video.
If your request does not specify a value for a property that already has a value, the property's existing value will be deleted.

Parameters

NameTypeDescription
videoVideoUpdateResourceThe updated video object.

Returns

Promise\<Video>

Defined in

oauth/videos.ts:132