Skip to main content

Documentation

OAuth.OAuthVideos

Constructors

constructor

new OAuthVideos(oauth)

Parameters

NameType
oauthOAuth

Defined in

oauth/videos.ts:10

Properties

oauth

oauth: OAuth

Defined in

oauth/videos.ts:10

Methods

deleteVideo

deleteVideo(videoResolvable): Promise<void>

Deletes a Video. Last tested NEVER

Parameters

NameTypeDescription
videoResolvableVideoResolvableThe video to delete.

Returns

Promise<void>

Defined in

oauth/videos.ts:91


getMyRatings

getMyRatings(videoResolvables): Promise<{ rating: "none" | "like" | "dislike" | "unspecified" ; videoId: string }[]>

Retrieve your rating on Videos.
Last tested 05/18/2020 11:48. PASSING

Parameters

NameTypeDescription
videoResolvablesVideoResolvable[]The video(s) to retrieve your rating from.

Returns

Promise<{ rating: "none" | "like" | "dislike" | "unspecified" ; videoId: string }[]>

Defined in

oauth/videos.ts:33


getVideoAbuseReportReasons

getVideoAbuseReportReasons(): Promise<VideoAbuseReportReason[]>

Gets a list of VideoAbuseReportReasons. Last tested 05/18/2020 11:48. PASSING

Returns

Promise<VideoAbuseReportReason[]>

Defined in

oauth/videos.ts:166


rateVideo

rateVideo(videoResolvable, rating): Promise<void>

Like, dislike, or remove a rating from a Video. Last tested 05/18/2020 11:48. PASSING

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.
Last tested NEVER

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:61


setThumbnail

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

Sets a new Thumbnail for a Video.
Last tested 05/18/2020 11:48. PASSING

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:149


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.
Last tested NEVER

Parameters

NameTypeDescription
videoVideoUpdateResourceThe updated video object.

Returns

Promise<Video>

Defined in

oauth/videos.ts:108