google_youtube_api_v3/youtube/comment

Types

A comment represents a single YouTube comment.

pub type Comment {
  Comment(
    etag: option.Option(String),
    id: option.Option(String),
    kind: option.Option(String),
    snippet: option.Option(CommentSnippet),
  )
}

Constructors

pub type CommentListResponse {
  CommentListResponse(
    etag: option.Option(String),
    event_id: option.Option(String),
    items: option.Option(List(Comment)),
    kind: option.Option(String),
    next_page_token: option.Option(String),
    page_info: option.Option(page_info.PageInfo),
    token_pagination: option.Option(
      token_pagination.TokenPagination,
    ),
    visitor_id: option.Option(String),
  )
}

Constructors

Basic details about a comment, such as its author and text.

pub type CommentSnippet {
  CommentSnippet(
    author_channel_id: option.Option(
      CommentSnippetAuthorChannelId,
    ),
    author_channel_url: option.Option(String),
    author_display_name: option.Option(String),
    author_profile_image_url: option.Option(String),
    can_rate: option.Option(Bool),
    channel_id: option.Option(String),
    image_url: option.Option(String),
    like_count: option.Option(Int),
    moderation_status: option.Option(ModerationStatus),
    parent_id: option.Option(String),
    published_at: option.Option(String),
    text_display: option.Option(String),
    text_original: option.Option(String),
    updated_at: option.Option(String),
    video_id: option.Option(String),
    viewer_rating: option.Option(ViewerRating),
  )
}

Constructors

Contains the id of the author’s YouTube channel, if any.

pub type CommentSnippetAuthorChannelId {
  CommentSnippetAuthorChannelId(value: option.Option(String))
}

Constructors

A comment thread represents information that applies to a top level comment and all its replies. It can also include the top level comment itself and some of the replies.

pub type CommentThread {
  CommentThread(
    etag: option.Option(String),
    id: option.Option(String),
    kind: option.Option(String),
    replies: option.Option(CommentThreadReplies),
    snippet: option.Option(CommentThreadSnippet),
  )
}

Constructors

pub type CommentThreadListResponse {
  CommentThreadListResponse(
    etag: option.Option(String),
    event_id: option.Option(String),
    items: option.Option(List(CommentThread)),
    kind: option.Option(String),
    next_page_token: option.Option(String),
    page_info: option.Option(page_info.PageInfo),
    token_pagination: option.Option(
      token_pagination.TokenPagination,
    ),
    visitor_id: option.Option(String),
  )
}

Constructors

Comments written in (direct or indirect) reply to the top level comment.

pub type CommentThreadReplies {
  CommentThreadReplies(comments: option.Option(List(Comment)))
}

Constructors

Basic details about a comment thread.

pub type CommentThreadSnippet {
  CommentThreadSnippet(
    can_reply: option.Option(Bool),
    channel_id: option.Option(String),
    is_public: option.Option(Bool),
    top_level_comment: option.Option(Comment),
    total_reply_count: option.Option(Int),
    video_id: option.Option(String),
  )
}

Constructors

The comment’s moderation status. Will not be set if the comments were requested through the id filter.

pub type ModerationStatus {
  ModerationStatusPublished
  ModerationStatusHeldForReview
  ModerationStatusLikelySpam
  ModerationStatusRejected
}

Constructors

  • ModerationStatusPublished
  • ModerationStatusHeldForReview
  • ModerationStatusLikelySpam
  • ModerationStatusRejected

The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future.

pub type ViewerRating {
  ViewerRatingNone
  ViewerRatingLike
  ViewerRatingDislike
}

Constructors

  • ViewerRatingNone
  • ViewerRatingLike
  • ViewerRatingDislike

Values

pub fn comment_decoder() -> decode.Decoder(Comment)
pub fn comment_list_response_decoder() -> decode.Decoder(
  CommentListResponse,
)
pub fn comment_list_response_to_json(
  value: CommentListResponse,
) -> json.Json
pub fn comment_snippet_author_channel_id_to_json(
  value: CommentSnippetAuthorChannelId,
) -> json.Json
pub fn comment_snippet_to_json(
  value: CommentSnippet,
) -> json.Json
pub fn comment_thread_list_response_to_json(
  value: CommentThreadListResponse,
) -> json.Json
pub fn comment_thread_replies_decoder() -> decode.Decoder(
  CommentThreadReplies,
)
pub fn comment_thread_replies_to_json(
  value: CommentThreadReplies,
) -> json.Json
pub fn comment_thread_snippet_decoder() -> decode.Decoder(
  CommentThreadSnippet,
)
pub fn comment_thread_snippet_to_json(
  value: CommentThreadSnippet,
) -> json.Json
pub fn comment_thread_to_json(value: CommentThread) -> json.Json
pub fn comment_to_json(value: Comment) -> json.Json
pub fn moderation_status_decoder() -> decode.Decoder(
  ModerationStatus,
)
pub fn moderation_status_to_string(
  value: ModerationStatus,
) -> String
pub fn viewer_rating_decoder() -> decode.Decoder(ViewerRating)
pub fn viewer_rating_to_string(value: ViewerRating) -> String
✨ Search Document