blob: 5247b83d9b80710a848781c5804018140b5edfd4 [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 Bot0d561ef2020-11-25 07:50:41 -080084 <code><a href="#list">list(blogId, startDate=None, pageToken=None, fetchBodies=None, maxResults=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 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800111 &quot;status&quot;: &quot;A String&quot;, # Status of the post. Only set for admin-level requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800112 &quot;id&quot;: &quot;A String&quot;, # The identifier of this Post.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800113 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was last updated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800114 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700115 &quot;labels&quot;: [ # The list of labels this Post was tagged with.
116 &quot;A String&quot;,
117 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800118 &quot;author&quot;: { # The author of this Post.
119 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
120 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
121 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
122 &quot;image&quot;: { # The creator&#x27;s avatar.
123 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
124 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700125 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800126 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#post.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700127 &quot;location&quot;: { # The location for geotagged posts.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700128 &quot;span&quot;: &quot;A String&quot;, # Location&#x27;s viewport span. Can be used when rendering a map preview.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800129 &quot;name&quot;: &quot;A String&quot;, # Location name.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700130 &quot;lng&quot;: 3.14, # Location&#x27;s longitude.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700131 &quot;lat&quot;: 3.14, # Location&#x27;s latitude.
132 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800133 &quot;customMetaData&quot;: &quot;A String&quot;, # The JSON meta-data for the Post.
134 &quot;etag&quot;: &quot;A String&quot;, # Etag of the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800135 &quot;url&quot;: &quot;A String&quot;, # The URL where this Post is displayed.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800136 &quot;readerComments&quot;: &quot;A String&quot;, # Comment control and display setting for readers of this post.
137 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was published.
138 &quot;title&quot;: &quot;A String&quot;, # The title of the Post.
139 &quot;blog&quot;: { # Data about the blog containing this Post.
140 &quot;id&quot;: &quot;A String&quot;, # The identifier of the Blog that contains this Post.
141 },
142 &quot;content&quot;: &quot;A String&quot;, # The content of the Post. May contain HTML markup.
143 &quot;titleLink&quot;: &quot;A String&quot;, # The title link URL, similar to atom&#x27;s related link.
144 &quot;replies&quot;: { # The container of comments on this Post.
145 &quot;items&quot;: [ # The List of Comments for this Post.
146 {
147 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entry. Always blogger#comment.
148 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
149 &quot;author&quot;: { # The author of this Comment.
150 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
151 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
152 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
153 &quot;image&quot;: { # The creator&#x27;s avatar.
154 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
155 },
156 },
157 &quot;content&quot;: &quot;A String&quot;, # The actual content of the comment. May include HTML markup.
158 &quot;id&quot;: &quot;A String&quot;, # The identifier for this resource.
159 &quot;post&quot;: { # Data about the post containing this comment.
160 &quot;id&quot;: &quot;A String&quot;, # The identifier of the post containing this comment.
161 },
162 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was last updated.
163 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was published.
164 &quot;status&quot;: &quot;A String&quot;, # The status of the comment (only populated for admin users).
165 &quot;blog&quot;: { # Data about the blog containing this comment.
166 &quot;id&quot;: &quot;A String&quot;, # The identifier of the blog containing this comment.
167 },
168 &quot;inReplyTo&quot;: { # Data about the comment this is in reply to.
169 &quot;id&quot;: &quot;A String&quot;, # The identified of the parent of this comment.
170 },
171 },
172 ],
173 &quot;totalItems&quot;: &quot;A String&quot;, # The count of comments on this post.
174 &quot;selfLink&quot;: &quot;A String&quot;, # The URL of the comments on this post.
175 },
176 &quot;images&quot;: [ # Display image for the Post.
177 {
178 &quot;url&quot;: &quot;A String&quot;,
179 },
180 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700181 }</pre>
182</div>
183
184<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800185 <code class="details" id="list">list(blogId, startDate=None, pageToken=None, fetchBodies=None, maxResults=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)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800190 startDate: string, A parameter
191 pageToken: string, A parameter
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700192 fetchBodies: boolean, A parameter
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700193 maxResults: integer, 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 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800203 &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token to fetch the next page, if one exists.
Bu Sun Kim65020912020-05-20 12:08:20 -0700204 &quot;items&quot;: [ # The list of Posts for this Blog.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700205 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800206 &quot;status&quot;: &quot;A String&quot;, # Status of the post. Only set for admin-level requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800207 &quot;id&quot;: &quot;A String&quot;, # The identifier of this Post.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800208 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was last updated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800209 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700210 &quot;labels&quot;: [ # The list of labels this Post was tagged with.
211 &quot;A String&quot;,
212 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800213 &quot;author&quot;: { # The author of this Post.
214 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
215 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
216 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
217 &quot;image&quot;: { # The creator&#x27;s avatar.
218 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
219 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700220 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800221 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#post.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700222 &quot;location&quot;: { # The location for geotagged posts.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700223 &quot;span&quot;: &quot;A String&quot;, # Location&#x27;s viewport span. Can be used when rendering a map preview.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800224 &quot;name&quot;: &quot;A String&quot;, # Location name.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700225 &quot;lng&quot;: 3.14, # Location&#x27;s longitude.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700226 &quot;lat&quot;: 3.14, # Location&#x27;s latitude.
227 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800228 &quot;customMetaData&quot;: &quot;A String&quot;, # The JSON meta-data for the Post.
229 &quot;etag&quot;: &quot;A String&quot;, # Etag of the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800230 &quot;url&quot;: &quot;A String&quot;, # The URL where this Post is displayed.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800231 &quot;readerComments&quot;: &quot;A String&quot;, # Comment control and display setting for readers of this post.
232 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was published.
233 &quot;title&quot;: &quot;A String&quot;, # The title of the Post.
234 &quot;blog&quot;: { # Data about the blog containing this Post.
235 &quot;id&quot;: &quot;A String&quot;, # The identifier of the Blog that contains this Post.
236 },
237 &quot;content&quot;: &quot;A String&quot;, # The content of the Post. May contain HTML markup.
238 &quot;titleLink&quot;: &quot;A String&quot;, # The title link URL, similar to atom&#x27;s related link.
239 &quot;replies&quot;: { # The container of comments on this Post.
240 &quot;items&quot;: [ # The List of Comments for this Post.
241 {
242 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entry. Always blogger#comment.
243 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
244 &quot;author&quot;: { # The author of this Comment.
245 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
246 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
247 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
248 &quot;image&quot;: { # The creator&#x27;s avatar.
249 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
250 },
251 },
252 &quot;content&quot;: &quot;A String&quot;, # The actual content of the comment. May include HTML markup.
253 &quot;id&quot;: &quot;A String&quot;, # The identifier for this resource.
254 &quot;post&quot;: { # Data about the post containing this comment.
255 &quot;id&quot;: &quot;A String&quot;, # The identifier of the post containing this comment.
256 },
257 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was last updated.
258 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was published.
259 &quot;status&quot;: &quot;A String&quot;, # The status of the comment (only populated for admin users).
260 &quot;blog&quot;: { # Data about the blog containing this comment.
261 &quot;id&quot;: &quot;A String&quot;, # The identifier of the blog containing this comment.
262 },
263 &quot;inReplyTo&quot;: { # Data about the comment this is in reply to.
264 &quot;id&quot;: &quot;A String&quot;, # The identified of the parent of this comment.
265 },
266 },
267 ],
268 &quot;totalItems&quot;: &quot;A String&quot;, # The count of comments on this post.
269 &quot;selfLink&quot;: &quot;A String&quot;, # The URL of the comments on this post.
270 },
271 &quot;images&quot;: [ # Display image for the Post.
272 {
273 &quot;url&quot;: &quot;A String&quot;,
274 },
275 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700276 },
277 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800278 &quot;etag&quot;: &quot;A String&quot;, # Etag of the response.
279 &quot;prevPageToken&quot;: &quot;A String&quot;, # Pagination token to fetch the previous page, if one exists.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700280 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#postList.
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>