blob: 300be9ede0ec7cfb31efcea0ca0b64c61c703921 [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 Bot0bf565c2020-12-09 08:56:03 -080084 <code><a href="#list">list(blogId, maxResults=None, startDate=None, fetchBodies=None, pageToken=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 Bot0bf565c2020-12-09 08:56:03 -0800111 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was last updated.
112 &quot;replies&quot;: { # The container of comments on this Post.
113 &quot;items&quot;: [ # The List of Comments for this Post.
114 {
115 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was last updated.
116 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entry. Always blogger#comment.
117 &quot;inReplyTo&quot;: { # Data about the comment this is in reply to.
118 &quot;id&quot;: &quot;A String&quot;, # The identified of the parent of this comment.
119 },
120 &quot;content&quot;: &quot;A String&quot;, # The actual content of the comment. May include HTML markup.
121 &quot;post&quot;: { # Data about the post containing this comment.
122 &quot;id&quot;: &quot;A String&quot;, # The identifier of the post containing this comment.
123 },
124 &quot;blog&quot;: { # Data about the blog containing this comment.
125 &quot;id&quot;: &quot;A String&quot;, # The identifier of the blog containing this comment.
126 },
127 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
128 &quot;status&quot;: &quot;A String&quot;, # The status of the comment (only populated for admin users).
129 &quot;author&quot;: { # The author of this Comment.
130 &quot;image&quot;: { # The creator&#x27;s avatar.
131 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
132 },
133 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
134 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
135 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
136 },
137 &quot;id&quot;: &quot;A String&quot;, # The identifier for this resource.
138 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was published.
139 },
140 ],
141 &quot;totalItems&quot;: &quot;A String&quot;, # The count of comments on this post.
142 &quot;selfLink&quot;: &quot;A String&quot;, # The URL of the comments on this post.
143 },
144 &quot;id&quot;: &quot;A String&quot;, # The identifier of this Post.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800145 &quot;customMetaData&quot;: &quot;A String&quot;, # The JSON meta-data for the Post.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800146 &quot;readerComments&quot;: &quot;A String&quot;, # Comment control and display setting for readers of this post.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800147 &quot;blog&quot;: { # Data about the blog containing this Post.
148 &quot;id&quot;: &quot;A String&quot;, # The identifier of the Blog that contains this Post.
149 },
150 &quot;location&quot;: { # The location for geotagged posts.
151 &quot;span&quot;: &quot;A String&quot;, # Location&#x27;s viewport span. Can be used when rendering a map preview.
152 &quot;name&quot;: &quot;A String&quot;, # Location name.
153 &quot;lat&quot;: 3.14, # Location&#x27;s latitude.
154 &quot;lng&quot;: 3.14, # Location&#x27;s longitude.
155 },
156 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#post.
157 &quot;author&quot;: { # The author of this Post.
158 &quot;image&quot;: { # The creator&#x27;s avatar.
159 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
160 },
161 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
162 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
163 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
164 },
165 &quot;title&quot;: &quot;A String&quot;, # The title of the Post.
166 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
167 &quot;titleLink&quot;: &quot;A String&quot;, # The title link URL, similar to atom&#x27;s related link.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800168 &quot;images&quot;: [ # Display image for the Post.
169 {
170 &quot;url&quot;: &quot;A String&quot;,
171 },
172 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800173 &quot;content&quot;: &quot;A String&quot;, # The content of the Post. May contain HTML markup.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800174 &quot;status&quot;: &quot;A String&quot;, # Status of the post. Only set for admin-level requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800175 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was published.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800176 &quot;etag&quot;: &quot;A String&quot;, # Etag of the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800177 &quot;url&quot;: &quot;A String&quot;, # The URL where this Post is displayed.
178 &quot;labels&quot;: [ # The list of labels this Post was tagged with.
179 &quot;A String&quot;,
180 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700181 }</pre>
182</div>
183
184<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800185 <code class="details" id="list">list(blogId, maxResults=None, startDate=None, fetchBodies=None, pageToken=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 Bot0bf565c2020-12-09 08:56:03 -0800191 startDate: string, A parameter
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800192 fetchBodies: boolean, A parameter
193 pageToken: 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 Bot0bf565c2020-12-09 08:56:03 -0800203 &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token to fetch the next page, if one exists.
204 &quot;prevPageToken&quot;: &quot;A String&quot;, # Pagination token to fetch the previous page, if one exists.
Bu Sun Kim65020912020-05-20 12:08:20 -0700205 &quot;items&quot;: [ # The list of Posts for this Blog.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700206 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800207 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was last updated.
208 &quot;replies&quot;: { # The container of comments on this Post.
209 &quot;items&quot;: [ # The List of Comments for this Post.
210 {
211 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was last updated.
212 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entry. Always blogger#comment.
213 &quot;inReplyTo&quot;: { # Data about the comment this is in reply to.
214 &quot;id&quot;: &quot;A String&quot;, # The identified of the parent of this comment.
215 },
216 &quot;content&quot;: &quot;A String&quot;, # The actual content of the comment. May include HTML markup.
217 &quot;post&quot;: { # Data about the post containing this comment.
218 &quot;id&quot;: &quot;A String&quot;, # The identifier of the post containing this comment.
219 },
220 &quot;blog&quot;: { # Data about the blog containing this comment.
221 &quot;id&quot;: &quot;A String&quot;, # The identifier of the blog containing this comment.
222 },
223 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
224 &quot;status&quot;: &quot;A String&quot;, # The status of the comment (only populated for admin users).
225 &quot;author&quot;: { # The author of this Comment.
226 &quot;image&quot;: { # The creator&#x27;s avatar.
227 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
228 },
229 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
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;id&quot;: &quot;A String&quot;, # The identifier for this resource.
234 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was published.
235 },
236 ],
237 &quot;totalItems&quot;: &quot;A String&quot;, # The count of comments on this post.
238 &quot;selfLink&quot;: &quot;A String&quot;, # The URL of the comments on this post.
239 },
240 &quot;id&quot;: &quot;A String&quot;, # The identifier of this Post.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800241 &quot;customMetaData&quot;: &quot;A String&quot;, # The JSON meta-data for the Post.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800242 &quot;readerComments&quot;: &quot;A String&quot;, # Comment control and display setting for readers of this post.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800243 &quot;blog&quot;: { # Data about the blog containing this Post.
244 &quot;id&quot;: &quot;A String&quot;, # The identifier of the Blog that contains this Post.
245 },
246 &quot;location&quot;: { # The location for geotagged posts.
247 &quot;span&quot;: &quot;A String&quot;, # Location&#x27;s viewport span. Can be used when rendering a map preview.
248 &quot;name&quot;: &quot;A String&quot;, # Location name.
249 &quot;lat&quot;: 3.14, # Location&#x27;s latitude.
250 &quot;lng&quot;: 3.14, # Location&#x27;s longitude.
251 },
252 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#post.
253 &quot;author&quot;: { # The author of this Post.
254 &quot;image&quot;: { # The creator&#x27;s avatar.
255 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
256 },
257 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
258 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
259 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
260 },
261 &quot;title&quot;: &quot;A String&quot;, # The title of the Post.
262 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
263 &quot;titleLink&quot;: &quot;A String&quot;, # The title link URL, similar to atom&#x27;s related link.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800264 &quot;images&quot;: [ # Display image for the Post.
265 {
266 &quot;url&quot;: &quot;A String&quot;,
267 },
268 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800269 &quot;content&quot;: &quot;A String&quot;, # The content of the Post. May contain HTML markup.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800270 &quot;status&quot;: &quot;A String&quot;, # Status of the post. Only set for admin-level requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800271 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was published.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800272 &quot;etag&quot;: &quot;A String&quot;, # Etag of the resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800273 &quot;url&quot;: &quot;A String&quot;, # The URL where this Post is displayed.
274 &quot;labels&quot;: [ # The list of labels this Post was tagged with.
275 &quot;A String&quot;,
276 ],
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700277 },
278 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800279 &quot;etag&quot;: &quot;A String&quot;, # Etag of the response.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800280 &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>