Close httplib2 connections.
delete(blogId, postId, x__xgafv=None)
Deletes a post by blog id and post id.
get(blogId, postId, view=None, fetchImages=None, fetchBody=None, maxComments=None, x__xgafv=None)
Gets a post by blog id and post id
getByPath(blogId, path, view=None, maxComments=None, x__xgafv=None)
Gets a post by path.
insert(blogId, body=None, isDraft=None, fetchImages=None, fetchBody=None, x__xgafv=None)
Inserts a post.
Lists posts.
list_next(previous_request, previous_response)
Retrieves the next page of results.
Patches a post.
publish(blogId, postId, publishDate=None, x__xgafv=None)
Publishes a post.
revert(blogId, postId, x__xgafv=None)
Reverts a published or scheduled post to draft state.
search(blogId, q, fetchBodies=None, orderBy=None, x__xgafv=None)
Searches for posts matching given query terms in the specified blog.
Updates a post by blog id and post id.
close()
Close httplib2 connections.
delete(blogId, postId, x__xgafv=None)
Deletes a post by blog id and post id. Args: blogId: string, A parameter (required) postId: string, A parameter (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format
get(blogId, postId, view=None, fetchImages=None, fetchBody=None, maxComments=None, x__xgafv=None)
Gets a post by blog id and post id Args: blogId: string, A parameter (required) postId: string, A parameter (required) view: string, A parameter Allowed values VIEW_TYPE_UNSPECIFIED - READER - AUTHOR - ADMIN - fetchImages: boolean, A parameter fetchBody: boolean, A parameter maxComments: integer, A parameter x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "published": "A String", # RFC 3339 date-time when this Post was published. "blog": { # Data about the blog containing this Post. "id": "A String", # The identifier of the Blog that contains this Post. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "replies": { # The container of comments on this Post. "items": [ # The List of Comments for this Post. { "blog": { # Data about the blog containing this comment. "id": "A String", # The identifier of the blog containing this comment. }, "content": "A String", # The actual content of the comment. May include HTML markup. "author": { # The author of this Comment. "url": "A String", # The URL of the creator's Profile page. "id": "A String", # The identifier of the creator. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, "displayName": "A String", # The display name. }, "published": "A String", # RFC 3339 date-time when this comment was published. "kind": "A String", # The kind of this entry. Always blogger#comment. "id": "A String", # The identifier for this resource. "status": "A String", # The status of the comment (only populated for admin users). "inReplyTo": { # Data about the comment this is in reply to. "id": "A String", # The identified of the parent of this comment. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "post": { # Data about the post containing this comment. "id": "A String", # The identifier of the post containing this comment. }, "updated": "A String", # RFC 3339 date-time when this comment was last updated. }, ], "selfLink": "A String", # The URL of the comments on this post. "totalItems": "A String", # The count of comments on this post. }, "kind": "A String", # The kind of this entity. Always blogger#post. "content": "A String", # The content of the Post. May contain HTML markup. "updated": "A String", # RFC 3339 date-time when this Post was last updated. "id": "A String", # The identifier of this Post. "titleLink": "A String", # The title link URL, similar to atom's related link. "author": { # The author of this Post. "id": "A String", # The identifier of the creator. "url": "A String", # The URL of the creator's Profile page. "displayName": "A String", # The display name. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, }, "readerComments": "A String", # Comment control and display setting for readers of this post. "title": "A String", # The title of the Post. "status": "A String", # Status of the post. Only set for admin-level requests. "etag": "A String", # Etag of the resource. "images": [ # Display image for the Post. { "url": "A String", }, ], "location": { # The location for geotagged posts. "name": "A String", # Location name. "lat": 3.14, # Location's latitude. "lng": 3.14, # Location's longitude. "span": "A String", # Location's viewport span. Can be used when rendering a map preview. }, "labels": [ # The list of labels this Post was tagged with. "A String", ], "url": "A String", # The URL where this Post is displayed. "customMetaData": "A String", # The JSON meta-data for the Post. }
getByPath(blogId, path, view=None, maxComments=None, x__xgafv=None)
Gets a post by path. Args: blogId: string, A parameter (required) path: string, A parameter (required) view: string, A parameter Allowed values VIEW_TYPE_UNSPECIFIED - READER - AUTHOR - ADMIN - maxComments: integer, A parameter x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "published": "A String", # RFC 3339 date-time when this Post was published. "blog": { # Data about the blog containing this Post. "id": "A String", # The identifier of the Blog that contains this Post. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "replies": { # The container of comments on this Post. "items": [ # The List of Comments for this Post. { "blog": { # Data about the blog containing this comment. "id": "A String", # The identifier of the blog containing this comment. }, "content": "A String", # The actual content of the comment. May include HTML markup. "author": { # The author of this Comment. "url": "A String", # The URL of the creator's Profile page. "id": "A String", # The identifier of the creator. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, "displayName": "A String", # The display name. }, "published": "A String", # RFC 3339 date-time when this comment was published. "kind": "A String", # The kind of this entry. Always blogger#comment. "id": "A String", # The identifier for this resource. "status": "A String", # The status of the comment (only populated for admin users). "inReplyTo": { # Data about the comment this is in reply to. "id": "A String", # The identified of the parent of this comment. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "post": { # Data about the post containing this comment. "id": "A String", # The identifier of the post containing this comment. }, "updated": "A String", # RFC 3339 date-time when this comment was last updated. }, ], "selfLink": "A String", # The URL of the comments on this post. "totalItems": "A String", # The count of comments on this post. }, "kind": "A String", # The kind of this entity. Always blogger#post. "content": "A String", # The content of the Post. May contain HTML markup. "updated": "A String", # RFC 3339 date-time when this Post was last updated. "id": "A String", # The identifier of this Post. "titleLink": "A String", # The title link URL, similar to atom's related link. "author": { # The author of this Post. "id": "A String", # The identifier of the creator. "url": "A String", # The URL of the creator's Profile page. "displayName": "A String", # The display name. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, }, "readerComments": "A String", # Comment control and display setting for readers of this post. "title": "A String", # The title of the Post. "status": "A String", # Status of the post. Only set for admin-level requests. "etag": "A String", # Etag of the resource. "images": [ # Display image for the Post. { "url": "A String", }, ], "location": { # The location for geotagged posts. "name": "A String", # Location name. "lat": 3.14, # Location's latitude. "lng": 3.14, # Location's longitude. "span": "A String", # Location's viewport span. Can be used when rendering a map preview. }, "labels": [ # The list of labels this Post was tagged with. "A String", ], "url": "A String", # The URL where this Post is displayed. "customMetaData": "A String", # The JSON meta-data for the Post. }
insert(blogId, body=None, isDraft=None, fetchImages=None, fetchBody=None, x__xgafv=None)
Inserts a post. Args: blogId: string, A parameter (required) body: object, The request body. The object takes the form of: { "published": "A String", # RFC 3339 date-time when this Post was published. "blog": { # Data about the blog containing this Post. "id": "A String", # The identifier of the Blog that contains this Post. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "replies": { # The container of comments on this Post. "items": [ # The List of Comments for this Post. { "blog": { # Data about the blog containing this comment. "id": "A String", # The identifier of the blog containing this comment. }, "content": "A String", # The actual content of the comment. May include HTML markup. "author": { # The author of this Comment. "url": "A String", # The URL of the creator's Profile page. "id": "A String", # The identifier of the creator. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, "displayName": "A String", # The display name. }, "published": "A String", # RFC 3339 date-time when this comment was published. "kind": "A String", # The kind of this entry. Always blogger#comment. "id": "A String", # The identifier for this resource. "status": "A String", # The status of the comment (only populated for admin users). "inReplyTo": { # Data about the comment this is in reply to. "id": "A String", # The identified of the parent of this comment. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "post": { # Data about the post containing this comment. "id": "A String", # The identifier of the post containing this comment. }, "updated": "A String", # RFC 3339 date-time when this comment was last updated. }, ], "selfLink": "A String", # The URL of the comments on this post. "totalItems": "A String", # The count of comments on this post. }, "kind": "A String", # The kind of this entity. Always blogger#post. "content": "A String", # The content of the Post. May contain HTML markup. "updated": "A String", # RFC 3339 date-time when this Post was last updated. "id": "A String", # The identifier of this Post. "titleLink": "A String", # The title link URL, similar to atom's related link. "author": { # The author of this Post. "id": "A String", # The identifier of the creator. "url": "A String", # The URL of the creator's Profile page. "displayName": "A String", # The display name. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, }, "readerComments": "A String", # Comment control and display setting for readers of this post. "title": "A String", # The title of the Post. "status": "A String", # Status of the post. Only set for admin-level requests. "etag": "A String", # Etag of the resource. "images": [ # Display image for the Post. { "url": "A String", }, ], "location": { # The location for geotagged posts. "name": "A String", # Location name. "lat": 3.14, # Location's latitude. "lng": 3.14, # Location's longitude. "span": "A String", # Location's viewport span. Can be used when rendering a map preview. }, "labels": [ # The list of labels this Post was tagged with. "A String", ], "url": "A String", # The URL where this Post is displayed. "customMetaData": "A String", # The JSON meta-data for the Post. } isDraft: boolean, A parameter fetchImages: boolean, A parameter fetchBody: boolean, A parameter x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "published": "A String", # RFC 3339 date-time when this Post was published. "blog": { # Data about the blog containing this Post. "id": "A String", # The identifier of the Blog that contains this Post. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "replies": { # The container of comments on this Post. "items": [ # The List of Comments for this Post. { "blog": { # Data about the blog containing this comment. "id": "A String", # The identifier of the blog containing this comment. }, "content": "A String", # The actual content of the comment. May include HTML markup. "author": { # The author of this Comment. "url": "A String", # The URL of the creator's Profile page. "id": "A String", # The identifier of the creator. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, "displayName": "A String", # The display name. }, "published": "A String", # RFC 3339 date-time when this comment was published. "kind": "A String", # The kind of this entry. Always blogger#comment. "id": "A String", # The identifier for this resource. "status": "A String", # The status of the comment (only populated for admin users). "inReplyTo": { # Data about the comment this is in reply to. "id": "A String", # The identified of the parent of this comment. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "post": { # Data about the post containing this comment. "id": "A String", # The identifier of the post containing this comment. }, "updated": "A String", # RFC 3339 date-time when this comment was last updated. }, ], "selfLink": "A String", # The URL of the comments on this post. "totalItems": "A String", # The count of comments on this post. }, "kind": "A String", # The kind of this entity. Always blogger#post. "content": "A String", # The content of the Post. May contain HTML markup. "updated": "A String", # RFC 3339 date-time when this Post was last updated. "id": "A String", # The identifier of this Post. "titleLink": "A String", # The title link URL, similar to atom's related link. "author": { # The author of this Post. "id": "A String", # The identifier of the creator. "url": "A String", # The URL of the creator's Profile page. "displayName": "A String", # The display name. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, }, "readerComments": "A String", # Comment control and display setting for readers of this post. "title": "A String", # The title of the Post. "status": "A String", # Status of the post. Only set for admin-level requests. "etag": "A String", # Etag of the resource. "images": [ # Display image for the Post. { "url": "A String", }, ], "location": { # The location for geotagged posts. "name": "A String", # Location name. "lat": 3.14, # Location's latitude. "lng": 3.14, # Location's longitude. "span": "A String", # Location's viewport span. Can be used when rendering a map preview. }, "labels": [ # The list of labels this Post was tagged with. "A String", ], "url": "A String", # The URL where this Post is displayed. "customMetaData": "A String", # The JSON meta-data for the Post. }
list(blogId, orderBy=None, view=None, endDate=None, status=None, labels=None, maxResults=None, pageToken=None, fetchBodies=None, startDate=None, fetchImages=None, x__xgafv=None)
Lists posts. Args: blogId: string, A parameter (required) orderBy: string, A parameter Allowed values ORDER_BY_UNSPECIFIED - PUBLISHED - UPDATED - view: string, A parameter Allowed values VIEW_TYPE_UNSPECIFIED - READER - AUTHOR - ADMIN - endDate: string, A parameter status: string, A parameter (repeated) Allowed values LIVE - DRAFT - SCHEDULED - labels: string, A parameter maxResults: integer, A parameter pageToken: string, A parameter fetchBodies: boolean, A parameter startDate: string, A parameter fetchImages: boolean, A parameter x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "kind": "A String", # The kind of this entity. Always blogger#postList. "items": [ # The list of Posts for this Blog. { "published": "A String", # RFC 3339 date-time when this Post was published. "blog": { # Data about the blog containing this Post. "id": "A String", # The identifier of the Blog that contains this Post. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "replies": { # The container of comments on this Post. "items": [ # The List of Comments for this Post. { "blog": { # Data about the blog containing this comment. "id": "A String", # The identifier of the blog containing this comment. }, "content": "A String", # The actual content of the comment. May include HTML markup. "author": { # The author of this Comment. "url": "A String", # The URL of the creator's Profile page. "id": "A String", # The identifier of the creator. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, "displayName": "A String", # The display name. }, "published": "A String", # RFC 3339 date-time when this comment was published. "kind": "A String", # The kind of this entry. Always blogger#comment. "id": "A String", # The identifier for this resource. "status": "A String", # The status of the comment (only populated for admin users). "inReplyTo": { # Data about the comment this is in reply to. "id": "A String", # The identified of the parent of this comment. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "post": { # Data about the post containing this comment. "id": "A String", # The identifier of the post containing this comment. }, "updated": "A String", # RFC 3339 date-time when this comment was last updated. }, ], "selfLink": "A String", # The URL of the comments on this post. "totalItems": "A String", # The count of comments on this post. }, "kind": "A String", # The kind of this entity. Always blogger#post. "content": "A String", # The content of the Post. May contain HTML markup. "updated": "A String", # RFC 3339 date-time when this Post was last updated. "id": "A String", # The identifier of this Post. "titleLink": "A String", # The title link URL, similar to atom's related link. "author": { # The author of this Post. "id": "A String", # The identifier of the creator. "url": "A String", # The URL of the creator's Profile page. "displayName": "A String", # The display name. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, }, "readerComments": "A String", # Comment control and display setting for readers of this post. "title": "A String", # The title of the Post. "status": "A String", # Status of the post. Only set for admin-level requests. "etag": "A String", # Etag of the resource. "images": [ # Display image for the Post. { "url": "A String", }, ], "location": { # The location for geotagged posts. "name": "A String", # Location name. "lat": 3.14, # Location's latitude. "lng": 3.14, # Location's longitude. "span": "A String", # Location's viewport span. Can be used when rendering a map preview. }, "labels": [ # The list of labels this Post was tagged with. "A String", ], "url": "A String", # The URL where this Post is displayed. "customMetaData": "A String", # The JSON meta-data for the Post. }, ], "nextPageToken": "A String", # Pagination token to fetch the next page, if one exists. "etag": "A String", # Etag of the response. "prevPageToken": "A String", # Pagination token to fetch the previous page, if one exists. }
list_next(previous_request, previous_response)
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
patch(blogId, postId, body=None, maxComments=None, fetchImages=None, publish=None, revert=None, fetchBody=None, x__xgafv=None)
Patches a post. Args: blogId: string, A parameter (required) postId: string, A parameter (required) body: object, The request body. The object takes the form of: { "published": "A String", # RFC 3339 date-time when this Post was published. "blog": { # Data about the blog containing this Post. "id": "A String", # The identifier of the Blog that contains this Post. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "replies": { # The container of comments on this Post. "items": [ # The List of Comments for this Post. { "blog": { # Data about the blog containing this comment. "id": "A String", # The identifier of the blog containing this comment. }, "content": "A String", # The actual content of the comment. May include HTML markup. "author": { # The author of this Comment. "url": "A String", # The URL of the creator's Profile page. "id": "A String", # The identifier of the creator. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, "displayName": "A String", # The display name. }, "published": "A String", # RFC 3339 date-time when this comment was published. "kind": "A String", # The kind of this entry. Always blogger#comment. "id": "A String", # The identifier for this resource. "status": "A String", # The status of the comment (only populated for admin users). "inReplyTo": { # Data about the comment this is in reply to. "id": "A String", # The identified of the parent of this comment. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "post": { # Data about the post containing this comment. "id": "A String", # The identifier of the post containing this comment. }, "updated": "A String", # RFC 3339 date-time when this comment was last updated. }, ], "selfLink": "A String", # The URL of the comments on this post. "totalItems": "A String", # The count of comments on this post. }, "kind": "A String", # The kind of this entity. Always blogger#post. "content": "A String", # The content of the Post. May contain HTML markup. "updated": "A String", # RFC 3339 date-time when this Post was last updated. "id": "A String", # The identifier of this Post. "titleLink": "A String", # The title link URL, similar to atom's related link. "author": { # The author of this Post. "id": "A String", # The identifier of the creator. "url": "A String", # The URL of the creator's Profile page. "displayName": "A String", # The display name. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, }, "readerComments": "A String", # Comment control and display setting for readers of this post. "title": "A String", # The title of the Post. "status": "A String", # Status of the post. Only set for admin-level requests. "etag": "A String", # Etag of the resource. "images": [ # Display image for the Post. { "url": "A String", }, ], "location": { # The location for geotagged posts. "name": "A String", # Location name. "lat": 3.14, # Location's latitude. "lng": 3.14, # Location's longitude. "span": "A String", # Location's viewport span. Can be used when rendering a map preview. }, "labels": [ # The list of labels this Post was tagged with. "A String", ], "url": "A String", # The URL where this Post is displayed. "customMetaData": "A String", # The JSON meta-data for the Post. } maxComments: integer, A parameter fetchImages: boolean, A parameter publish: boolean, A parameter revert: boolean, A parameter fetchBody: boolean, A parameter x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "published": "A String", # RFC 3339 date-time when this Post was published. "blog": { # Data about the blog containing this Post. "id": "A String", # The identifier of the Blog that contains this Post. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "replies": { # The container of comments on this Post. "items": [ # The List of Comments for this Post. { "blog": { # Data about the blog containing this comment. "id": "A String", # The identifier of the blog containing this comment. }, "content": "A String", # The actual content of the comment. May include HTML markup. "author": { # The author of this Comment. "url": "A String", # The URL of the creator's Profile page. "id": "A String", # The identifier of the creator. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, "displayName": "A String", # The display name. }, "published": "A String", # RFC 3339 date-time when this comment was published. "kind": "A String", # The kind of this entry. Always blogger#comment. "id": "A String", # The identifier for this resource. "status": "A String", # The status of the comment (only populated for admin users). "inReplyTo": { # Data about the comment this is in reply to. "id": "A String", # The identified of the parent of this comment. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "post": { # Data about the post containing this comment. "id": "A String", # The identifier of the post containing this comment. }, "updated": "A String", # RFC 3339 date-time when this comment was last updated. }, ], "selfLink": "A String", # The URL of the comments on this post. "totalItems": "A String", # The count of comments on this post. }, "kind": "A String", # The kind of this entity. Always blogger#post. "content": "A String", # The content of the Post. May contain HTML markup. "updated": "A String", # RFC 3339 date-time when this Post was last updated. "id": "A String", # The identifier of this Post. "titleLink": "A String", # The title link URL, similar to atom's related link. "author": { # The author of this Post. "id": "A String", # The identifier of the creator. "url": "A String", # The URL of the creator's Profile page. "displayName": "A String", # The display name. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, }, "readerComments": "A String", # Comment control and display setting for readers of this post. "title": "A String", # The title of the Post. "status": "A String", # Status of the post. Only set for admin-level requests. "etag": "A String", # Etag of the resource. "images": [ # Display image for the Post. { "url": "A String", }, ], "location": { # The location for geotagged posts. "name": "A String", # Location name. "lat": 3.14, # Location's latitude. "lng": 3.14, # Location's longitude. "span": "A String", # Location's viewport span. Can be used when rendering a map preview. }, "labels": [ # The list of labels this Post was tagged with. "A String", ], "url": "A String", # The URL where this Post is displayed. "customMetaData": "A String", # The JSON meta-data for the Post. }
publish(blogId, postId, publishDate=None, x__xgafv=None)
Publishes a post. Args: blogId: string, A parameter (required) postId: string, A parameter (required) publishDate: string, A parameter x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "published": "A String", # RFC 3339 date-time when this Post was published. "blog": { # Data about the blog containing this Post. "id": "A String", # The identifier of the Blog that contains this Post. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "replies": { # The container of comments on this Post. "items": [ # The List of Comments for this Post. { "blog": { # Data about the blog containing this comment. "id": "A String", # The identifier of the blog containing this comment. }, "content": "A String", # The actual content of the comment. May include HTML markup. "author": { # The author of this Comment. "url": "A String", # The URL of the creator's Profile page. "id": "A String", # The identifier of the creator. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, "displayName": "A String", # The display name. }, "published": "A String", # RFC 3339 date-time when this comment was published. "kind": "A String", # The kind of this entry. Always blogger#comment. "id": "A String", # The identifier for this resource. "status": "A String", # The status of the comment (only populated for admin users). "inReplyTo": { # Data about the comment this is in reply to. "id": "A String", # The identified of the parent of this comment. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "post": { # Data about the post containing this comment. "id": "A String", # The identifier of the post containing this comment. }, "updated": "A String", # RFC 3339 date-time when this comment was last updated. }, ], "selfLink": "A String", # The URL of the comments on this post. "totalItems": "A String", # The count of comments on this post. }, "kind": "A String", # The kind of this entity. Always blogger#post. "content": "A String", # The content of the Post. May contain HTML markup. "updated": "A String", # RFC 3339 date-time when this Post was last updated. "id": "A String", # The identifier of this Post. "titleLink": "A String", # The title link URL, similar to atom's related link. "author": { # The author of this Post. "id": "A String", # The identifier of the creator. "url": "A String", # The URL of the creator's Profile page. "displayName": "A String", # The display name. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, }, "readerComments": "A String", # Comment control and display setting for readers of this post. "title": "A String", # The title of the Post. "status": "A String", # Status of the post. Only set for admin-level requests. "etag": "A String", # Etag of the resource. "images": [ # Display image for the Post. { "url": "A String", }, ], "location": { # The location for geotagged posts. "name": "A String", # Location name. "lat": 3.14, # Location's latitude. "lng": 3.14, # Location's longitude. "span": "A String", # Location's viewport span. Can be used when rendering a map preview. }, "labels": [ # The list of labels this Post was tagged with. "A String", ], "url": "A String", # The URL where this Post is displayed. "customMetaData": "A String", # The JSON meta-data for the Post. }
revert(blogId, postId, x__xgafv=None)
Reverts a published or scheduled post to draft state. Args: blogId: string, A parameter (required) postId: string, A parameter (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "published": "A String", # RFC 3339 date-time when this Post was published. "blog": { # Data about the blog containing this Post. "id": "A String", # The identifier of the Blog that contains this Post. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "replies": { # The container of comments on this Post. "items": [ # The List of Comments for this Post. { "blog": { # Data about the blog containing this comment. "id": "A String", # The identifier of the blog containing this comment. }, "content": "A String", # The actual content of the comment. May include HTML markup. "author": { # The author of this Comment. "url": "A String", # The URL of the creator's Profile page. "id": "A String", # The identifier of the creator. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, "displayName": "A String", # The display name. }, "published": "A String", # RFC 3339 date-time when this comment was published. "kind": "A String", # The kind of this entry. Always blogger#comment. "id": "A String", # The identifier for this resource. "status": "A String", # The status of the comment (only populated for admin users). "inReplyTo": { # Data about the comment this is in reply to. "id": "A String", # The identified of the parent of this comment. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "post": { # Data about the post containing this comment. "id": "A String", # The identifier of the post containing this comment. }, "updated": "A String", # RFC 3339 date-time when this comment was last updated. }, ], "selfLink": "A String", # The URL of the comments on this post. "totalItems": "A String", # The count of comments on this post. }, "kind": "A String", # The kind of this entity. Always blogger#post. "content": "A String", # The content of the Post. May contain HTML markup. "updated": "A String", # RFC 3339 date-time when this Post was last updated. "id": "A String", # The identifier of this Post. "titleLink": "A String", # The title link URL, similar to atom's related link. "author": { # The author of this Post. "id": "A String", # The identifier of the creator. "url": "A String", # The URL of the creator's Profile page. "displayName": "A String", # The display name. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, }, "readerComments": "A String", # Comment control and display setting for readers of this post. "title": "A String", # The title of the Post. "status": "A String", # Status of the post. Only set for admin-level requests. "etag": "A String", # Etag of the resource. "images": [ # Display image for the Post. { "url": "A String", }, ], "location": { # The location for geotagged posts. "name": "A String", # Location name. "lat": 3.14, # Location's latitude. "lng": 3.14, # Location's longitude. "span": "A String", # Location's viewport span. Can be used when rendering a map preview. }, "labels": [ # The list of labels this Post was tagged with. "A String", ], "url": "A String", # The URL where this Post is displayed. "customMetaData": "A String", # The JSON meta-data for the Post. }
search(blogId, q, fetchBodies=None, orderBy=None, x__xgafv=None)
Searches for posts matching given query terms in the specified blog. Args: blogId: string, A parameter (required) q: string, A parameter (required) fetchBodies: boolean, A parameter orderBy: string, A parameter Allowed values ORDER_BY_UNSPECIFIED - PUBLISHED - UPDATED - x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "kind": "A String", # The kind of this entity. Always blogger#postList. "items": [ # The list of Posts for this Blog. { "published": "A String", # RFC 3339 date-time when this Post was published. "blog": { # Data about the blog containing this Post. "id": "A String", # The identifier of the Blog that contains this Post. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "replies": { # The container of comments on this Post. "items": [ # The List of Comments for this Post. { "blog": { # Data about the blog containing this comment. "id": "A String", # The identifier of the blog containing this comment. }, "content": "A String", # The actual content of the comment. May include HTML markup. "author": { # The author of this Comment. "url": "A String", # The URL of the creator's Profile page. "id": "A String", # The identifier of the creator. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, "displayName": "A String", # The display name. }, "published": "A String", # RFC 3339 date-time when this comment was published. "kind": "A String", # The kind of this entry. Always blogger#comment. "id": "A String", # The identifier for this resource. "status": "A String", # The status of the comment (only populated for admin users). "inReplyTo": { # Data about the comment this is in reply to. "id": "A String", # The identified of the parent of this comment. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "post": { # Data about the post containing this comment. "id": "A String", # The identifier of the post containing this comment. }, "updated": "A String", # RFC 3339 date-time when this comment was last updated. }, ], "selfLink": "A String", # The URL of the comments on this post. "totalItems": "A String", # The count of comments on this post. }, "kind": "A String", # The kind of this entity. Always blogger#post. "content": "A String", # The content of the Post. May contain HTML markup. "updated": "A String", # RFC 3339 date-time when this Post was last updated. "id": "A String", # The identifier of this Post. "titleLink": "A String", # The title link URL, similar to atom's related link. "author": { # The author of this Post. "id": "A String", # The identifier of the creator. "url": "A String", # The URL of the creator's Profile page. "displayName": "A String", # The display name. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, }, "readerComments": "A String", # Comment control and display setting for readers of this post. "title": "A String", # The title of the Post. "status": "A String", # Status of the post. Only set for admin-level requests. "etag": "A String", # Etag of the resource. "images": [ # Display image for the Post. { "url": "A String", }, ], "location": { # The location for geotagged posts. "name": "A String", # Location name. "lat": 3.14, # Location's latitude. "lng": 3.14, # Location's longitude. "span": "A String", # Location's viewport span. Can be used when rendering a map preview. }, "labels": [ # The list of labels this Post was tagged with. "A String", ], "url": "A String", # The URL where this Post is displayed. "customMetaData": "A String", # The JSON meta-data for the Post. }, ], "nextPageToken": "A String", # Pagination token to fetch the next page, if one exists. "etag": "A String", # Etag of the response. "prevPageToken": "A String", # Pagination token to fetch the previous page, if one exists. }
update(blogId, postId, body=None, revert=None, maxComments=None, fetchBody=None, publish=None, fetchImages=None, x__xgafv=None)
Updates a post by blog id and post id. Args: blogId: string, A parameter (required) postId: string, A parameter (required) body: object, The request body. The object takes the form of: { "published": "A String", # RFC 3339 date-time when this Post was published. "blog": { # Data about the blog containing this Post. "id": "A String", # The identifier of the Blog that contains this Post. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "replies": { # The container of comments on this Post. "items": [ # The List of Comments for this Post. { "blog": { # Data about the blog containing this comment. "id": "A String", # The identifier of the blog containing this comment. }, "content": "A String", # The actual content of the comment. May include HTML markup. "author": { # The author of this Comment. "url": "A String", # The URL of the creator's Profile page. "id": "A String", # The identifier of the creator. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, "displayName": "A String", # The display name. }, "published": "A String", # RFC 3339 date-time when this comment was published. "kind": "A String", # The kind of this entry. Always blogger#comment. "id": "A String", # The identifier for this resource. "status": "A String", # The status of the comment (only populated for admin users). "inReplyTo": { # Data about the comment this is in reply to. "id": "A String", # The identified of the parent of this comment. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "post": { # Data about the post containing this comment. "id": "A String", # The identifier of the post containing this comment. }, "updated": "A String", # RFC 3339 date-time when this comment was last updated. }, ], "selfLink": "A String", # The URL of the comments on this post. "totalItems": "A String", # The count of comments on this post. }, "kind": "A String", # The kind of this entity. Always blogger#post. "content": "A String", # The content of the Post. May contain HTML markup. "updated": "A String", # RFC 3339 date-time when this Post was last updated. "id": "A String", # The identifier of this Post. "titleLink": "A String", # The title link URL, similar to atom's related link. "author": { # The author of this Post. "id": "A String", # The identifier of the creator. "url": "A String", # The URL of the creator's Profile page. "displayName": "A String", # The display name. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, }, "readerComments": "A String", # Comment control and display setting for readers of this post. "title": "A String", # The title of the Post. "status": "A String", # Status of the post. Only set for admin-level requests. "etag": "A String", # Etag of the resource. "images": [ # Display image for the Post. { "url": "A String", }, ], "location": { # The location for geotagged posts. "name": "A String", # Location name. "lat": 3.14, # Location's latitude. "lng": 3.14, # Location's longitude. "span": "A String", # Location's viewport span. Can be used when rendering a map preview. }, "labels": [ # The list of labels this Post was tagged with. "A String", ], "url": "A String", # The URL where this Post is displayed. "customMetaData": "A String", # The JSON meta-data for the Post. } revert: boolean, A parameter maxComments: integer, A parameter fetchBody: boolean, A parameter publish: boolean, A parameter fetchImages: boolean, A parameter x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { "published": "A String", # RFC 3339 date-time when this Post was published. "blog": { # Data about the blog containing this Post. "id": "A String", # The identifier of the Blog that contains this Post. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "replies": { # The container of comments on this Post. "items": [ # The List of Comments for this Post. { "blog": { # Data about the blog containing this comment. "id": "A String", # The identifier of the blog containing this comment. }, "content": "A String", # The actual content of the comment. May include HTML markup. "author": { # The author of this Comment. "url": "A String", # The URL of the creator's Profile page. "id": "A String", # The identifier of the creator. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, "displayName": "A String", # The display name. }, "published": "A String", # RFC 3339 date-time when this comment was published. "kind": "A String", # The kind of this entry. Always blogger#comment. "id": "A String", # The identifier for this resource. "status": "A String", # The status of the comment (only populated for admin users). "inReplyTo": { # Data about the comment this is in reply to. "id": "A String", # The identified of the parent of this comment. }, "selfLink": "A String", # The API REST URL to fetch this resource from. "post": { # Data about the post containing this comment. "id": "A String", # The identifier of the post containing this comment. }, "updated": "A String", # RFC 3339 date-time when this comment was last updated. }, ], "selfLink": "A String", # The URL of the comments on this post. "totalItems": "A String", # The count of comments on this post. }, "kind": "A String", # The kind of this entity. Always blogger#post. "content": "A String", # The content of the Post. May contain HTML markup. "updated": "A String", # RFC 3339 date-time when this Post was last updated. "id": "A String", # The identifier of this Post. "titleLink": "A String", # The title link URL, similar to atom's related link. "author": { # The author of this Post. "id": "A String", # The identifier of the creator. "url": "A String", # The URL of the creator's Profile page. "displayName": "A String", # The display name. "image": { # The creator's avatar. "url": "A String", # The creator's avatar URL. }, }, "readerComments": "A String", # Comment control and display setting for readers of this post. "title": "A String", # The title of the Post. "status": "A String", # Status of the post. Only set for admin-level requests. "etag": "A String", # Etag of the resource. "images": [ # Display image for the Post. { "url": "A String", }, ], "location": { # The location for geotagged posts. "name": "A String", # Location name. "lat": 3.14, # Location's latitude. "lng": 3.14, # Location's longitude. "span": "A String", # Location's viewport span. Can be used when rendering a map preview. }, "labels": [ # The list of labels this Post was tagged with. "A String", ], "url": "A String", # The URL where this Post is displayed. "customMetaData": "A String", # The JSON meta-data for the Post. }