blob: 6891c5e5024d895430d723a37c1e20f0188ec618 [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">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070084 <code><a href="#list">list(blogId, pageToken=None, startDate=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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700111 &quot;etag&quot;: &quot;A String&quot;, # Etag of the resource.
112 &quot;titleLink&quot;: &quot;A String&quot;, # The title link URL, similar to atom&#x27;s related link.
113 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
114 &quot;customMetaData&quot;: &quot;A String&quot;, # The JSON meta-data for the Post.
115 &quot;blog&quot;: { # Data about the blog containing this Post.
116 &quot;id&quot;: &quot;A String&quot;, # The identifier of the Blog that contains this Post.
117 },
118 &quot;labels&quot;: [ # The list of labels this Post was tagged with.
119 &quot;A String&quot;,
120 ],
121 &quot;replies&quot;: { # The container of comments on this Post.
122 &quot;totalItems&quot;: &quot;A String&quot;, # The count of comments on this post.
123 &quot;selfLink&quot;: &quot;A String&quot;, # The URL of the comments on this post.
124 &quot;items&quot;: [ # The List of Comments for this Post.
125 {
126 &quot;id&quot;: &quot;A String&quot;, # The identifier for this resource.
127 &quot;blog&quot;: { # Data about the blog containing this comment.
128 &quot;id&quot;: &quot;A String&quot;, # The identifier of the blog containing this comment.
129 },
130 &quot;content&quot;: &quot;A String&quot;, # The actual content of the comment. May include HTML markup.
131 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was published.
132 &quot;status&quot;: &quot;A String&quot;, # The status of the comment (only populated for admin users).
133 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
134 &quot;author&quot;: { # The author of this Comment.
135 &quot;image&quot;: { # The creator&#x27;s avatar.
136 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
137 },
138 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
139 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
140 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
141 },
142 &quot;inReplyTo&quot;: { # Data about the comment this is in reply to.
143 &quot;id&quot;: &quot;A String&quot;, # The identified of the parent of this comment.
144 },
145 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entry. Always blogger#comment.
146 &quot;post&quot;: { # Data about the post containing this comment.
147 &quot;id&quot;: &quot;A String&quot;, # The identifier of the post containing this comment.
148 },
149 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was last updated.
150 },
151 ],
152 },
153 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#post.
154 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was last updated.
155 &quot;images&quot;: [ # Display image for the Post.
156 {
157 &quot;url&quot;: &quot;A String&quot;,
158 },
159 ],
160 &quot;title&quot;: &quot;A String&quot;, # The title of the Post.
161 &quot;readerComments&quot;: &quot;A String&quot;, # Comment control and display setting for readers of this post.
162 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was published.
163 &quot;status&quot;: &quot;A String&quot;, # Status of the post. Only set for admin-level requests.
164 &quot;id&quot;: &quot;A String&quot;, # The identifier of this Post.
165 &quot;url&quot;: &quot;A String&quot;, # The URL where this Post is displayed.
166 &quot;content&quot;: &quot;A String&quot;, # The content of the Post. May contain HTML markup.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700167 &quot;author&quot;: { # The author of this Post.
168 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700169 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700170 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
171 &quot;image&quot;: { # The creator&#x27;s avatar.
172 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
173 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700174 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700175 &quot;location&quot;: { # The location for geotagged posts.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700176 &quot;span&quot;: &quot;A String&quot;, # Location&#x27;s viewport span. Can be used when rendering a map preview.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700177 &quot;lng&quot;: 3.14, # Location&#x27;s longitude.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700178 &quot;lat&quot;: 3.14, # Location&#x27;s latitude.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700179 &quot;name&quot;: &quot;A String&quot;, # Location name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700181 }</pre>
182</div>
183
184<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700185 <code class="details" id="list">list(blogId, pageToken=None, startDate=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)
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700190 pageToken: string, A parameter
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700191 startDate: string, A parameter
192 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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700203 &quot;etag&quot;: &quot;A String&quot;, # Etag of the response.
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 {
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700206 &quot;etag&quot;: &quot;A String&quot;, # Etag of the resource.
207 &quot;titleLink&quot;: &quot;A String&quot;, # The title link URL, similar to atom&#x27;s related link.
208 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
209 &quot;customMetaData&quot;: &quot;A String&quot;, # The JSON meta-data for the Post.
210 &quot;blog&quot;: { # Data about the blog containing this Post.
211 &quot;id&quot;: &quot;A String&quot;, # The identifier of the Blog that contains this Post.
212 },
213 &quot;labels&quot;: [ # The list of labels this Post was tagged with.
214 &quot;A String&quot;,
215 ],
216 &quot;replies&quot;: { # The container of comments on this Post.
217 &quot;totalItems&quot;: &quot;A String&quot;, # The count of comments on this post.
218 &quot;selfLink&quot;: &quot;A String&quot;, # The URL of the comments on this post.
219 &quot;items&quot;: [ # The List of Comments for this Post.
220 {
221 &quot;id&quot;: &quot;A String&quot;, # The identifier for this resource.
222 &quot;blog&quot;: { # Data about the blog containing this comment.
223 &quot;id&quot;: &quot;A String&quot;, # The identifier of the blog containing this comment.
224 },
225 &quot;content&quot;: &quot;A String&quot;, # The actual content of the comment. May include HTML markup.
226 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was published.
227 &quot;status&quot;: &quot;A String&quot;, # The status of the comment (only populated for admin users).
228 &quot;selfLink&quot;: &quot;A String&quot;, # The API REST URL to fetch this resource from.
229 &quot;author&quot;: { # The author of this Comment.
230 &quot;image&quot;: { # The creator&#x27;s avatar.
231 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
232 },
233 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
234 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
235 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
236 },
237 &quot;inReplyTo&quot;: { # Data about the comment this is in reply to.
238 &quot;id&quot;: &quot;A String&quot;, # The identified of the parent of this comment.
239 },
240 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entry. Always blogger#comment.
241 &quot;post&quot;: { # Data about the post containing this comment.
242 &quot;id&quot;: &quot;A String&quot;, # The identifier of the post containing this comment.
243 },
244 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this comment was last updated.
245 },
246 ],
247 },
248 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#post.
249 &quot;updated&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was last updated.
250 &quot;images&quot;: [ # Display image for the Post.
251 {
252 &quot;url&quot;: &quot;A String&quot;,
253 },
254 ],
255 &quot;title&quot;: &quot;A String&quot;, # The title of the Post.
256 &quot;readerComments&quot;: &quot;A String&quot;, # Comment control and display setting for readers of this post.
257 &quot;published&quot;: &quot;A String&quot;, # RFC 3339 date-time when this Post was published.
258 &quot;status&quot;: &quot;A String&quot;, # Status of the post. Only set for admin-level requests.
259 &quot;id&quot;: &quot;A String&quot;, # The identifier of this Post.
260 &quot;url&quot;: &quot;A String&quot;, # The URL where this Post is displayed.
261 &quot;content&quot;: &quot;A String&quot;, # The content of the Post. May contain HTML markup.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700262 &quot;author&quot;: { # The author of this Post.
263 &quot;displayName&quot;: &quot;A String&quot;, # The display name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700264 &quot;url&quot;: &quot;A String&quot;, # The URL of the creator&#x27;s Profile page.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700265 &quot;id&quot;: &quot;A String&quot;, # The identifier of the creator.
266 &quot;image&quot;: { # The creator&#x27;s avatar.
267 &quot;url&quot;: &quot;A String&quot;, # The creator&#x27;s avatar URL.
268 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700269 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700270 &quot;location&quot;: { # The location for geotagged posts.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700271 &quot;span&quot;: &quot;A String&quot;, # Location&#x27;s viewport span. Can be used when rendering a map preview.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700272 &quot;lng&quot;: 3.14, # Location&#x27;s longitude.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700273 &quot;lat&quot;: 3.14, # Location&#x27;s latitude.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700274 &quot;name&quot;: &quot;A String&quot;, # Location name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700275 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700276 },
277 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700278 &quot;nextPageToken&quot;: &quot;A String&quot;, # Pagination token to fetch the next page, if one exists.
279 &quot;kind&quot;: &quot;A String&quot;, # The kind of this entity. Always blogger#postList.
280 &quot;prevPageToken&quot;: &quot;A String&quot;, # Pagination token to fetch the previous page, if one exists.
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>