pages

pages.getVersion

Returns the text of one of the previous versions of a wiki page.

To call this method, you can use:

Parameters

version_id

string

Required parameter

group_id

string

ID of the community that owns the wiki page.

user_id

string

need_html

checkbox

1 — to return the page as HTML

Result

Returns a page object containing the following fields:

  • •
    hid — Page version ID.
  • •
    pid — Page ID.
  • •
    group_id — Community ID.
  • •
    creator_id — Page creator ID.
  • •
    title — Page title.
  • •
    source — Text of the wiki page.
  • •
    current_user_can_edit — Whether the current user can edit page text (0 — cannot, 1 — can).
  • •
    who_can_view — Who can view the wiki page (0 — only community managers, 1 — only community members, 2 — all users).
  • •
    who_can_edit — Who can edit the wiki page (0 — only community managers, 1 — only community members, 2 — all users).
  • •
    version_created — Version creation date.
  • •
    parent — Title of the parent page for navigation, if any.
  • •
    parent2 — Title of the second parent page for navigation, if any.

Error codes

141
Access to page denied

Common errors may occur during execution

Related methods

pages.get

Returns information about a wiki page.