gleetube/resource/playlist_items
Types
Filter for playlistItems.list.
pub type PlaylistItemFilter {
ById(ids: List(String))
ByPlaylistId(playlist_id: String)
}
Constructors
-
ById(ids: List(String)) -
ByPlaylistId(playlist_id: String)
Valid part values for the playlistItems resource.
pub type PlaylistItemPart {
ContentDetails
Id
Snippet
Status
}
Constructors
-
ContentDetails -
Id -
Snippet -
Status
Values
pub fn delete(
client: client.Client,
playlist_item_id playlist_item_id: String,
on_behalf_of_content_owner on_behalf_of_content_owner: option.Option(
String,
),
) -> Result(Nil, error.GleeTubeError)
Delete a playlist item.
pub fn insert(
client: client.Client,
parts parts: List(PlaylistItemPart),
body body: json.Json,
on_behalf_of_content_owner on_behalf_of_content_owner: option.Option(
String,
),
) -> Result(playlist_item.PlaylistItem, error.GleeTubeError)
Insert a new playlist item.
pub fn list(
client: client.Client,
parts parts: List(PlaylistItemPart),
filter filter: PlaylistItemFilter,
max_results max_results: option.Option(Int),
on_behalf_of_content_owner on_behalf_of_content_owner: option.Option(
String,
),
page_token page_token: option.Option(String),
video_id video_id: option.Option(String),
) -> Result(
playlist_item.PlaylistItemListResponse,
error.GleeTubeError,
)
List playlist items matching the given filter.
pub fn list_all(
client: client.Client,
parts parts: List(PlaylistItemPart),
filter filter: PlaylistItemFilter,
on_behalf_of_content_owner on_behalf_of_content_owner: option.Option(
String,
),
video_id video_id: option.Option(String),
) -> Result(List(playlist_item.PlaylistItem), error.GleeTubeError)
Fetch all playlist items across all pages.
pub fn update(
client: client.Client,
parts parts: List(PlaylistItemPart),
body body: json.Json,
on_behalf_of_content_owner on_behalf_of_content_owner: option.Option(
String,
),
) -> Result(playlist_item.PlaylistItem, error.GleeTubeError)
Update a playlist item.