blob: ca4740ff93879230b75d06202a29fe7f71034cc8 [file] [log] [blame]
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.youtube.html">youtube</a> . <a href="youtube_v3.youtube.v3.html">v3</a> . <a href="youtube_v3.youtube.v3.infocards.html">infocards</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#list">list(part, onBehalfOfContentOwner=None, videoId=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Retrieves all infocards for a given video.</p>
80<h3>Method Details</h3>
81<div class="method">
82 <code class="details" id="list">list(part, onBehalfOfContentOwner=None, videoId=None, x__xgafv=None)</code>
83 <pre>Retrieves all infocards for a given video.
84
85Args:
86 part: string, The properties to return. (required) (repeated)
87 onBehalfOfContentOwner: string, Content owner of the video.
88 videoId: string, Encrypted id of the video.
89 x__xgafv: string, V1 error format.
90 Allowed values
91 1 - v1 error format
92 2 - v2 error format
93
94Returns:
95 An object of the form:
96
97 {
98 &quot;items&quot;: [ # A list of infocards.
99 {
100 &quot;snippet&quot;: { # The snippet object contains basic details about the infocard.
101 &quot;linkInfocard&quot;: {
102 &quot;customLinkText&quot;: &quot;A String&quot;, # Custom text to show as the website link.
103 # Required.
104 &quot;uploadedImage&quot;: { # Previously uploaded image.
105 &quot;version&quot;: &quot;A String&quot;, # The version in the thumbnail service.
106 &quot;imageFile&quot;: &quot;A String&quot;, # Image reference on the thumbnail service.
107 },
108 &quot;title&quot;: &quot;A String&quot;, # The title to show on the card.
109 # Required.
110 &quot;externalImageUrl&quot;: &quot;A String&quot;, # URL to an externally hosted image.
111 &quot;targetUrl&quot;: &quot;A String&quot;, # The URL to which this card points.
112 # Required.
113 },
114 &quot;videoInfocard&quot;: {
115 &quot;playbackStartOffset&quot;: &quot;A String&quot;, # Playback start time offset in milliseconds.
116 # Optional.
117 &quot;customMessage&quot;: &quot;A String&quot;, # Each card can have a custom message.
118 # Optional.
119 &quot;videoId&quot;: &quot;A String&quot;, # Encrypted Video ID.
120 # Required.
121 },
122 &quot;teaser&quot;: { # Each card can have a teaser.
123 # Required.
124 &quot;teaserStartOffset&quot;: &quot;A String&quot;, # The offset from the video start at which the teaser should be displayed
125 # (activated), in milliseconds.
126 # Required.
127 &quot;teaserText&quot;: &quot;A String&quot;, # The teaser text to show at the top of the player for the info-card.
128 # Required for channel and link type cards.
129 # Optional for video and playlist type cards.
130 },
131 &quot;channelInfocard&quot;: {
132 &quot;customMessage&quot;: &quot;A String&quot;, # Each card can have a custom message.
133 # Required.
134 &quot;channelId&quot;: &quot;A String&quot;, # External channel ID.
135 # Required.
136 },
137 &quot;playlistInfocard&quot;: {
138 &quot;playlistId&quot;: &quot;A String&quot;, # External playlist ID.
139 # Required.
140 &quot;startVideoId&quot;: &quot;A String&quot;, # Starting video, if not the first.
141 # Optional.
142 &quot;customMessage&quot;: &quot;A String&quot;, # Each card can have a custom message.
143 # Optional.
144 },
145 },
146 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
147 &quot;kind&quot;: &quot;youtube#infocard&quot;, # Identifies what kind of resource this is.
148 &quot;id&quot;: &quot;A String&quot;, # UUID for this infocard.
149 },
150 ],
151 &quot;kind&quot;: &quot;youtube#infocardListResponse&quot;, # Identifies what kind of resource this is.
152 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
153 }</pre>
154</div>
155
156</body></html>