File: /var/www/quadcode.com/src/type/youtube.ts
export interface IYoutubePlaylistResponse {
kind: string;
etag: string;
items: IYoutubeVideo[];
pageInfo: {
totalResults: number;
resultsPerPage: number;
};
}
export interface IYoutubeVideo {
kind: string;
etag: string;
id: string;
snippet: {
publishedAt: string;
channelId: string;
title: string;
description: string;
thumbnails: {
default: IVideoObject;
medium: IVideoObject;
high: IVideoObject;
standard: IVideoObject;
maxres: IVideoObject;
};
channelTitle: string;
playlistId: string;
position: number;
resourceId: {
kind: string;
videoId: string;
};
videoOwnerChannelTitle: string;
videoOwnerChannelId: string;
};
contentDetails: {
videoId: string;
videoPublishedAt: string;
};
}
interface IVideoObject {
url: string;
width: number;
height: number;
}