Api Methods

This page describes Wikidot API methods. Read more about Wikidot API...

The list will grow as the methods are added.

site.pages(arguments array)

  • argument keys:
    • site: site to get pages from, e.g. "my-site"
    • category (optional): category to get pages from, e.g. "some-category"
  • returns: list of page_meta

site.categories(arguments array)

  • argument keys:
    • site: site to get pages from, e.g. "my-site"
  • returns: list of categories

page.get(arguments array)

  • argument keys:
    • site: site to get a page from, e.g. "my-site"
    • page: page name to get, e.g. "start" or "blog:first-post"
  • returns: page

page.files(arguments array)

  • argument keys:
    • site: what site we ask about
    • page: what page we ask about
  • returns: list of files

page.save(arguments array)

Set specific keys to update the properties, omit to keep current values.

  • argument keys:
    • site: site to save page to
    • page: page fullname to save
    • title (optional): title to set
    • source (optional): page wiki source
    • tags (optional): tags to set
    • parent_page (optional): parent page fullname
  • returns: saved page

user.sites(arguments array)

  • argument keys:
    • user: whose sites to show it can be only your user name
  • returns: list of sites