GetRecentChanges

This function retrieves a list of recent changes that have been made to the wiki.

Request Parameters

None

Responses

The response is a list of the last several changes that have been made to the wiki. The list is given in reverse chronological order, with the most recent changes first. The list is an array of objects. A "change" object has a number of properties:

  • op = the operation being performed, is set to one of the following values:
    • add A page was added to the wiki
    • del A page was deleted from the wiki
    • mod A page was edited
    • rev A page was reverted
    • upl A new file was uploaded to the wiki
    • rm A file was removed from the wiki
    • com A page was commented on
    • locked A page was locked for editing by an admin
    • unlocked A page was unlocked for editing by an admin
    • hidden A page was hidden (this action only visible to admins)
    • unhidden A page was unhidden (this action only visible to admins)
    • mv A page was renamed
    • mvf A file was renamed
  • ob = the object ofo the change, meaning the page name or file name
  • tm = the time of the operation in seconds since the Unix epoch
  • nm = the author's name (if available)
  • em = the author's email (if available)
  • ip = the author's IP address

Example

In the below example, the wiki's FrontPage was first edited by John Doe and then edited by Joe Blow, then John Doe uploaded a new file.

REQUEST

RESPONSE

{ "v1": {
  "changes": [
    {
      "ob": "pony.jpg",
      "op": "upl",
      "tm": 1158004511,
      "nm": "John Doe",
      "em": "john@example.com",
      "ip": "10.0.1.15"
    },
    {
      "ob": "FrontPage",
      "op": "mod",
      "tm": 1158004457,
      "nm": "Joe Blow",
      "em": "joe@example.com",
      "ip": "10.0.2.7"
    },
    {
      "ob": "FrontPage",
      "op": "mod",
      "tm": 1158004319,
      "nm": "John Doe",
      "em": "john@example.com",
      "ip": "10.0.1.15"
    }
  ]
}}


Page Information

  • 1 year ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts