Blogger API v3 . comments

Instance Methods

approve(blogId=*, postId=*, commentId=*, x__xgafv=None)

Marks a comment as not spam by blog id, post id and comment id.

delete(blogId=*, postId=*, commentId=*, x__xgafv=None)

Deletes a comment by blog id, post id and comment id.

get(blogId=*, postId=*, commentId=*, x__xgafv=None, view=None)

Gets a comment by id.

list(blogId=*, postId=*, startDate=None, endDate=None, x__xgafv=None, pageToken=None, status=None, maxResults=None, fetchBodies=None, view=None)

Lists comments.

listByBlog(blogId=*, startDate=None, endDate=None, x__xgafv=None, pageToken=None, status=None, maxResults=None, fetchBodies=None)

Lists comments by blog.

listByBlog_next(previous_request=*, previous_response=*)

Retrieves the next page of results.

list_next(previous_request=*, previous_response=*)

Retrieves the next page of results.

markAsSpam(blogId=*, postId=*, commentId=*, x__xgafv=None)

Marks a comment as spam by blog id, post id and comment id.

removeContent(blogId=*, postId=*, commentId=*, x__xgafv=None)

Removes the content of a comment by blog id, post id and comment id.

Method Details

approve(blogId=*, postId=*, commentId=*, x__xgafv=None)
Marks a comment as not spam by blog id, post id and comment id.

Args:
  blogId: string, A parameter (required)
  postId: string, A parameter (required)
  commentId: 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:

    {
    "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.
    },
    "kind": "A String", # The kind of this entry. Always blogger#comment.
    "author": { # The author of this Comment.
      "url": "A String", # The URL of the creator's Profile page.
      "image": { # The creator's avatar.
        "url": "A String", # The creator's avatar URL.
      },
      "displayName": "A String", # The display name.
      "id": "A String", # The identifier of the creator.
    },
    "updated": "A String", # RFC 3339 date-time when this comment was last updated.
    "blog": { # Data about the blog containing this comment.
      "id": "A String", # The identifier of the blog containing this comment.
    },
    "published": "A String", # RFC 3339 date-time when this comment was published.
    "post": { # Data about the post containing this comment.
      "id": "A String", # The identifier of the post containing this comment.
    },
    "content": "A String", # The actual content of the comment. May include HTML markup.
    "id": "A String", # The identifier for this resource.
    "selfLink": "A String", # The API REST URL to fetch this resource from.
  }
delete(blogId=*, postId=*, commentId=*, x__xgafv=None)
Deletes a comment by blog id, post id and comment id.

Args:
  blogId: string, A parameter (required)
  postId: string, A parameter (required)
  commentId: string, A parameter (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
get(blogId=*, postId=*, commentId=*, x__xgafv=None, view=None)
Gets a comment by id.

Args:
  blogId: string, A parameter (required)
  postId: string, A parameter (required)
  commentId: string, A parameter (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
  view: string, A parameter

Returns:
  An object of the form:

    {
    "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.
    },
    "kind": "A String", # The kind of this entry. Always blogger#comment.
    "author": { # The author of this Comment.
      "url": "A String", # The URL of the creator's Profile page.
      "image": { # The creator's avatar.
        "url": "A String", # The creator's avatar URL.
      },
      "displayName": "A String", # The display name.
      "id": "A String", # The identifier of the creator.
    },
    "updated": "A String", # RFC 3339 date-time when this comment was last updated.
    "blog": { # Data about the blog containing this comment.
      "id": "A String", # The identifier of the blog containing this comment.
    },
    "published": "A String", # RFC 3339 date-time when this comment was published.
    "post": { # Data about the post containing this comment.
      "id": "A String", # The identifier of the post containing this comment.
    },
    "content": "A String", # The actual content of the comment. May include HTML markup.
    "id": "A String", # The identifier for this resource.
    "selfLink": "A String", # The API REST URL to fetch this resource from.
  }
list(blogId=*, postId=*, startDate=None, endDate=None, x__xgafv=None, pageToken=None, status=None, maxResults=None, fetchBodies=None, view=None)
Lists comments.

Args:
  blogId: string, A parameter (required)
  postId: string, A parameter (required)
  startDate: string, A parameter
  endDate: string, A parameter
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
  pageToken: string, A parameter
  status: string, A parameter
  maxResults: integer, A parameter
  fetchBodies: boolean, A parameter
  view: string, A parameter

Returns:
  An object of the form:

    {
    "nextPageToken": "A String", # Pagination token to fetch the next page, if one exists.
    "items": [ # The List of Comments for a Post.
      {
        "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.
        },
        "kind": "A String", # The kind of this entry. Always blogger#comment.
        "author": { # The author of this Comment.
          "url": "A String", # The URL of the creator's Profile page.
          "image": { # The creator's avatar.
            "url": "A String", # The creator's avatar URL.
          },
          "displayName": "A String", # The display name.
          "id": "A String", # The identifier of the creator.
        },
        "updated": "A String", # RFC 3339 date-time when this comment was last updated.
        "blog": { # Data about the blog containing this comment.
          "id": "A String", # The identifier of the blog containing this comment.
        },
        "published": "A String", # RFC 3339 date-time when this comment was published.
        "post": { # Data about the post containing this comment.
          "id": "A String", # The identifier of the post containing this comment.
        },
        "content": "A String", # The actual content of the comment. May include HTML markup.
        "id": "A String", # The identifier for this resource.
        "selfLink": "A String", # The API REST URL to fetch this resource from.
      },
    ],
    "kind": "A String", # The kind of this entry. Always blogger#commentList.
    "etag": "A String", # Etag of the response.
    "prevPageToken": "A String", # Pagination token to fetch the previous page, if one exists.
  }
listByBlog(blogId=*, startDate=None, endDate=None, x__xgafv=None, pageToken=None, status=None, maxResults=None, fetchBodies=None)
Lists comments by blog.

Args:
  blogId: string, A parameter (required)
  startDate: string, A parameter
  endDate: string, A parameter
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
  pageToken: string, A parameter
  status: string, A parameter (repeated)
  maxResults: integer, A parameter
  fetchBodies: boolean, A parameter

Returns:
  An object of the form:

    {
    "nextPageToken": "A String", # Pagination token to fetch the next page, if one exists.
    "items": [ # The List of Comments for a Post.
      {
        "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.
        },
        "kind": "A String", # The kind of this entry. Always blogger#comment.
        "author": { # The author of this Comment.
          "url": "A String", # The URL of the creator's Profile page.
          "image": { # The creator's avatar.
            "url": "A String", # The creator's avatar URL.
          },
          "displayName": "A String", # The display name.
          "id": "A String", # The identifier of the creator.
        },
        "updated": "A String", # RFC 3339 date-time when this comment was last updated.
        "blog": { # Data about the blog containing this comment.
          "id": "A String", # The identifier of the blog containing this comment.
        },
        "published": "A String", # RFC 3339 date-time when this comment was published.
        "post": { # Data about the post containing this comment.
          "id": "A String", # The identifier of the post containing this comment.
        },
        "content": "A String", # The actual content of the comment. May include HTML markup.
        "id": "A String", # The identifier for this resource.
        "selfLink": "A String", # The API REST URL to fetch this resource from.
      },
    ],
    "kind": "A String", # The kind of this entry. Always blogger#commentList.
    "etag": "A String", # Etag of the response.
    "prevPageToken": "A String", # Pagination token to fetch the previous page, if one exists.
  }
listByBlog_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.
    
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.
    
markAsSpam(blogId=*, postId=*, commentId=*, x__xgafv=None)
Marks a comment as spam by blog id, post id and comment id.

Args:
  blogId: string, A parameter (required)
  postId: string, A parameter (required)
  commentId: 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:

    {
    "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.
    },
    "kind": "A String", # The kind of this entry. Always blogger#comment.
    "author": { # The author of this Comment.
      "url": "A String", # The URL of the creator's Profile page.
      "image": { # The creator's avatar.
        "url": "A String", # The creator's avatar URL.
      },
      "displayName": "A String", # The display name.
      "id": "A String", # The identifier of the creator.
    },
    "updated": "A String", # RFC 3339 date-time when this comment was last updated.
    "blog": { # Data about the blog containing this comment.
      "id": "A String", # The identifier of the blog containing this comment.
    },
    "published": "A String", # RFC 3339 date-time when this comment was published.
    "post": { # Data about the post containing this comment.
      "id": "A String", # The identifier of the post containing this comment.
    },
    "content": "A String", # The actual content of the comment. May include HTML markup.
    "id": "A String", # The identifier for this resource.
    "selfLink": "A String", # The API REST URL to fetch this resource from.
  }
removeContent(blogId=*, postId=*, commentId=*, x__xgafv=None)
Removes the content of a comment by blog id, post id and comment id.

Args:
  blogId: string, A parameter (required)
  postId: string, A parameter (required)
  commentId: 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:

    {
    "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.
    },
    "kind": "A String", # The kind of this entry. Always blogger#comment.
    "author": { # The author of this Comment.
      "url": "A String", # The URL of the creator's Profile page.
      "image": { # The creator's avatar.
        "url": "A String", # The creator's avatar URL.
      },
      "displayName": "A String", # The display name.
      "id": "A String", # The identifier of the creator.
    },
    "updated": "A String", # RFC 3339 date-time when this comment was last updated.
    "blog": { # Data about the blog containing this comment.
      "id": "A String", # The identifier of the blog containing this comment.
    },
    "published": "A String", # RFC 3339 date-time when this comment was published.
    "post": { # Data about the post containing this comment.
      "id": "A String", # The identifier of the post containing this comment.
    },
    "content": "A String", # The actual content of the comment. May include HTML markup.
    "id": "A String", # The identifier for this resource.
    "selfLink": "A String", # The API REST URL to fetch this resource from.
  }