youtube

package
v0.0.0-...-6eef5cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2014 License: Apache-2.0, BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package youtube provides access to the YouTube API.

See https://developers.google.com/youtube

Usage example:

import "code.google.com/p/google-api-go-client/youtube/v3alpha"
...
youtubeService, err := youtube.New(oauthHttpClient)

Index

Constants

View Source
const (
	// Manage your YouTube account
	YoutubeScope = "https://www.googleapis.com/auth/youtube"

	// View your YouTube account
	YoutubeReadonlyScope = "https://www.googleapis.com/auth/youtube.readonly"

	// Manage your YouTube videos
	YoutubeUploadScope = "https://www.googleapis.com/auth/youtube.upload"

	// View and manage your assets and associated content on YouTube
	YoutubepartnerScope = "https://www.googleapis.com/auth/youtubepartner"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivitiesListCall

type ActivitiesListCall struct {
	// contains filtered or unexported fields
}

func (*ActivitiesListCall) Do

func (*ActivitiesListCall) MaxResults

func (c *ActivitiesListCall) MaxResults(maxResults int64) *ActivitiesListCall

MaxResults sets the optional parameter "maxResults": Maximum number of results to return

func (*ActivitiesListCall) StartIndex

func (c *ActivitiesListCall) StartIndex(startIndex int64) *ActivitiesListCall

StartIndex sets the optional parameter "startIndex": Index of the first element to return (starts at 0)

type ActivitiesService

type ActivitiesService struct {
	// contains filtered or unexported fields
}

func (*ActivitiesService) List

List: Browse the YouTube channel activity collection.

type Activity

type Activity struct {
	// ContentDetails: Type specific information about the activity.
	ContentDetails *ActivityContentDetails `json:"contentDetails,omitempty"`

	// Etag: The eTag of the activity.
	Etag string `json:"etag,omitempty"`

	// Id: The unique ID of the activity.
	Id string `json:"id,omitempty"`

	// Snippet: Basic details about the activity: title, description,
	// thumbnails.
	Snippet *ActivitySnippet `json:"snippet,omitempty"`
}

type ActivityContentDetails

type ActivityContentDetails struct {
	// BulletinPosted: Only present if the type is "bulletinPosted".
	BulletinPosted *ActivityContentDetailsBulletinPosted `json:"bulletinPosted,omitempty"`

	// SubscriptionAdded: Only present if the type is "subscriptionAdded".
	SubscriptionAdded *ActivityContentDetailsSubscriptionAdded `json:"subscriptionAdded,omitempty"`

	// VideoAddedToPlaylist: Only present if the type is
	// "videoAddedToPlaylist".
	VideoAddedToPlaylist *ActivityContentDetailsVideoAddedToPlaylist `json:"videoAddedToPlaylist,omitempty"`

	// VideoCommented: Only present if the type is "videoCommented".
	VideoCommented *ActivityContentDetailsVideoCommented `json:"videoCommented,omitempty"`

	// VideoFavorited: Only present if the type is "videoFavorited".
	VideoFavorited *ActivityContentDetailsVideoFavorited `json:"videoFavorited,omitempty"`

	// VideoRated: Only present if the type is "videoRated".
	VideoRated *ActivityContentDetailsVideoRated `json:"videoRated,omitempty"`

	// VideoRecommended: Only set if the type is "videoRecommended".
	VideoRecommended *ActivityContentDetailsVideoRecommended `json:"videoRecommended,omitempty"`

	// VideoUploaded: Only present if the type is "videoUploaded".
	VideoUploaded *ActivityContentDetailsVideoUploaded `json:"videoUploaded,omitempty"`
}

type ActivityContentDetailsBulletinPosted

type ActivityContentDetailsBulletinPosted struct {
	// BulletinText: Text if the posted bulletin.
	BulletinText string `json:"bulletinText,omitempty"`

	// PlaylistId: ID of the playlist this bulletin is about.
	PlaylistId string `json:"playlistId,omitempty"`

	// VideoId: ID of the video this bulletin is about.
	VideoId string `json:"videoId,omitempty"`
}

type ActivityContentDetailsSubscriptionAdded

type ActivityContentDetailsSubscriptionAdded struct {
	// ChannelId: ID of the channel subscribed to.
	ChannelId string `json:"channelId,omitempty"`
}

type ActivityContentDetailsVideoAddedToPlaylist

type ActivityContentDetailsVideoAddedToPlaylist struct {
	// PlaylistId: ID of the playlist the video was added to.
	PlaylistId string `json:"playlistId,omitempty"`

	// VideoId: ID of the video added to the playlist.
	VideoId string `json:"videoId,omitempty"`
}

type ActivityContentDetailsVideoCommented

type ActivityContentDetailsVideoCommented struct {
	// VideoId: ID of the commented video.
	VideoId string `json:"videoId,omitempty"`
}

type ActivityContentDetailsVideoFavorited

type ActivityContentDetailsVideoFavorited struct {
	// VideoId: ID of the favorited video.
	VideoId string `json:"videoId,omitempty"`
}

type ActivityContentDetailsVideoRated

type ActivityContentDetailsVideoRated struct {
	// VideoId: ID of the rated video.
	VideoId string `json:"videoId,omitempty"`
}

type ActivityContentDetailsVideoRecommended

type ActivityContentDetailsVideoRecommended struct {
	// RecommendationReason: Reason for which the video was recommended.
	RecommendationReason string `json:"recommendationReason,omitempty"`

	// SeedVideoId: ID of the video that caused this recommendation.
	SeedVideoId string `json:"seedVideoId,omitempty"`

	// VideoId: ID of the recommended video.
	VideoId string `json:"videoId,omitempty"`
}

type ActivityContentDetailsVideoUploaded

type ActivityContentDetailsVideoUploaded struct {
	// VideoId: ID of the uploaded video.
	VideoId string `json:"videoId,omitempty"`
}

type ActivityListResponse

type ActivityListResponse struct {
	// Activities: Map of activities matching the request criteria, keyed by
	// activity id.
	Activities *ActivityListResponseActivities `json:"activities,omitempty"`

	// Etag: The eTag of the response.
	Etag string `json:"etag,omitempty"`

	// Kind: The type of this API response.
	Kind string `json:"kind,omitempty"`
}

type ActivityListResponseActivities

type ActivityListResponseActivities struct {
}

type ActivitySnippet

type ActivitySnippet struct {
	// ChannelId: Channel responsible for this activity.
	ChannelId string `json:"channelId,omitempty"`

	// Description: Description of the main resource.
	Description string `json:"description,omitempty"`

	// GroupId: Id of the group that this activity is part of.
	GroupId string `json:"groupId,omitempty"`

	// PublishedAt: Time when this activity was created.
	PublishedAt string `json:"publishedAt,omitempty"`

	// Thumbnails: Thumbnails of the main resource.
	Thumbnails *ActivitySnippetThumbnails `json:"thumbnails,omitempty"`

	// Title: Title of the main resource.
	Title string `json:"title,omitempty"`

	// Type: Category of the activity activity.
	Type string `json:"type,omitempty"`
}

type ActivitySnippetThumbnails

type ActivitySnippetThumbnails struct {
}

type Channel

type Channel struct {
	// ContentDetails: Information about the channel content: upload
	// playlist id, privacy status.
	ContentDetails *ChannelContentDetails `json:"contentDetails,omitempty"`

	// Etag: The eTag of the channel.
	Etag string `json:"etag,omitempty"`

	// Id: The unique ID of the channel.
	Id string `json:"id,omitempty"`

	// Kind: The type of this API resource.
	Kind string `json:"kind,omitempty"`

	// Snippet: Basic details about the channel: title, description, and
	// thumbnails.
	Snippet *ChannelSnippet `json:"snippet,omitempty"`

	// Statistics: Statistics about the channel: number of subscribers,
	// views, and comments.
	Statistics *ChannelStatistics `json:"statistics,omitempty"`

	// TopicDetails: Information about channel topics
	TopicDetails *ChannelTopicDetails `json:"topicDetails,omitempty"`
}

type ChannelContentDetails

type ChannelContentDetails struct {
	// PrivacyStatus: Privacy status of the channel.
	PrivacyStatus string `json:"privacyStatus,omitempty"`

	// Uploads: The ID of the playlist containing the uploads of this
	// channel.
	Uploads string `json:"uploads,omitempty"`
}

type ChannelListResponse

type ChannelListResponse struct {
	// Channels: Map of channels matching the request criteria, keyed by
	// channel id.
	Channels *ChannelListResponseChannels `json:"channels,omitempty"`

	// Etag: The eTag of the response.
	Etag string `json:"etag,omitempty"`

	// Kind: The type of this API response.
	Kind string `json:"kind,omitempty"`
}

type ChannelListResponseChannels

type ChannelListResponseChannels struct {
}

type ChannelSnippet

type ChannelSnippet struct {
	// Description: Description of the channel.
	Description string `json:"description,omitempty"`

	// Thumbnails: Channel thumbnails.
	Thumbnails *ChannelSnippetThumbnails `json:"thumbnails,omitempty"`

	// Title: Title of the channel.
	Title string `json:"title,omitempty"`
}

type ChannelSnippetThumbnails

type ChannelSnippetThumbnails struct {
}

type ChannelStatistics

type ChannelStatistics struct {
	// CommentCount: Number of comments for this channel.
	CommentCount uint64 `json:"commentCount,omitempty,string"`

	// SubscriberCount: Number of subscribers to this channel.
	SubscriberCount uint64 `json:"subscriberCount,omitempty,string"`

	// VideoCount: Number of videos in the channel.
	VideoCount uint64 `json:"videoCount,omitempty,string"`

	// ViewCount: Number of times the channel has been viewed.
	ViewCount uint64 `json:"viewCount,omitempty,string"`
}

type ChannelTopicDetails

type ChannelTopicDetails struct {
	// Topics: List of topic ids for this channel *
	Topics []string `json:"topics,omitempty"`
}

type ChannelsListCall

type ChannelsListCall struct {
	// contains filtered or unexported fields
}

func (*ChannelsListCall) CategoryId

func (c *ChannelsListCall) CategoryId(categoryId string) *ChannelsListCall

CategoryId sets the optional parameter "categoryId": Fiter to retrieve the channels within the given category ID.

func (*ChannelsListCall) ContentOwnerId

func (c *ChannelsListCall) ContentOwnerId(contentOwnerId string) *ChannelsListCall

ContentOwnerId sets the optional parameter "contentOwnerId": The authenticated user acts on behalf of this content owner.

func (*ChannelsListCall) Do

func (*ChannelsListCall) Id

Id sets the optional parameter "id": YouTube IDs of the channels to be returned.

func (*ChannelsListCall) MaxResults

func (c *ChannelsListCall) MaxResults(maxResults int64) *ChannelsListCall

MaxResults sets the optional parameter "maxResults": Maximum number of results to return

func (*ChannelsListCall) Mine

func (c *ChannelsListCall) Mine(mine string) *ChannelsListCall

Mine sets the optional parameter "mine": Filter to only channels owned by authenticated user.

func (*ChannelsListCall) MySubscribers

func (c *ChannelsListCall) MySubscribers(mySubscribers string) *ChannelsListCall

MySubscribers sets the optional parameter "mySubscribers": Filter to channels that subscribed to the channel of the authenticated user.

func (*ChannelsListCall) StartIndex

func (c *ChannelsListCall) StartIndex(startIndex int64) *ChannelsListCall

StartIndex sets the optional parameter "startIndex": Index of the first element to return (starts at 0)

type ChannelsService

type ChannelsService struct {
	// contains filtered or unexported fields
}

func (*ChannelsService) List

func (r *ChannelsService) List(part string) *ChannelsListCall

List: Browse the YouTube channel collection. Either the 'id' or 'mine' parameter must be set.

type PageInfo

type PageInfo struct {
	// ResultPerPage: The number of results to display for each page.
	ResultPerPage int64 `json:"resultPerPage,omitempty"`

	// StartIndex: The index position of the first result to display.
	StartIndex int64 `json:"startIndex,omitempty"`

	// TotalResults: The total number of results.
	TotalResults int64 `json:"totalResults,omitempty"`
}

type Playlist

type Playlist struct {
	// Etag: The eTag of the playlist.
	Etag string `json:"etag,omitempty"`

	// Id: The unique id of the playlist.
	Id string `json:"id,omitempty"`

	// Kind: The type of this API resource.
	Kind string `json:"kind,omitempty"`

	// Snippet: Basic details about the playlist: title, description,
	// thumbnails.
	Snippet *PlaylistSnippet `json:"snippet,omitempty"`
}

type PlaylistItem

type PlaylistItem struct {
	// ContentDetails: Content details about the playlist item: start and
	// end clipping time.
	ContentDetails *PlaylistItemContentDetails `json:"contentDetails,omitempty"`

	// Etag: The eTag of the playlist item.
	Etag string `json:"etag,omitempty"`

	// Id: The unique id of the playlist item.
	Id string `json:"id,omitempty"`

	// Kind: The type of this API resource.
	Kind string `json:"kind,omitempty"`

	// Snippet: Basic details about the playlist item: title, description,
	// thumbnails.
	Snippet *PlaylistItemSnippet `json:"snippet,omitempty"`
}

type PlaylistItemContentDetails

type PlaylistItemContentDetails struct {
	// EndAt: The time video playback ends.
	EndAt string `json:"endAt,omitempty"`

	// Note: The user-generated note for this item.
	Note string `json:"note,omitempty"`

	// StartAt: The time video playback begins.
	StartAt string `json:"startAt,omitempty"`

	// VideoId: ID of the video.
	VideoId string `json:"videoId,omitempty"`
}

type PlaylistItemListResponse

type PlaylistItemListResponse struct {
	// Etag: The eTag of the response.
	Etag string `json:"etag,omitempty"`

	// Kind: The type of this API response.
	Kind string `json:"kind,omitempty"`

	// PlaylistItems: Map of playlist items matching the request criteria,
	// keyed by id.
	PlaylistItems *PlaylistItemListResponsePlaylistItems `json:"playlistItems,omitempty"`
}

type PlaylistItemListResponsePlaylistItems

type PlaylistItemListResponsePlaylistItems struct {
}

type PlaylistItemSnippet

type PlaylistItemSnippet struct {
	// ChannelId: Author of the playlist item.
	ChannelId string `json:"channelId,omitempty"`

	// Description: Description of the playlist item.
	Description string `json:"description,omitempty"`

	// PlaylistId: The playlist the item is part of.
	PlaylistId string `json:"playlistId,omitempty"`

	// Position: The position of the item within the playlist.
	Position int64 `json:"position,omitempty"`

	// PublishedAt: The date and time the playlist item was created.
	PublishedAt string `json:"publishedAt,omitempty"`

	// ResourceId: The ID of the resource referenced by the playlist item.
	ResourceId *ResourceId `json:"resourceId,omitempty"`

	// Title: Title of the playlist item.
	Title string `json:"title,omitempty"`
}

type PlaylistItemsDeleteCall

type PlaylistItemsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*PlaylistItemsDeleteCall) Do

type PlaylistItemsInsertCall

type PlaylistItemsInsertCall struct {
	// contains filtered or unexported fields
}

func (*PlaylistItemsInsertCall) Do

type PlaylistItemsListCall

type PlaylistItemsListCall struct {
	// contains filtered or unexported fields
}

func (*PlaylistItemsListCall) ContentOwnerId

func (c *PlaylistItemsListCall) ContentOwnerId(contentOwnerId string) *PlaylistItemsListCall

ContentOwnerId sets the optional parameter "contentOwnerId": The authenticated user acts on behalf of this content owner.

func (*PlaylistItemsListCall) Do

func (*PlaylistItemsListCall) Id

Id sets the optional parameter "id": YouTube IDs of the playlist items to be returned.

func (*PlaylistItemsListCall) MaxResults

func (c *PlaylistItemsListCall) MaxResults(maxResults int64) *PlaylistItemsListCall

MaxResults sets the optional parameter "maxResults": Maximum number of results to return

func (*PlaylistItemsListCall) PlaylistId

func (c *PlaylistItemsListCall) PlaylistId(playlistId string) *PlaylistItemsListCall

PlaylistId sets the optional parameter "playlistId": Retrieves playlist items from the given playlist id.

func (*PlaylistItemsListCall) StartIndex

func (c *PlaylistItemsListCall) StartIndex(startIndex int64) *PlaylistItemsListCall

StartIndex sets the optional parameter "startIndex": Index of the first element to return (starts at 0)

type PlaylistItemsService

type PlaylistItemsService struct {
	// contains filtered or unexported fields
}

func (*PlaylistItemsService) Delete

Delete: Deletes playlist items by IDs.

func (*PlaylistItemsService) Insert

func (r *PlaylistItemsService) Insert(playlistitem *PlaylistItem) *PlaylistItemsInsertCall

Insert: Insert a resource into a playlist.

func (*PlaylistItemsService) List

List: Browse the YouTube playlist collection.

func (*PlaylistItemsService) Update

func (r *PlaylistItemsService) Update(playlistitem *PlaylistItem) *PlaylistItemsUpdateCall

Update: Update a playlist item.

type PlaylistItemsUpdateCall

type PlaylistItemsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*PlaylistItemsUpdateCall) Do

type PlaylistListResponse

type PlaylistListResponse struct {
	// Etag: The eTag of the response.
	Etag string `json:"etag,omitempty"`

	// Kind: The type of this API response.
	Kind string `json:"kind,omitempty"`

	// Playlists: Map of playlists matching the request criteria, keyed by
	// id.
	Playlists *PlaylistListResponsePlaylists `json:"playlists,omitempty"`
}

type PlaylistListResponsePlaylists

type PlaylistListResponsePlaylists struct {
}

type PlaylistSnippet

type PlaylistSnippet struct {
	// ChannelId: Author of the playlist.
	ChannelId string `json:"channelId,omitempty"`

	// Description: Description of the playlist.
	Description string `json:"description,omitempty"`

	// PublishedAt: The date and time the playlist was created.
	PublishedAt string `json:"publishedAt,omitempty"`

	// Tags: Textual tags associated with the playlist.
	Tags []string `json:"tags,omitempty"`

	// Title: Title of the playlist.
	Title string `json:"title,omitempty"`
}

type PlaylistsDeleteCall

type PlaylistsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*PlaylistsDeleteCall) Do

func (c *PlaylistsDeleteCall) Do() error

type PlaylistsListCall

type PlaylistsListCall struct {
	// contains filtered or unexported fields
}

func (*PlaylistsListCall) ContentOwnerId

func (c *PlaylistsListCall) ContentOwnerId(contentOwnerId string) *PlaylistsListCall

ContentOwnerId sets the optional parameter "contentOwnerId": The authenticated user acts on behalf of this content owner.

func (*PlaylistsListCall) Do

func (*PlaylistsListCall) Id

Id sets the optional parameter "id": Comma-separated YouTube IDs of the playlists to be returned.

func (*PlaylistsListCall) MaxResults

func (c *PlaylistsListCall) MaxResults(maxResults int64) *PlaylistsListCall

MaxResults sets the optional parameter "maxResults": Maximum number of results to return

func (*PlaylistsListCall) Mine

Mine sets the optional parameter "mine": Flag indicating only return the playlists of the authenticated user.

func (*PlaylistsListCall) StartIndex

func (c *PlaylistsListCall) StartIndex(startIndex int64) *PlaylistsListCall

StartIndex sets the optional parameter "startIndex": Index of the first element to return (starts at 0)

type PlaylistsService

type PlaylistsService struct {
	// contains filtered or unexported fields
}

func (*PlaylistsService) Delete

Delete: Deletes playlists by IDs.

func (*PlaylistsService) List

func (r *PlaylistsService) List(part string) *PlaylistsListCall

List: Browse the YouTube playlist collection.

type ResourceId

type ResourceId struct {
	// ChannelId: ID of the referred channel. Present only when type is
	// "CHANNEL".
	ChannelId string `json:"channelId,omitempty"`

	// Kind: The kind of the referred resource.
	Kind string `json:"kind,omitempty"`

	// PlaylistId: ID of the referred playlist. Present only when type is
	// "PLAYLIST".
	PlaylistId string `json:"playlistId,omitempty"`

	// VideoId: ID of the referred video. Present only when type is "VIDEO".
	VideoId string `json:"videoId,omitempty"`
}

type SearchListCall

type SearchListCall struct {
	// contains filtered or unexported fields
}

func (*SearchListCall) Do

func (*SearchListCall) MaxResults

func (c *SearchListCall) MaxResults(maxResults int64) *SearchListCall

MaxResults sets the optional parameter "maxResults": Maximum number of search results to return per page.

func (*SearchListCall) Order

func (c *SearchListCall) Order(order string) *SearchListCall

Order sets the optional parameter "order": Sort order.

func (*SearchListCall) Published

func (c *SearchListCall) Published(published string) *SearchListCall

Published sets the optional parameter "published": Only search for resources uploaded at a specific pediod

func (*SearchListCall) StartIndex

func (c *SearchListCall) StartIndex(startIndex int64) *SearchListCall

StartIndex sets the optional parameter "startIndex": Index of the first element to return (starts at 0)

func (*SearchListCall) Type

func (c *SearchListCall) Type(type_ string) *SearchListCall

Type sets the optional parameter "type": Type of resource to search.

func (*SearchListCall) VideoCaption

func (c *SearchListCall) VideoCaption(videoCaption string) *SearchListCall

VideoCaption sets the optional parameter "videoCaption": Add a filter on the the presence of captions on the videos.

func (*SearchListCall) VideoDefinition

func (c *SearchListCall) VideoDefinition(videoDefinition string) *SearchListCall

VideoDefinition sets the optional parameter "videoDefinition": Add a filter for the definition of the videos.

func (*SearchListCall) VideoDimension

func (c *SearchListCall) VideoDimension(videoDimension string) *SearchListCall

VideoDimension sets the optional parameter "videoDimension": Add a filter for the number of dimensions in the videos.

func (*SearchListCall) VideoDuration

func (c *SearchListCall) VideoDuration(videoDuration string) *SearchListCall

VideoDuration sets the optional parameter "videoDuration": Add a filter on the duration of the videos.

func (*SearchListCall) VideoLicense

func (c *SearchListCall) VideoLicense(videoLicense string) *SearchListCall

VideoLicense sets the optional parameter "videoLicense": Add a filter on the licensing of the videos.

type SearchListResponse

type SearchListResponse struct {
	// Etag: The eTag of the response.
	Etag string `json:"etag,omitempty"`

	// Kind: The type of this API response.
	Kind string `json:"kind,omitempty"`

	// PageInfo: Paging information for the search result.
	PageInfo *PageInfo `json:"pageInfo,omitempty"`

	// SearchResults: List of results matching the request criteria.
	SearchResults []*SearchResult `json:"searchResults,omitempty"`

	// TokenPagination: Pagination information for the next and previous
	// page.
	TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`
}

type SearchResult

type SearchResult struct {
	// Etag: The eTag of the search result.
	Etag string `json:"etag,omitempty"`

	// Id: The id of the resource.
	Id *ResourceId `json:"id,omitempty"`

	// Kind: The type of this API resource.
	Kind string `json:"kind,omitempty"`

	// Snippet: Basic details about the search result: title, description,
	// author.
	Snippet *SearchResultSnippet `json:"snippet,omitempty"`
}

type SearchResultSnippet

type SearchResultSnippet struct {
	// ChannelId: Author of the found resource.
	ChannelId string `json:"channelId,omitempty"`

	// Description: Description of the search result.
	Description string `json:"description,omitempty"`

	// PublishedAt: The date and time the found resource was created.
	PublishedAt string `json:"publishedAt,omitempty"`

	// Title: Title of the search result.
	Title string `json:"title,omitempty"`
}

type SearchService

type SearchService struct {
	// contains filtered or unexported fields
}

func (*SearchService) List

func (r *SearchService) List(q string) *SearchListCall

List: Universal search for youtube.

type Service

type Service struct {
	Activities *ActivitiesService

	Channels *ChannelsService

	PlaylistItems *PlaylistItemsService

	Playlists *PlaylistsService

	Search *SearchService

	Videos *VideosService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

type Thumbnail

type Thumbnail struct {
	// Url: The URL for the thumbnail.
	Url string `json:"url,omitempty"`
}

type TokenPagination

type TokenPagination struct {
	// NextPageToken: Token to the next page.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// PreviousPageToken: Token to the previous page.
	PreviousPageToken string `json:"previousPageToken,omitempty"`
}

type Video

type Video struct {
	// ContentDetails: Information about the video content, media file.
	ContentDetails *VideoContentDetails `json:"contentDetails,omitempty"`

	// Etag: The eTag of the video.
	Etag string `json:"etag,omitempty"`

	// Id: The unique id of the video.
	Id string `json:"id,omitempty"`

	// Kind: The type of this API resource.
	Kind string `json:"kind,omitempty"`

	// Player: Information used to play the video.
	Player *VideoPlayer `json:"player,omitempty"`

	// Snippet: Basic details about the video: title, description,
	// thumbnails.
	Snippet *VideoSnippet `json:"snippet,omitempty"`

	// Statistics: Statistics about the video: number of views, ratings.
	Statistics *VideoStatistics `json:"statistics,omitempty"`

	// Status: Status of the video upload, privacy status.
	Status *VideoStatus `json:"status,omitempty"`
}

type VideoContentDetails

type VideoContentDetails struct {
	// AspectRatio: The aspect ratio of the video.
	AspectRatio string `json:"aspectRatio,omitempty"`

	// Duration: Duration of the video.
	Duration string `json:"duration,omitempty"`
}

type VideoListResponse

type VideoListResponse struct {
	// Etag: The eTag of the response.
	Etag string `json:"etag,omitempty"`

	// Kind: The type of this API response.
	Kind string `json:"kind,omitempty"`

	// Videos: Map of videos matching the request criteria, keyed by video
	// id.
	Videos *VideoListResponseVideos `json:"videos,omitempty"`
}

type VideoListResponseVideos

type VideoListResponseVideos struct {
}

type VideoPlayer

type VideoPlayer struct {
	// EmbedHtml: Iframe embed for the video.
	EmbedHtml string `json:"embedHtml,omitempty"`
}

type VideoSnippet

type VideoSnippet struct {
	// CategoryId: Video category the video belongs to.
	CategoryId string `json:"categoryId,omitempty"`

	// ChannelId: Channel the video was uploaded into.
	ChannelId string `json:"channelId,omitempty"`

	// Description: Description of the video.
	Description string `json:"description,omitempty"`

	// PublishedAt: Date time the video was uploaded.
	PublishedAt string `json:"publishedAt,omitempty"`

	// Tags: Textual tags associated with the video.
	Tags []string `json:"tags,omitempty"`

	// Thumbnails: Video thumbnails.
	Thumbnails *VideoSnippetThumbnails `json:"thumbnails,omitempty"`

	// Title: Title of the video.
	Title string `json:"title,omitempty"`
}

type VideoSnippetThumbnails

type VideoSnippetThumbnails struct {
}

type VideoStatistics

type VideoStatistics struct {
	// CommentCount: Number of comments for this video.
	CommentCount uint64 `json:"commentCount,omitempty,string"`

	// DislikeCount: Number of times the video was disliked.
	DislikeCount uint64 `json:"dislikeCount,omitempty,string"`

	// FavoriteCount: Number of times the video was added to a user's
	// favorites list.
	FavoriteCount uint64 `json:"favoriteCount,omitempty,string"`

	// LikeCount: Number of times the video was liked.
	LikeCount uint64 `json:"likeCount,omitempty,string"`

	// ViewCount: Number of times the video was viewed.
	ViewCount uint64 `json:"viewCount,omitempty,string"`
}

type VideoStatus

type VideoStatus struct {
	// FailureReason: Present only if the uploadStatus indicates a failed
	// upload.
	FailureReason string `json:"failureReason,omitempty"`

	// PrivacyStatus: Privacy of the video.
	PrivacyStatus string `json:"privacyStatus,omitempty"`

	// RejectionReason: Present only if the uploadStatus indicates a
	// rejected upload.
	RejectionReason string `json:"rejectionReason,omitempty"`

	// UploadStatus: Status of the video upload.
	UploadStatus string `json:"uploadStatus,omitempty"`
}

type VideosDeleteCall

type VideosDeleteCall struct {
	// contains filtered or unexported fields
}

func (*VideosDeleteCall) ContentOwnerId

func (c *VideosDeleteCall) ContentOwnerId(contentOwnerId string) *VideosDeleteCall

ContentOwnerId sets the optional parameter "contentOwnerId": The authenticated user acts on behalf of this content owner.

func (*VideosDeleteCall) Do

func (c *VideosDeleteCall) Do() error

type VideosInsertCall

type VideosInsertCall struct {
	// contains filtered or unexported fields
}

func (*VideosInsertCall) Do

func (c *VideosInsertCall) Do() (*Video, error)

func (*VideosInsertCall) Media

type VideosListCall

type VideosListCall struct {
	// contains filtered or unexported fields
}

func (*VideosListCall) ContentOwnerId

func (c *VideosListCall) ContentOwnerId(contentOwnerId string) *VideosListCall

ContentOwnerId sets the optional parameter "contentOwnerId": The authenticated user acts on behalf of this content owner.

func (*VideosListCall) Do

type VideosService

type VideosService struct {
	// contains filtered or unexported fields
}

func (*VideosService) Delete

func (r *VideosService) Delete(id string) *VideosDeleteCall

Delete: Delete a YouTube video.

func (*VideosService) Insert

func (r *VideosService) Insert(video *Video) *VideosInsertCall

Insert: Upload a video to YouTube.

func (*VideosService) List

func (r *VideosService) List(id string, part string) *VideosListCall

List: Browse the YouTube video collection.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL