blob: 3d2b7d17fe15f80db2b7e48654506cc00b96578e [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 Botcc94ec82021-01-15 07:10:04 -080084 <code><a href="#list">list(blogId, fetchBodies=None, maxResults=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 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800111 &quot;author&quot;: { # The author of this Post.
112 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
113 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
114 &quot;image&quot;: { # The creator&#x27;s avatar.
115 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800116 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800117 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
118 },
119 &quot;blog&quot;: { # Data about the blog containing this Post.
120 &quot;id&quot;: &quot;A String&quot;, # The identifier of the Blog that contains this Post.
121 },
122 &quot;content&quot;: &quot;A String&quot;, # The content of the Post. May contain HTML markup.
123 &quot;customMetaData&quot;: &quot;A String&quot;, # The JSON meta-data for the Post.
124 &quot;etag&quot;: &quot;A String&quot;, # Etag of the resource.
125 &quot;id&quot;: &quot;A String&quot;, # The identifier of this Post.
126 &quot;images&quot;: [ # Display image for the Post.
127 {
128 &quot;url&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800129 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800130 ],
131 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#post.
132 &quot;labels&quot;: [ # The list of labels this Post was tagged with.
133 &quot;A String&quot;,
134 ],
135 &quot;location&quot;: { # The location for geotagged posts.
136 &quot;lat&quot;: 3.14, # Location&#x27;s latitude.
137 &quot;lng&quot;: 3.14, # Location&#x27;s longitude.
138 &quot;name&quot;: &quot;A String&quot;, # Location name.
139 &quot;span&quot;: &quot;A String&quot;, # Location&#x27;s viewport span. Can be used when rendering a map preview.
140 },
141 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was published.
142 &quot;readerComments&quot;: &quot;A String&quot;, # Comment control and display setting for readers of this post.
143 &quot;replies&quot;: { # The container of comments on this Post.
144 &quot;items&quot;: [ # The List of Comments for this Post.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800145 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800146 &quot;author&quot;: { # The author of this Comment.
147 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
148 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
149 &quot;image&quot;: { # The creator&#x27;s avatar.
150 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
151 },
152 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
153 },
154 &quot;blog&quot;: { # Data about the blog containing this comment.
155 &quot;id&quot;: &quot;A String&quot;, # The identifier of the blog containing this comment.
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;inReplyTo&quot;: { # Data about the comment this is in reply to.
160 &quot;id&quot;: &quot;A String&quot;, # The identified of the parent of this comment.
161 },
162 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entry. Always blogger#comment.
163 &quot;post&quot;: { # Data about the post containing this comment.
164 &quot;id&quot;: &quot;A String&quot;, # The identifier of the post containing this comment.
165 },
166 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was published.
167 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
168 &quot;status&quot;: &quot;A String&quot;, # The status of the comment (only populated for admin users).
169 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was last updated.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800170 },
171 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800172 &quot;selfLink&quot;: &quot;A String&quot;, # The URL of the comments on this post.
173 &quot;totalItems&quot;: &quot;A String&quot;, # The count of comments on this post.
174 },
175 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
176 &quot;status&quot;: &quot;A String&quot;, # Status of the post. Only set for admin-level requests.
177 &quot;title&quot;: &quot;A String&quot;, # The title of the Post.
178 &quot;titleLink&quot;: &quot;A String&quot;, # The title link URL, similar to atom&#x27;s related link.
179 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was last updated.
180 &quot;url&quot;: &quot;A String&quot;, # The URL where this Post is displayed.
181}</pre>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700182</div>
183
184<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800185 <code class="details" id="list">list(blogId, fetchBodies=None, maxResults=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)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800190 fetchBodies: boolean, A parameter
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800191 maxResults: integer, A parameter
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800192 pageToken: string, A parameter
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800193 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 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800203 &quot;etag&quot;: &quot;A String&quot;, # Etag of the response.
204 &quot;items&quot;: [ # The list of Posts for this Blog.
205 {
206 &quot;author&quot;: { # The author of this Post.
207 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
208 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
209 &quot;image&quot;: { # The creator&#x27;s avatar.
210 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800211 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800212 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700213 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800214 &quot;blog&quot;: { # Data about the blog containing this Post.
215 &quot;id&quot;: &quot;A String&quot;, # The identifier of the Blog that contains this Post.
216 },
217 &quot;content&quot;: &quot;A String&quot;, # The content of the Post. May contain HTML markup.
218 &quot;customMetaData&quot;: &quot;A String&quot;, # The JSON meta-data for the Post.
219 &quot;etag&quot;: &quot;A String&quot;, # Etag of the resource.
220 &quot;id&quot;: &quot;A String&quot;, # The identifier of this Post.
221 &quot;images&quot;: [ # Display image for the Post.
222 {
223 &quot;url&quot;: &quot;A String&quot;,
224 },
225 ],
226 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#post.
227 &quot;labels&quot;: [ # The list of labels this Post was tagged with.
228 &quot;A String&quot;,
229 ],
230 &quot;location&quot;: { # The location for geotagged posts.
231 &quot;lat&quot;: 3.14, # Location&#x27;s latitude.
232 &quot;lng&quot;: 3.14, # Location&#x27;s longitude.
233 &quot;name&quot;: &quot;A String&quot;, # Location name.
234 &quot;span&quot;: &quot;A String&quot;, # Location&#x27;s viewport span. Can be used when rendering a map preview.
235 },
236 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was published.
237 &quot;readerComments&quot;: &quot;A String&quot;, # Comment control and display setting for readers of this post.
238 &quot;replies&quot;: { # The container of comments on this Post.
239 &quot;items&quot;: [ # The List of Comments for this Post.
240 {
241 &quot;author&quot;: { # The author of this Comment.
242 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
243 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
244 &quot;image&quot;: { # The creator&#x27;s avatar.
245 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
246 },
247 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
248 },
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;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;inReplyTo&quot;: { # Data about the comment this is in reply to.
255 &quot;id&quot;: &quot;A String&quot;, # The identified of the parent of this comment.
256 },
257 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entry. Always blogger#comment.
258 &quot;post&quot;: { # Data about the post containing this comment.
259 &quot;id&quot;: &quot;A String&quot;, # The identifier of the post containing this comment.
260 },
261 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was published.
262 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
263 &quot;status&quot;: &quot;A String&quot;, # The status of the comment (only populated for admin users).
264 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was last updated.
265 },
266 ],
267 &quot;selfLink&quot;: &quot;A String&quot;, # The URL of the comments on this post.
268 &quot;totalItems&quot;: &quot;A String&quot;, # The count of comments on this post.
269 },
270 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
271 &quot;status&quot;: &quot;A String&quot;, # Status of the post. Only set for admin-level requests.
272 &quot;title&quot;: &quot;A String&quot;, # The title of the Post.
273 &quot;titleLink&quot;: &quot;A String&quot;, # The title link URL, similar to atom&#x27;s related link.
274 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was last updated.
275 &quot;url&quot;: &quot;A String&quot;, # The URL where this Post is displayed.
276 },
277 ],
278 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#postList.
279 &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token to fetch the next page, if one exists.
280 &quot;prevPageToken&quot;: &quot;A String&quot;, # Pagination token to fetch the previous page, if one exists.
281}</pre>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700282</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>