blob: bfd3a0536fb447b9da46e03341ffd5f3e4f5041e [file] [log] [blame]
Sai Cheemalapatidf613972016-10-21 13:59:49 -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
Dan O'Mearadd494642020-05-01 07:42:23 -070075<h1><a href="blogger_v2.html">Blogger API v3</a> . <a href="blogger_v2.posts.html">posts</a></h1>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#get">get(blogId, postId, x__xgafv=None)</a></code></p>
82<p class="firstline">Gets a post by blog id and post id</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070083<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080084 <code><a href="#list">list(blogId, maxResults=None, fetchBodies=None, pageToken=None, startDate=None, x__xgafv=None)</a></code></p>
Dan O'Mearadd494642020-05-01 07:42:23 -070085<p class="firstline">Lists posts.</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070086<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code class="details" id="get">get(blogId, postId, x__xgafv=None)</code>
97 <pre>Gets a post by blog id and post id
Sai Cheemalapatidf613972016-10-21 13:59:49 -070098
99Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700100 blogId: string, A parameter (required)
101 postId: string, A parameter (required)
102 x__xgafv: string, V1 error format.
103 Allowed values
104 1 - v1 error format
105 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700106
107Returns:
108 An object of the form:
109
110 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700111 &quot;labels&quot;: [ # The list of labels this Post was tagged with.
112 &quot;A String&quot;,
113 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800114 &quot;customMetaData&quot;: &quot;A String&quot;, # The JSON meta-data for the Post.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800115 &quot;content&quot;: &quot;A String&quot;, # The content of the Post. May contain HTML markup.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800116 &quot;readerComments&quot;: &quot;A String&quot;, # Comment control and display setting for readers of this post.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800117 &quot;images&quot;: [ # Display image for the Post.
118 {
119 &quot;url&quot;: &quot;A String&quot;,
120 },
121 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800122 &quot;location&quot;: { # The location for geotagged posts.
123 &quot;lng&quot;: 3.14, # Location&#x27;s longitude.
124 &quot;span&quot;: &quot;A String&quot;, # Location&#x27;s viewport span. Can be used when rendering a map preview.
125 &quot;lat&quot;: 3.14, # Location&#x27;s latitude.
126 &quot;name&quot;: &quot;A String&quot;, # Location name.
127 },
128 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was published.
129 &quot;id&quot;: &quot;A String&quot;, # The identifier of this Post.
130 &quot;titleLink&quot;: &quot;A String&quot;, # The title link URL, similar to atom&#x27;s related link.
131 &quot;author&quot;: { # The author of this Post.
132 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
133 &quot;image&quot;: { # The creator&#x27;s avatar.
134 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
135 },
136 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
137 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
138 },
139 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#post.
140 &quot;replies&quot;: { # The container of comments on this Post.
141 &quot;selfLink&quot;: &quot;A String&quot;, # The URL of the comments on this post.
142 &quot;items&quot;: [ # The List of Comments for this Post.
143 {
144 &quot;inReplyTo&quot;: { # Data about the comment this is in reply to.
145 &quot;id&quot;: &quot;A String&quot;, # The identified of the parent of this comment.
146 },
147 &quot;id&quot;: &quot;A String&quot;, # The identifier for this resource.
148 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
149 &quot;status&quot;: &quot;A String&quot;, # The status of the comment (only populated for admin users).
150 &quot;post&quot;: { # Data about the post containing this comment.
151 &quot;id&quot;: &quot;A String&quot;, # The identifier of the post containing this comment.
152 },
153 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was published.
154 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entry. Always blogger#comment.
155 &quot;blog&quot;: { # Data about the blog containing this comment.
156 &quot;id&quot;: &quot;A String&quot;, # The identifier of the blog containing this comment.
157 },
158 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was last updated.
159 &quot;author&quot;: { # The author of this Comment.
160 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
161 &quot;image&quot;: { # The creator&#x27;s avatar.
162 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
163 },
164 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
165 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
166 },
167 &quot;content&quot;: &quot;A String&quot;, # The actual content of the comment. May include HTML markup.
168 },
169 ],
170 &quot;totalItems&quot;: &quot;A String&quot;, # The count of comments on this post.
171 },
172 &quot;title&quot;: &quot;A String&quot;, # The title of the Post.
173 &quot;status&quot;: &quot;A String&quot;, # Status of the post. Only set for admin-level requests.
174 &quot;url&quot;: &quot;A String&quot;, # The URL where this Post is displayed.
175 &quot;blog&quot;: { # Data about the blog containing this Post.
176 &quot;id&quot;: &quot;A String&quot;, # The identifier of the Blog that contains this Post.
177 },
178 &quot;etag&quot;: &quot;A String&quot;, # Etag of the resource.
179 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was last updated.
180 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700181 }</pre>
182</div>
183
184<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800185 <code class="details" id="list">list(blogId, maxResults=None, fetchBodies=None, pageToken=None, startDate=None, x__xgafv=None)</code>
Dan O'Mearadd494642020-05-01 07:42:23 -0700186 <pre>Lists posts.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700187
188Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700189 blogId: string, A parameter (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700190 maxResults: integer, A parameter
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800191 fetchBodies: boolean, A parameter
192 pageToken: string, A parameter
193 startDate: string, A parameter
Dan O'Mearadd494642020-05-01 07:42:23 -0700194 x__xgafv: string, V1 error format.
195 Allowed values
196 1 - v1 error format
197 2 - v2 error format
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700198
199Returns:
200 An object of the form:
201
202 {
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;items&quot;: [ # The list of Posts for this Blog.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700204 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700205 &quot;labels&quot;: [ # The list of labels this Post was tagged with.
206 &quot;A String&quot;,
207 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800208 &quot;customMetaData&quot;: &quot;A String&quot;, # The JSON meta-data for the Post.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800209 &quot;content&quot;: &quot;A String&quot;, # The content of the Post. May contain HTML markup.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800210 &quot;readerComments&quot;: &quot;A String&quot;, # Comment control and display setting for readers of this post.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800211 &quot;images&quot;: [ # Display image for the Post.
212 {
213 &quot;url&quot;: &quot;A String&quot;,
214 },
215 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800216 &quot;location&quot;: { # The location for geotagged posts.
217 &quot;lng&quot;: 3.14, # Location&#x27;s longitude.
218 &quot;span&quot;: &quot;A String&quot;, # Location&#x27;s viewport span. Can be used when rendering a map preview.
219 &quot;lat&quot;: 3.14, # Location&#x27;s latitude.
220 &quot;name&quot;: &quot;A String&quot;, # Location name.
221 },
222 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was published.
223 &quot;id&quot;: &quot;A String&quot;, # The identifier of this Post.
224 &quot;titleLink&quot;: &quot;A String&quot;, # The title link URL, similar to atom&#x27;s related link.
225 &quot;author&quot;: { # The author of this Post.
226 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
227 &quot;image&quot;: { # The creator&#x27;s avatar.
228 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
229 },
230 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
231 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
232 },
233 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#post.
234 &quot;replies&quot;: { # The container of comments on this Post.
235 &quot;selfLink&quot;: &quot;A String&quot;, # The URL of the comments on this post.
236 &quot;items&quot;: [ # The List of Comments for this Post.
237 {
238 &quot;inReplyTo&quot;: { # Data about the comment this is in reply to.
239 &quot;id&quot;: &quot;A String&quot;, # The identified of the parent of this comment.
240 },
241 &quot;id&quot;: &quot;A String&quot;, # The identifier for this resource.
242 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
243 &quot;status&quot;: &quot;A String&quot;, # The status of the comment (only populated for admin users).
244 &quot;post&quot;: { # Data about the post containing this comment.
245 &quot;id&quot;: &quot;A String&quot;, # The identifier of the post containing this comment.
246 },
247 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was published.
248 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entry. Always blogger#comment.
249 &quot;blog&quot;: { # Data about the blog containing this comment.
250 &quot;id&quot;: &quot;A String&quot;, # The identifier of the blog containing this comment.
251 },
252 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was last updated.
253 &quot;author&quot;: { # The author of this Comment.
254 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
255 &quot;image&quot;: { # The creator&#x27;s avatar.
256 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
257 },
258 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
259 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
260 },
261 &quot;content&quot;: &quot;A String&quot;, # The actual content of the comment. May include HTML markup.
262 },
263 ],
264 &quot;totalItems&quot;: &quot;A String&quot;, # The count of comments on this post.
265 },
266 &quot;title&quot;: &quot;A String&quot;, # The title of the Post.
267 &quot;status&quot;: &quot;A String&quot;, # Status of the post. Only set for admin-level requests.
268 &quot;url&quot;: &quot;A String&quot;, # The URL where this Post is displayed.
269 &quot;blog&quot;: { # Data about the blog containing this Post.
270 &quot;id&quot;: &quot;A String&quot;, # The identifier of the Blog that contains this Post.
271 },
272 &quot;etag&quot;: &quot;A String&quot;, # Etag of the resource.
273 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was last updated.
274 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700275 },
276 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700277 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#postList.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800278 &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token to fetch the next page, if one exists.
279 &quot;prevPageToken&quot;: &quot;A String&quot;, # Pagination token to fetch the previous page, if one exists.
280 &quot;etag&quot;: &quot;A String&quot;, # Etag of the response.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700281 }</pre>
282</div>
283
284<div class="method">
285 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
286 <pre>Retrieves the next page of results.
287
288Args:
289 previous_request: The request for the previous page. (required)
290 previous_response: The response from the request for the previous page. (required)
291
292Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700293 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700294 page. Returns None if there are no more items in the collection.
295 </pre>
296</div>
297
298</body></html>