# Blogger API v3 . pages

## Instance Methods

Close httplib2 connections.

Deletes a page by blog id and page id.

Gets a page by blog id and page id.

Inserts a page.

Lists pages.

Retrieves the next page of results.

Patches a page.

Publishes a page.

Reverts a published or scheduled page to draft state.

Updates a page by blog id and page id.

### Method Details

`close()`

    Close httplib2 connections.

`delete(blogId, pageId, x__xgafv=None)`

    Deletes a page by blog id and page id.

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

`get(blogId, pageId, view=None, x__xgafv=None)`

    Gets a page by blog id and page id.

    Args:
      blogId: string, A parameter (required)
      pageId: string, A parameter (required)
      view: string, A parameter
        Allowed values
          VIEW_TYPE_UNSPECIFIED -
          READER -
          AUTHOR -
          ADMIN -
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        {
          "updated": "A String", # RFC 3339 date-time when this Page was last updated.
          "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.
          "etag": "A String", # Etag of the resource.
          "author": { # The author of this Page.
            "url": "A String", # The URL of the creator's Profile page.
            "id": "A String", # The identifier of the creator.
            "displayName": "A String", # The display name.
            "image": { # The creator's avatar.
              "url": "A String", # The creator's avatar URL.
            },
          },
          "blog": { # Data about the blog containing this Page.
            "id": "A String", # The identifier of the blog containing this page.
          },
          "selfLink": "A String", # The API REST URL to fetch this resource from.
          "content": "A String", # The body content of this Page, in HTML.
          "url": "A String", # The URL that this Page is displayed at.
          "kind": "A String", # The kind of this entity. Always blogger#page.
          "status": "A String", # The status of the page for admin resources (either LIVE or DRAFT).
          "id": "A String", # The identifier for this resource.
          "published": "A String", # RFC 3339 date-time when this Page was published.
        }

`insert(blogId, body=None, isDraft=None, x__xgafv=None)`

    Inserts a page.

    Args:
      blogId: string, A parameter (required)
      body: object, The request body.
        The object takes the form of:

    {
        "updated": "A String", # RFC 3339 date-time when this Page was last updated.
        "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.
        "etag": "A String", # Etag of the resource.
        "author": { # The author of this Page.
          "url": "A String", # The URL of the creator's Profile page.
          "id": "A String", # The identifier of the creator.
          "displayName": "A String", # The display name.
          "image": { # The creator's avatar.
            "url": "A String", # The creator's avatar URL.
          },
        },
        "blog": { # Data about the blog containing this Page.
          "id": "A String", # The identifier of the blog containing this page.
        },
        "selfLink": "A String", # The API REST URL to fetch this resource from.
        "content": "A String", # The body content of this Page, in HTML.
        "url": "A String", # The URL that this Page is displayed at.
        "kind": "A String", # The kind of this entity. Always blogger#page.
        "status": "A String", # The status of the page for admin resources (either LIVE or DRAFT).
        "id": "A String", # The identifier for this resource.
        "published": "A String", # RFC 3339 date-time when this Page was published.
      }

      isDraft: 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:

        {
          "updated": "A String", # RFC 3339 date-time when this Page was last updated.
          "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.
          "etag": "A String", # Etag of the resource.
          "author": { # The author of this Page.
            "url": "A String", # The URL of the creator's Profile page.
            "id": "A String", # The identifier of the creator.
            "displayName": "A String", # The display name.
            "image": { # The creator's avatar.
              "url": "A String", # The creator's avatar URL.
            },
          },
          "blog": { # Data about the blog containing this Page.
            "id": "A String", # The identifier of the blog containing this page.
          },
          "selfLink": "A String", # The API REST URL to fetch this resource from.
          "content": "A String", # The body content of this Page, in HTML.
          "url": "A String", # The URL that this Page is displayed at.
          "kind": "A String", # The kind of this entity. Always blogger#page.
          "status": "A String", # The status of the page for admin resources (either LIVE or DRAFT).
          "id": "A String", # The identifier for this resource.
          "published": "A String", # RFC 3339 date-time when this Page was published.
        }

`list(blogId, fetchBodies=None, view=None, pageToken=None, maxResults=None, status=None, x__xgafv=None)`

    Lists pages.

    Args:
      blogId: string, A parameter (required)
      fetchBodies: boolean, A parameter
      view: string, A parameter
        Allowed values
          VIEW_TYPE_UNSPECIFIED -
          READER -
          AUTHOR -
          ADMIN -
      pageToken: string, A parameter
      maxResults: integer, A parameter
      status: string, A parameter (repeated)
        Allowed values
          LIVE -
          DRAFT -
      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#pageList.
        "nextPageToken": "A String", # Pagination token to fetch the next page, if one exists.
        "etag": "A String", # Etag of the response.
        "items": [ # The list of Pages for a Blog.
          {
              "updated": "A String", # RFC 3339 date-time when this Page was last updated.
              "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.
              "etag": "A String", # Etag of the resource.
              "author": { # The author of this Page.
                "url": "A String", # The URL of the creator's Profile page.
                "id": "A String", # The identifier of the creator.
                "displayName": "A String", # The display name.
                "image": { # The creator's avatar.
                  "url": "A String", # The creator's avatar URL.
                },
              },
              "blog": { # Data about the blog containing this Page.
                "id": "A String", # The identifier of the blog containing this page.
              },
              "selfLink": "A String", # The API REST URL to fetch this resource from.
              "content": "A String", # The body content of this Page, in HTML.
              "url": "A String", # The URL that this Page is displayed at.
              "kind": "A String", # The kind of this entity. Always blogger#page.
              "status": "A String", # The status of the page for admin resources (either LIVE or DRAFT).
              "id": "A String", # The identifier for this resource.
              "published": "A String", # RFC 3339 date-time when this Page was published.
            },
        ],
      }

`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, pageId, body=None, publish=None, revert=None, x__xgafv=None)`

    Patches a page.

    Args:
      blogId: string, A parameter (required)
      pageId: string, A parameter (required)
      body: object, The request body.
        The object takes the form of:

    {
        "updated": "A String", # RFC 3339 date-time when this Page was last updated.
        "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.
        "etag": "A String", # Etag of the resource.
        "author": { # The author of this Page.
          "url": "A String", # The URL of the creator's Profile page.
          "id": "A String", # The identifier of the creator.
          "displayName": "A String", # The display name.
          "image": { # The creator's avatar.
            "url": "A String", # The creator's avatar URL.
          },
        },
        "blog": { # Data about the blog containing this Page.
          "id": "A String", # The identifier of the blog containing this page.
        },
        "selfLink": "A String", # The API REST URL to fetch this resource from.
        "content": "A String", # The body content of this Page, in HTML.
        "url": "A String", # The URL that this Page is displayed at.
        "kind": "A String", # The kind of this entity. Always blogger#page.
        "status": "A String", # The status of the page for admin resources (either LIVE or DRAFT).
        "id": "A String", # The identifier for this resource.
        "published": "A String", # RFC 3339 date-time when this Page was published.
      }

      publish: boolean, A parameter
      revert: 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:

        {
          "updated": "A String", # RFC 3339 date-time when this Page was last updated.
          "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.
          "etag": "A String", # Etag of the resource.
          "author": { # The author of this Page.
            "url": "A String", # The URL of the creator's Profile page.
            "id": "A String", # The identifier of the creator.
            "displayName": "A String", # The display name.
            "image": { # The creator's avatar.
              "url": "A String", # The creator's avatar URL.
            },
          },
          "blog": { # Data about the blog containing this Page.
            "id": "A String", # The identifier of the blog containing this page.
          },
          "selfLink": "A String", # The API REST URL to fetch this resource from.
          "content": "A String", # The body content of this Page, in HTML.
          "url": "A String", # The URL that this Page is displayed at.
          "kind": "A String", # The kind of this entity. Always blogger#page.
          "status": "A String", # The status of the page for admin resources (either LIVE or DRAFT).
          "id": "A String", # The identifier for this resource.
          "published": "A String", # RFC 3339 date-time when this Page was published.
        }

`publish(blogId, pageId, x__xgafv=None)`

    Publishes a page.

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

        {
          "updated": "A String", # RFC 3339 date-time when this Page was last updated.
          "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.
          "etag": "A String", # Etag of the resource.
          "author": { # The author of this Page.
            "url": "A String", # The URL of the creator's Profile page.
            "id": "A String", # The identifier of the creator.
            "displayName": "A String", # The display name.
            "image": { # The creator's avatar.
              "url": "A String", # The creator's avatar URL.
            },
          },
          "blog": { # Data about the blog containing this Page.
            "id": "A String", # The identifier of the blog containing this page.
          },
          "selfLink": "A String", # The API REST URL to fetch this resource from.
          "content": "A String", # The body content of this Page, in HTML.
          "url": "A String", # The URL that this Page is displayed at.
          "kind": "A String", # The kind of this entity. Always blogger#page.
          "status": "A String", # The status of the page for admin resources (either LIVE or DRAFT).
          "id": "A String", # The identifier for this resource.
          "published": "A String", # RFC 3339 date-time when this Page was published.
        }

`revert(blogId, pageId, x__xgafv=None)`

    Reverts a published or scheduled page to draft state.

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

        {
          "updated": "A String", # RFC 3339 date-time when this Page was last updated.
          "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.
          "etag": "A String", # Etag of the resource.
          "author": { # The author of this Page.
            "url": "A String", # The URL of the creator's Profile page.
            "id": "A String", # The identifier of the creator.
            "displayName": "A String", # The display name.
            "image": { # The creator's avatar.
              "url": "A String", # The creator's avatar URL.
            },
          },
          "blog": { # Data about the blog containing this Page.
            "id": "A String", # The identifier of the blog containing this page.
          },
          "selfLink": "A String", # The API REST URL to fetch this resource from.
          "content": "A String", # The body content of this Page, in HTML.
          "url": "A String", # The URL that this Page is displayed at.
          "kind": "A String", # The kind of this entity. Always blogger#page.
          "status": "A String", # The status of the page for admin resources (either LIVE or DRAFT).
          "id": "A String", # The identifier for this resource.
          "published": "A String", # RFC 3339 date-time when this Page was published.
        }

`update(blogId, pageId, body=None, revert=None, publish=None, x__xgafv=None)`

    Updates a page by blog id and page id.

    Args:
      blogId: string, A parameter (required)
      pageId: string, A parameter (required)
      body: object, The request body.
        The object takes the form of:

    {
        "updated": "A String", # RFC 3339 date-time when this Page was last updated.
        "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.
        "etag": "A String", # Etag of the resource.
        "author": { # The author of this Page.
          "url": "A String", # The URL of the creator's Profile page.
          "id": "A String", # The identifier of the creator.
          "displayName": "A String", # The display name.
          "image": { # The creator's avatar.
            "url": "A String", # The creator's avatar URL.
          },
        },
        "blog": { # Data about the blog containing this Page.
          "id": "A String", # The identifier of the blog containing this page.
        },
        "selfLink": "A String", # The API REST URL to fetch this resource from.
        "content": "A String", # The body content of this Page, in HTML.
        "url": "A String", # The URL that this Page is displayed at.
        "kind": "A String", # The kind of this entity. Always blogger#page.
        "status": "A String", # The status of the page for admin resources (either LIVE or DRAFT).
        "id": "A String", # The identifier for this resource.
        "published": "A String", # RFC 3339 date-time when this Page was published.
      }

      revert: boolean, A parameter
      publish: 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:

        {
          "updated": "A String", # RFC 3339 date-time when this Page was last updated.
          "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.
          "etag": "A String", # Etag of the resource.
          "author": { # The author of this Page.
            "url": "A String", # The URL of the creator's Profile page.
            "id": "A String", # The identifier of the creator.
            "displayName": "A String", # The display name.
            "image": { # The creator's avatar.
              "url": "A String", # The creator's avatar URL.
            },
          },
          "blog": { # Data about the blog containing this Page.
            "id": "A String", # The identifier of the blog containing this page.
          },
          "selfLink": "A String", # The API REST URL to fetch this resource from.
          "content": "A String", # The body content of this Page, in HTML.
          "url": "A String", # The URL that this Page is displayed at.
          "kind": "A String", # The kind of this entity. Always blogger#page.
          "status": "A String", # The status of the page for admin resources (either LIVE or DRAFT).
          "id": "A String", # The identifier for this resource.
          "published": "A String", # RFC 3339 date-time when this Page was published.
        }