gleetube/resource/channel_sections

Types

pub type ChannelSectionFilter {
  ByChannelId(channel_id: String)
  ById(ids: List(String))
  Mine
}

Constructors

  • ByChannelId(channel_id: String)
  • ById(ids: List(String))
  • Mine
pub type ChannelSectionPart {
  ContentDetails
  Id
  Snippet
}

Constructors

  • ContentDetails
  • Id
  • Snippet

Values

pub fn delete(
  client: client.Client,
  section_id section_id: String,
  on_behalf_of_content_owner on_behalf_of_content_owner: option.Option(
    String,
  ),
) -> Result(Nil, error.GleeTubeError)
pub fn insert(
  client: client.Client,
  parts parts: List(ChannelSectionPart),
  body body: json.Json,
  on_behalf_of_content_owner on_behalf_of_content_owner: option.Option(
    String,
  ),
  on_behalf_of_content_owner_channel on_behalf_of_content_owner_channel: option.Option(
    String,
  ),
) -> Result(channel_section.ChannelSection, error.GleeTubeError)
pub fn list(
  client: client.Client,
  parts parts: List(ChannelSectionPart),
  filter filter: ChannelSectionFilter,
  hl hl: option.Option(String),
  on_behalf_of_content_owner on_behalf_of_content_owner: option.Option(
    String,
  ),
) -> Result(
  channel_section.ChannelSectionListResponse,
  error.GleeTubeError,
)
pub fn update(
  client: client.Client,
  parts parts: List(ChannelSectionPart),
  body body: json.Json,
  on_behalf_of_content_owner on_behalf_of_content_owner: option.Option(
    String,
  ),
) -> Result(channel_section.ChannelSection, error.GleeTubeError)
Search Document