|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| v2 API keys should be kept as secret as any other password. | ||
| Name | Value | Description |
| admin_key | *************************** | v2 API admin key |
| write_key | *************************** | v2 API write key |
| read_key | *************************** | v2 API read key |
Welcome to the PBworks v2 API documentation!
Select an operation from the left menu to get started.
Key Concepts
PBworks API access is available through two different mechanisms. First, you can use the API Keys available here to indicate your (or your program's) rights to connect to this workspace. Second, you can use your browser's session cookies to convey the appropriate rights.
When invoking an operation with your browser session, you will need to provide an additional input in order to prevent the possibilty of a Cross-Site Scripting compromise. The practical result of this is that malicious code on a non-PBworks site won't know your session cookie value, so it won't be able to cause you to accidentally or unwittingly change your workspace. At the same time, there is no practical way for a third party to cause you to convey workspace content back to them without your active participation.
Our security model assumes that any JavaScript on your workspace will have been vetted by the workspace's administrator so it's not helpful to restrict it beyond our standard mechanisms for privilege isolation. Your workspace session is particular to this workspace and does not directly identify you without additional information which is not exposed anywhere. If through accident or malfeasance your session is compromised on one workspace that workspace session cannot be used to grant someone else privileges on another workspace on which you have a PBworks account. We use the 'wss' cookie to identify your session and in turn to identify your user account but the reverse relation is not available programatically.
Welcome to the PBworks v2 API documentation!
Select an operation from the left menu to get started.
Key Concepts
PBworks API access is available through two different mechanisms. First, you can use the API Keys available here to indicate your (or your program's) rights to connect to this workspace. Second, you can use your browser's session cookies to convey the appropriate rights.
When invoking an operation with your browser session, you will need to provide an additional input in order to prevent the possibilty of a Cross-Site Scripting compromise. The practical result of this is that malicious code on a non-PBworks site won't know your session cookie value, so it won't be able to cause you to accidentally or unwittingly change your workspace. At the same time, there is no practical way for a third party to cause you to convey workspace content back to them without your active participation.
Our security model assumes that any JavaScript on your workspace will have been vetted by the workspace's administrator so it's not helpful to restrict it beyond our standard mechanisms for privilege isolation. Your workspace session is particular to this workspace and does not directly identify you without additional information which is not exposed anywhere. If through accident or malfeasance your session is compromised on one workspace that workspace session cannot be used to grant someone else privileges on another workspace on which you have a PBworks account. We use the 'wss' cookie to identify your session and in turn to identify your user account but the reverse relation is not available programatically.
PBworks Delegated Authentication
This advanced feature is available by special arrangement with PBworks.
Executive summary
- This enables Single Sign On (SSO) with your existing LDAP/ActiveDirectory installation.
- You'll need to run a few lines of code on a webserver that can talk to your LDAP/AD server.
- You will NOT need to open a hole in your firewall for PBworks.
- Estimated time for you to get up and running: one day.
Implementation notes
PBworks identifies users by email address. Traditionally, a user enters her email address and password on a workspace login page to get access to that workspace. At the same time, she'll be logged in as that user for all of PBworks, including all workspaces she's a member of listed at https://my.pbworks.com/
PBworks Delegated Authentication allows a designated email domain or set of email domains to be identified by a particular customer's own servers rather than via traditional email+password authentication. Rather than simply asserting that a particular browser should be allowed access to a particular workspace, PBworks Delegated Authentication allows a customer server to make a verifiable assertion about the identity of a user. That user will then be logged in to the entirety of PBworks, with the proper access to the workspaces they are a member of. If there is no existing PBworks account for the user in question, a PBworks account is created automatically.
No information is directly transferred between the customer server and PBworks or vice versa — all of the transaction is performed via the user's browser cookies and URL redirection.
In addition to the identity assertion, a properly configured customer server can assert that user's identity as well as their permission level on a particular workspace. This assertion is of course only possible for workspaces which have been associated with that configuration. Contact your PBworks sales rep for more information.

Definitions for this documentation
| Name | How transmitted | |
| {auth server} | URL | The web server (could be behind a firewall), listening for HTTPS or HTTP and able to talk to your LDAP/AD server e.g. https://auth-intranet.customer.com/login.aspx [You provide this URL to PBworks] |
| {domain} | GET parameter | The authentication domain for your workspace(s), usually the portion after the @ in your organization's email addresses. e.g. customer.com |
| {shared secret} | Never transferred | A random string of characters provided to you by PBworks for each of one or more authenication domains e.g. examplesharedsecret [PBworks gives you this once] |
| {token} | GET parameter | One-time-use random token generated by PBworks and used by the {auth server} to sign the user's credentials e.g. EXAMPLETOKEN |
| {email} | GET parameter | Email address for the user. e.g. someuser@customer.com |
| {time} | GET parameter | Official PBworks time in Unix epoch seconds e.g. 1257595207 |
| {secret cookie} | Browser cookie | One-time-use cookie related to but not identical to {token} and only visible to https://my.pbworks.com/ e.g. ExampleSecret |
Test harness
When configuring your {auth server} it is helpful to verify the paramater passing and credentials signing mechanism independent of the particular back-office login you choose to implement. Use the test tool to confirm you get the correct results using the provided sample code.
PBworks Delegated Authentication test tool: https://my.pbworks.com/delegate/test
Example transaction
| Data flows | Description | Example URL | ||||||||||||||||||||||||||||||
User to PBworks | Begin request (via workspace login form) | https://eg.pbworks.com/session/custom | ||||||||||||||||||||||||||||||
PBworks to User | PBworks sets our {secret cookie} cookie (which the {auth server} does not see) on the user's browser then redirects the user to your designated {auth server} after adding the appropriate URL parameters | https://auth-intranet.customer.com/login.aspx?token=EXAMPLETOKEN&time=1257595207 -or- https://auth-intranet.customer.com/login.aspx?token=EXAMPLETOKEN&time=1257595207&domain=customer.com&email=someuser%40customer.com&wiki=eg Required parameters:
Optional parameters:
| ||||||||||||||||||||||||||||||
User to {auth server} | User completes login at {auth server} | This could involve any number of steps (including zero) for the user as appropriate for your infrastructure and policies. Examples include Active Directory, LDAP, Kerberos, RSA/SecureID, etc. | ||||||||||||||||||||||||||||||
{auth server} to User | {auth server} determines the user's credentials, constructs signed URL, redirects user to PBworks Important: the user is directed to https://my.pbworks.com/ — not the workspace they are logging in to. The reason to not direct someone directly to the workspace is that PBworks needs to use HTTPS end-to-end for the main identification phase. We do this to protect a user's identity by isolating credentials to a particular workspace - a compromise in one place cannot propagate elsewhere. We can't use HTTPS with workspaces hosted on a custom domain because we don't have the SSL certificate for those other domains but we are guaranteed to have a proper certificate for my.pbworks.com. After the credential is accepted a session cookie is granted on my.pbworks.com. If a workspace and permission is specified by the incoming delegated authentication request you generate, we can redirect to the workspace with our standard session-granting URL parameter. That session parameter is sent over HTTPS for those workspaces which can support it and standard HTTP for domained workspaces. | https://my.pbworks.com/?token=EXAMPLETOKEN&email=someuser%40customer.com&name=Your%20Name&domain=customer.com&valid_until=1257595807&signature=c97d9f404609c5f397ba18a44c8f666dbf33d1ad -or- https://my.pbworks.com/?token=EXAMPLETOKEN&email=someuser%40customer.com&name=Your%20Name&domain=customer.com&valid_until=1257595807&wiki=eg&perm=write&signature=c97d9f404609c5f397ba18a44c8f666dbf33d1ad Required parameters:
Optional parameters:
Signature parameters:
Version parameters:
| ||||||||||||||||||||||||||||||
User to PBworks | Request completed, and on success user is forwarded to https://my.pbworks.com/ or https://eg.pbworks.com/ as appropriate. | PBworks analyzes the {signature}, {shared secret}, {domain}, {secret cookie}, {valid_until}, {email}, {wiki} and {perm} values to approve or deny the assertion made by {auth server} |
Sample code (PHP and Perl for now, more examples coming soon)
This trivial PHP script constructs a properly signed Delegated Authentication reply which PBworks can validate.
<?php
// This file is part of the PBworks Delgated Authentication documentation set.
// This script shows the simplest possible PHP code for signing a Delgated Authentication credential.
// It should be clear that this is a trivial example, and should never be used in actual production.
// @version $Id: delegated_auth_simplest_possible.php 9404 2009-04-27 23:07:00Z dew $
$domain = 'tdemo.net'; // your domain here
$secret = 'SharedSecret'; // your shared secret from PBworks
$wiki = 'demo'; //name of the wiki
$perm = 'read'; //permission the user should get {read,write,mod,admin}
$expires = time() + 3600; // When the session expires (NOT when the signature expires). One hour
// $email and $name would come from your LDAP database, for example
$email = 'useremail@' . $domain;
$name = 'Made-up Test User';
$urlencoded_email = rawurlencode($email); // These values will be in the url so urlencode
$urlencoded_name = rawurlencode($name);
$token = $_GET['token']; // the one-time token from PBworks
if($token) {
// sha1('test') returns 'a94a8fe5ccb19ba61c4c0873d391e987982fbbd3'
$signature = sha1($secret . $token . $expires . $email . $wiki . $perm);
$return_to = "https://my.pbworks.com/?email=$urlencoded_email&name=$urlencoded_name&wiki=$wiki";
$return_to .= "&perm=$perm&domain=$domain&valid_until=$expires&token=$token&signature=$signature&version=2";
} else {
// We need a token first. Sending the user to the following url will send them back here
$return_to = "https://my.pbworks.com/delegate/gettoken?wiki=$wiki&domain=$domain";
}
header("Location: $return_to");
print "Done!";
?>
An equivalent in Perl
use strict;
use URI::Escape;
use CGI qw/:standard/;
use ExampleCode;
if (!ExampleCode->isUserLoggedIn()) {
print redirect("http://mysite.example.com/login.cgi");
exit;
}
my $userid = ExampleCode->getUserId();
my $db = ExampleCode->getDbHandle();
my $sth = $db->prepare("select name,email from user where userid=?");
$sth->execute($userid);
my ($name,$email) = $sth->fetchrow();
my $wiki = "examplewiki";
my $perm = "admin";
my $domain = 'example.com';
my $secret = '123456789';
if (param('token')) {
my $urlencoded_email = uri_escape($email);
my $urlencoded_name = uri_escape($name);
my $expires = time + 3600;
my $token = param('token');
my $sha1 = Digest::SHA1->new;
$sha1->add($secret . $token . $expires . $email . $wiki . $perm);
my $signature = $sha1->hexdigest;
my $return_to = "https://my.pbworks.com/?version=2&wiki=$wiki&perm=$perm&email=$urlencoded_email";
$return_to .= "&name=$urlencoded_name&domain=$domain&valid_until=$expires&token=$token&signature=$signature";
print redirect($return_to);
} else {
my $return_to = "https://my.pbworks.com/delegate/gettoken?wiki=$wiki&domain=$domain";
print redirect($return_to);
}
exit;
This is an example of the code which should run on the {auth server} machine. It verifies a user's identity and permissions according to your organization's policies and then constructs a secure PBworks URL which PBworks can validate.
<?php
// This file is part of the PBworks Delgated Authentication documentation set.
// @version $Id: delegated_auth_sample_code.php 9404 2009-04-27 23:07:00Z dew $
$auth_domain = 'tdemo.net'; // your domain, as approved by PBworks
$our_shared_domain_secret = 'SharedSecret'; // your domain's shared secret, provided by PBworks
$valid_seconds = 24 * 60 * 60; // one day (you should choose a reasonable value for your policies).
$header = <<<EOT
<head><title>Demo login page</title><style>body { background-color: #ccc; font-family:Courier,fixed-width; }
h1 { font-style: italic; margin-left:200px; }
#loginform, #forward { background-color: #fff; padding:20px; width:500px; border:5px solid #888; margin-left:200px; }
#info { font-size: 12px; } a { font-size:90%; }
</style>
</head><h1>Log in at $auth_domain</h1>
EOT;
$in_token = stripslashes($_REQUEST['token']);
$in_email = stripslashes($_REQUEST['email']);
$in_password = stripslashes($_POST['password']);
// generally speaking we return credentials to my.pbworks.com - that's where the secure user session lives.
if (!$return_to_url = stripslashes($_REQUEST['pbwikidomain'])){
$return_to_url = 'https://my.pbworks.com/';
}
$incept_url = "https://my.pbworks.com/delegate/gettoken?domain=$auth_domain";
if (!$in_token) {
print "Sorry, didn't get a token for this domain. Try again please.<br>";
print "<a href=\"$incept_url\">Click here to begin login</a>";
exit;
}
if ($_REQUEST['badtoken']) {
$in_token.= 'FAIL';
}
if ($in_password) {
$u_info = user_info_for_email_and_password_in_domain($in_email, $in_password, $auth_domain);
// getting to this point implies login success for this trivial example.
// this is reasonable if your clock is in sync with NTP servers
$valid_until = $valid_seconds + time();
$url = $return_to_url;
$url = util_add_url_arguments($url, array(
'email' => $in_email,
'name' => $u_info['name'],
'domain' => $auth_domain,
'valid_until' => $valid_until,
'token' => $in_token,
'version'=> 2,
));
if ($u_info['wiki']) {
// we are asserting the user's identity (via the 'email' and 'name' fields) as well as their permission
// on a particular wiki we control
$url = util_add_url_arguments($url, array(
'wiki' => $u_info['wiki'],
'perm' => $u_info['perm'],
));
$signature = sha1($our_shared_domain_secret . $_REQUEST['token'] . $valid_until . $in_email . $u_info['wiki'] . $u_info['perm']);
} else {
// we are asserting only the user's identity (via the 'email' and 'name' fields)
$signature = sha1($our_shared_domain_secret . $_REQUEST['token'] . $valid_until . $in_email);
}
if ($_REQUEST['badsha1']) {
$signature.= 'FAIL';
}
$url = util_add_url_argument($url, 'signature', $signature);
// done, success!
print $header;
$secs = 5;
$displayurl = $url;
$displayurl = str_replace('?', '?<br>', $displayurl);
$displayurl = str_replace('&', '&<br>', $displayurl);
print <<<EOT
<div id="forward">
OK, forwarding you to this url:<br>
<ul><li><a href="$url">$displayurl</a></li></ul><br>
Normally that would be instant but this is an example. Redirecting in $secs seconds.
</div>
<meta http-equiv="refresh" content="$secs;URL=$url" >
EOT;
exit;
}
if ($auth_domain == 'tdemo.net') {
$more_info = '<hr>This is a sample transaction using the PBworks delegated authentication test harness. ';
if ($_SERVER['HTTP_HOST'] == 'login.tdemo.net') {
$more_info.= '<hr>The code is running on a Dreamhost virtual server but normally would be installed';
$more_info.= ' on a server within your organization. ';
$more_info.= 'See <a href="http://pbworks.com/api_v2/#Delegated_Auth">http://pbworks.com/api_v2/#Delegated_Auth</a>';
$more_info . -' to get the latest version of this sample code. <hr>';
}
$more_info.= 'We have received some info from the PBworks server and will send a sample signature and ';
$more_info.= 'identification back for validation. You can just click "Proceed" to test the system.';
$pwd_hint = 'example';
}
// since we didn't make it all the way though pushing the user back to PBworks, better draw that login form
$login_form = <<<EOT
<div id="loginform">
<form method=post>
email<input type="text" name="email" value="$in_email"><br>
password<input type="text" name="password" value="$pwd_hint"><br>
{token}<input type="text" name="token" value="$in_token" ><br>
{pbwikidomain}<input type="text" name="pbwikidomain" value="$return_to_url" ><br>
<input type="checkbox" name="badtoken"> simulate an invalid token<br/>
<input type="checkbox" name="badsha1"> simulate an invalid signature<br/>
<input type=submit value="Proceed">
<div id="info">$more_info</div>
</form>
EOT;
print $header;
print $login_form;
// this is where you would call out to an LDAP or Active Directory server to decide what permissions the user gets.
function user_info_for_email_and_password_in_domain($email, $password, $auth_domain) {
$our_wiki = 'eg'; //could be more than one wiki, of course.
$known_users = array(
"exampleuser@$auth_domain" => array(
'pass' => 'example',
'name' => 'Some Example User',
'wiki' => $our_wiki,
'perm' => 'read', //could be one of {read, write, edit, admin}
) ,
);
$u_rec = $known_users[$email];
if (!$u_rec) {
print 'Unknown user :' + $email;
exit;
}
if ($u_rec['pass'] != $password) {
print 'Bad password for user:' + $email;
exit;
}
return $u_rec;
}
// trivial functions - just tack on more GET parameters to a URL
function util_add_url_arguments($url, $kvs) {
foreach($kvs as $k => $v) {
$url = util_add_url_argument($url, $k, $v);
}
return $url;
}
function util_add_url_argument($url, $k, $v) {
if (preg_match('/\?/', $url)) {
$url.= '&';
} else {
$url.= '?';
}
$url.= rawurlencode($k) . '=' . rawurlencode($v);
return $url;
}
?>
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetBundle/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetBundle&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| foldertime | epoch seconds|int | Last time any folder was added/deleted or a page was moved into or out of a folder |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| tagtime | epoch seconds|int | Last time any page tag was added/deleted |
| filetime | epoch seconds|int | Last time any file was uploaded/delted/renamed |
| Required outputs | ||
| Name | Type | Description |
| bundle | array | Array which lists pages, files, tags and folders for the workspace |
Required inputs: none
Optional inputs: none
Optional outputs: none
| Notes |
| This method is used internally by PBworks for the auto-complete search function. It returns a (sometimes large) payload of data which reflects a fairly complete picture of the state of the workspace, including the list of pages, list of attached files, and tags. This is overkill for most operations, and should be used sparingly. |
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetChanges/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetChanges&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Optional inputs | ||
| Name | Type | Description |
| count | int | Number of recent activity events to return (must be less than 100) |
| reverse | bool | Whether to show events in reverse order (newest first). Default is true. |
| after | int | If specified, only return updates from this date forward inclusive |
| filter_mode | string | Which updates to display. 'all' will return all activity in the current context that you have permission to see, 'starred_following' things you are following, and 'workspaces_following' for updates from workspaces you are a member of as well as things you are following. |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| filetime | epoch seconds|int | Last time any file was uploaded/delted/renamed |
| permtime | epoch seconds|int | Last time folder or page security was changed |
| foldertime | epoch seconds|int | Last time any folder was added/deleted or a page was moved into or out of a folder |
| commenttime | epoch seconds|int | Last time any page comment was added/deleted |
| Required outputs | ||
| Name | Type | Description |
| changes | array | List of recent activity on this workspace |
Required inputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetNetworkChanges/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetNetworkChanges&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Optional inputs | ||
| Name | Type | Description |
| count | int | Number of recent activity events to return (must be less than 100) |
| reverse | bool | Whether to show events in reverse order (newest first). Default is true. |
| filter_mode | string | Which updates to display. 'all' will return all activity in the current context that you have permission to see, 'starred_following' things you are following, and 'workspaces_following' for updates from workspaces you are a member of as well as things you are following. |
| my | bool | Only show updates from workspaces the user is a member of |
| event_filter | string | One or more activity types to return, comma separated |
| user_id_filter | string | If specified, will only include changes made by this user |
| after | int | If specified, only return updates from this date forward inclusive |
| wiki_filter | string | If specified, will only include changes made on this workspace |
| ignore_self | bool | If true, will skip updates posted by yourself. |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| filetime | epoch seconds|int | Last time any file was uploaded/delted/renamed |
| permtime | epoch seconds|int | Last time folder or page security was changed |
| foldertime | epoch seconds|int | Last time any folder was added/deleted or a page was moved into or out of a folder |
| commenttime | epoch seconds|int | Last time any page comment was added/deleted |
| userupdatetime | epoch seconds|int | Last time user updates were changed |
| milestonetime | epoch seconds|int | Last time any milestone or task was added/edited/deleted |
| Required outputs | ||
| Name | Type | Description |
| changes | array | List of recent activity on this workspace |
Required inputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Changes workspace state. Updates 'filetime', 'file data'
| Required inputs | ||
| Name | Type | Description |
| file | string | File to delete |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| revision | int | Revision to delete |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetFile/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/filename/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=GetFile&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&filename=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| filename | string | File name |
Optional inputs: none
Permanent cachability inputs: n/a
Required outputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetFileRevisions/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/file/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=GetFileRevisions&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&file=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| file | string | File name |
| Optional inputs | ||
| Name | Type | Description |
| count | int | Maximum number of records to return |
| file | string | File name |
| offset | int | Number of records to skip |
| reverse | bool | Whether to reverse the order of the sorting |
| sortby | string | Which field to sort records by |
| verbose | bool | Whether to include metadata about each revision or only return an array of times. Default is false. |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| filetime | epoch seconds|int | Last time any file was uploaded/delted/renamed |
| Required outputs | ||
| Name | Type | Description |
| revisions | array|false | Array of epoch seconds revisions for page (or false if file does not exist) |
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetFiles/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetFiles&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Optional inputs | ||
| Name | Type | Description |
| anchor | string | Specify the block of records to return which contains a record with the name specified in this field |
| count | int | Maximum number of records to return |
| filter | string | String to filter name by |
| folder | string | Folder name |
| offset | int | Number of records to skip |
| reverse | bool | Whether to reverse the order of the sorting |
| sortby | string | Which field to sort records by |
| verbose | bool | Whether to include metadata about each page or only return an array of names. Default is true. |
| detail | string | Detail level of the output for verbose requests (partial or full). Default is full |
| Required outputs | ||
| Name | Type | Description |
| files | array | List of files accessible to the user |
Required inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetStorageInfo/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetStorageInfo&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required outputs | ||
| Name | Type | Description |
| available | int|float | Available storage in kilobytes |
| available_readable | string | Available storage in human-readable units |
| total | int|float | Total storage in kilobytes |
| total_readable | string | Total storage in human-readable units |
| used | int|float | Used storage in kilobytes |
| used_readable | string | Used storage in human-readable units |
| ratelimited | bool | Whether or not the workspace has been ratelimited on file uploads |
| ratelimit_percent | int | Percent of file upload ratelimit quota that has been used |
| unlimited_quota | bool | Whether or not this workspace has unlimited disk quota |
Required inputs: none
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Changes workspace state. Updates 'filetime', 'file data'
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| filename | string | target filename if different from posted file metainformation |
| folder | string | Name of folder to upload files to |
| verbose | bool | Returns additional metadata about the file uploads |
| Required outputs | ||
| Name | Type | Description |
| success | int[0,1] | Success flag |
| Optional outputs | ||
| Name | Type | Description |
| metadata | associative array | File upload information |
Required inputs: none
Permanent cachability inputs: n/a
Required auth level(s): write edit mod admin
Changes workspace state. Updates 'filetime', 'file data'
| Required inputs | ||
| Name | Type | Description |
| from | string | Name of file to rename |
| to | string | New name of file |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): mod admin
Changes workspace state. Updates 'filetime', 'file data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/RevertFile/_type/jsontext/write_key/OBVIOUS-FAKE-KEY/file/SOMEVALUE/revision/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=RevertFile&_type=jsontext&write_key=OBVIOUS-FAKE-KEY&file=SOMEVALUE&revision=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| file | string | File name |
| revision | epoch seconds | Revision to revert to |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| filetime | epoch seconds|int | Last time any file was uploaded/delted/renamed |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Optional inputs: none
Optional outputs: none
Required auth level(s): write edit mod admin
Changes workspace state. Updates 'foldertime', 'folder data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/CreateFolder/_type/jsontext/mod_key/OBVIOUS-FAKE-KEY/folder/Some+Folder
https://{wiki}.pbworks.com/api_v2/?op=CreateFolder&_type=jsontext&mod_key=OBVIOUS-FAKE-KEY&folder=Some+Folder
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| folder | string | Folder name [folder created if folder does not exist] |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): mod admin
Changes workspace state. Updates 'foldertime', 'folder data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/DeleteFolder/_type/jsontext/mod_key/OBVIOUS-FAKE-KEY/folder/Some+Folder
https://{wiki}.pbworks.com/api_v2/?op=DeleteFolder&_type=jsontext&mod_key=OBVIOUS-FAKE-KEY&folder=Some+Folder
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| folder | string | Folder name [folder must exist] |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| recurse | bool | Recurse. Default is false. |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Permanent cachability inputs: n/a
Optional outputs: none
| Notes |
| If recurse is true, any pages in folder are deleted. If recurse is false, any pages are moved out of the folder first and are not deleted. |
Required auth level(s): mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetFileFolder/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/file/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=GetFileFolder&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&file=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| file | string | File name |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| foldertime | epoch seconds|int | Last time any folder was added/deleted or a page was moved into or out of a folder |
| Required outputs | ||
| Name | Type | Description |
| folder | string|false | Folder which contains page or false |
| file | string | File requested (echo of file input) |
Optional inputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetFolderObjects/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/folder/Some+Folder
http://{wiki}.pbworks.com/api_v2/?op=GetFolderObjects&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&folder=Some+Folder
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| folder | string | Name of folder to get objects for |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| foldertime | epoch seconds|int | Last time any folder was added/deleted or a page was moved into or out of a folder |
| Required outputs | ||
| Name | Type | Description |
| objects | array | Pages and files in the folder |
Optional inputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetFolders/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetFolders&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Optional inputs | ||
| Name | Type | Description |
| after | ||
| before | ||
| count | int | Maximum number of records to return |
| offset | int | Number of records to skip |
| reverse | bool | Whether to reverse the order of the sorting |
| sortby | string | Which field to sort records by |
| verbose | bool | Whether to include metadata about each folder or only return an array of folder names. Default is false. |
| Required outputs | ||
| Name | Type | Description |
| folders | array | Names of folders in the workspace |
| Optional outputs | ||
| Name | Type | Description |
| unfiled_count | int | Number of objects not in any folder |
| unfiled_pagecount | int | Number of pages not in any folder |
| unfiled_filecount | int | Number of files not in any folder |
Required inputs: none
Permanent cachability inputs: n/a
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetPageFolder/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetPageFolder&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| foldertime | epoch seconds|int | Last time any folder was added/deleted or a page was moved into or out of a folder |
| Required outputs | ||
| Name | Type | Description |
| folder | string|false | Folder which contains page or false |
| page | string | Page requested (echo of page input) |
Optional inputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Changes workspace state. Updates 'foldertime', 'folder data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/RenameFolder/_type/jsontext/mod_key/OBVIOUS-FAKE-KEY/folder/Some+Folder/to/Some+Value
https://{wiki}.pbworks.com/api_v2/?op=RenameFolder&_type=jsontext&mod_key=OBVIOUS-FAKE-KEY&folder=Some+Folder&to=Some+Value
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| folder | string | Folder name [folder must exist] |
| to | string | Destination folder name [to must not exist] |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): mod admin
Changes workspace state. Updates 'foldertime', 'folder data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/SetFileFolder/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/file/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=SetFileFolder&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&file=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| file | string | File name [File must exist] |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| folder | string | Folder name [folder created if folder does not exist] |
| remove | bool | Whether to remove File from the folder it is in. If given, the folder parameter is ignored. |
| create_if_missing | bool | Create the folder if it does not already exist |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Changes workspace state. Updates 'foldertime', 'folder data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/SetPageFolder/page/FrontPage/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY
https://{wiki}.pbworks.com/api_v2/?op=SetPageFolder&page=FrontPage&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name [Page must exist] |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| folder | string | Folder name [folder created if folder does not exist] |
| remove | bool | Whether to remove Page from the folder it is in. If given, the folder parameter is ignored. |
| create_if_missing | bool | Create the folder if it does not already exist |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/CreateUser/password/FAKE-PASSWORD-zVu859/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/email/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=CreateUser&password=FAKE-PASSWORD-Uwru2R&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&email=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| password | string | Password for new user |
| string | Primary email address | |
| Optional inputs | ||
| Name | Type | Description |
| name | string | User name |
| Required outputs | ||
| Name | Type | Description |
| id | string | ID of the newly created user |
| success | bool | Whether the operation completed successfully |
Permanent cachability inputs: n/a
Optional outputs: none
| Notes |
| Creates a new my.pbworks.com account. If the workspace is configured for PBworks Delegated Authentication, the new user will be created as part of that authentication domain. |
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/CreateWiki/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/tz/SOMEVALUE/wiki/SOMEVALUE/cat/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=CreateWiki&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&tz=SOMEVALUE&wiki=SOMEVALUE&cat=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| tz | string | Timezone of the workspace |
| wiki | string | Wiki name |
| cat | string | Category of the workspace (ind,biz,edu) |
| Optional inputs | ||
| Name | Type | Description |
| string | Email address of the workspace creator | |
| title | string | Title of the workspace |
| package | string | Package description (default baseline) |
| companytype | string | Company type |
| wikipurpose | string | Purpose of this workspace |
| notify | bool | Send a confirmation message to the user (default is false if credentials are supplied and true otherwise) |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
| Optional outputs | ||
| Name | Type | Description |
| url | string | Verification url for new workspace |
Permanent cachability inputs: n/a
| Notes |
| This method is used internally by the PBworks signup process. |
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/Multi/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/calls/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=Multi&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&calls=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| calls | string | JSON string of API operations to complete |
| Required outputs | ||
| Name | Type | Description |
| response | associative array | Array of JSON return objects |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
POST can override the following GET parameter(s): calls
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/RenderContent/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/text/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=RenderContent&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&text=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| text | string | Input text |
| Required outputs | ||
| Name | Type | Description |
| html | string | Input text transformed into HTML |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
| Notes |
| Legacy support (deprecated) - transforms PBworks WikiStyle markup to an HTML fragment |
Required auth level(s): page guest read write user edit mod admin
POST can override the following GET parameter(s): text
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/SearchDebug/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/q/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=SearchDebug&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&q=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| q | string | Query |
| Optional inputs | ||
| Name | Type | Description |
| run | bool | run the index instead of proxying it |
| type | string | tasks, pages, files, users or everything |
| is_reindex | bool | is the index currently being reindexed? |
| include_archived_workspaces | bool | whether to include archived workspaces (default is false) |
| host | string | search server to query |
| justdebug | bool | just fetch debug info and don't actually search |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| filetime | epoch seconds|int | Last time any file was uploaded/delted/renamed |
| permtime | epoch seconds|int | Last time folder or page security was changed |
| foldertime | epoch seconds|int | Last time any folder was added/deleted or a page was moved into or out of a folder |
| Required outputs | ||
| Name | Type | Description |
| err | string | Was the result an error? |
| results | array | List of search results |
| debug | array | Extra debug information |
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/CheckPermissions/_type/jsontext
http://{wiki}.pbworks.com/api_v2/op/CheckPermissions/_type/jsontext
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Optional inputs | ||
| Name | Type | Description |
| page | string | Page name to query for user permission |
| Required outputs | ||
| Name | Type | Description |
| wikiperm | string|bool | Wiki-wide permission for the requesting user |
| pageperm | string|bool | Page-level permission for the requesting user (if page is specified) |
| uid | string(40)|bool | PBworks User ID for the requesting user |
Required inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
| Notes |
| This op is only meaningful in browser context (as opposed to via an api_key) |
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetPlugins/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetPlugins&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required outputs | ||
| Name | Type | Description |
| plugins | array | Available plugins by category |
| success | bool | Whether the operation completed successfully |
Required inputs: none
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetTemplates/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetTemplates&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required outputs | ||
| Name | Type | Description |
| templates | array | Available templates |
Required inputs: none
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetTimes/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetTimes&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required outputs | ||
| Name | Type | Description |
| filetime | epoch seconds|int | Last time any file was uploaded/delted/renamed |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| tagtime | epoch seconds|int | Last time any page tag was added/deleted |
| foldertime | epoch seconds|int | Last time any folder was added/deleted or a page was moved into or out of a folder |
| commenttime | epoch seconds|int | Last time any page comment was added/deleted |
| permtime | epoch seconds|int | Last time folder or page security was changed |
| page_list_time | epoch seconds|int | Last time a page was added or removed |
Required inputs: none
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/TrackingInit/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/verb/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=TrackingInit&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&verb=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| verb | string | Verb to track |
| Optional inputs | ||
| Name | Type | Description |
| prefix | string | Verb prefix |
Permanent cachability inputs: n/a
Required outputs: none
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/CheckCreateNetworkWorkspaceStatus/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/create_id/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=CheckCreateNetworkWorkspaceStatus&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&create_id=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| create_id | string | Workspace create_id to get the creation status of |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
| status | string | Status of creation (queued,completed,error) |
| title | string | Title of the workspace |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
| Notes |
| This method is used internally by PBworks. |
Required auth level(s): admin user
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetNetworkUsers/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/perm/read/anchor/SOMEVALUE/count/SOMEVALUE/offset/SOMEVALUE/sortby/SOMEVALUE/reverse/SOMEVALUE/verbose/SOMEVALUE/pending/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=GetNetworkUsers&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&perm=read&anchor=SOMEVALUE&count=SOMEVALUE&offset=SOMEVALUE&sortby=SOMEVALUE&reverse=SOMEVALUE&verbose=SOMEVALUE&pending=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| anchor | string | Specify the block of records to return which contains a record with the name specified in this field |
| count | int | Maximum number of records to return |
| offset | int | Number of records to skip |
| sortby | string | Which field to sort records by |
| reverse | bool | Reverse the results |
| verbose | bool | Include additional information about the users on the network |
| perm | string | Only get users of perm level |
| pending | bool | Only get pending users |
| Optional inputs | ||
| Name | Type | Description |
| filter | string | Filter to apply to set of readers |
| exclude_workspace_users | bool | If executed on a single workspace, this parameter determines whether we should exclude users who already belong to that workspace. |
| exclude_guests | bool | Will remove guests from the list of users. |
| exclude_self | bool | Will remove yourself from the list of users. |
| exclude_pending | bool | Will remove all pending users from the result |
| custom_filter_field_id | int | ID of the custom filter value to search for |
| search | ||
| Required outputs | ||
| Name | Type | Description |
| users | array | List of users |
| count | int | Number of users |
| total_count | int | Total number of users on the network |
| Optional outputs | ||
| Name | Type | Description |
| search_too_broad | bool | true if your search term was too broad |
| search_too_narrow | bool | true if your search term was too narrow |
Permanent cachability inputs: n/a
Required auth level(s): admin user guest
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetNetworkWorkspaces/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/anchor/SOMEVALUE/count/SOMEVALUE/filter/SOMEVALUE/offset/SOMEVALUE/sortby/SOMEVALUE/reverse/SOMEVALUE/verbose/SOMEVALUE/all/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=GetNetworkWorkspaces&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&anchor=SOMEVALUE&count=SOMEVALUE&filter=SOMEVALUE&offset=SOMEVALUE&sortby=SOMEVALUE&reverse=SOMEVALUE&verbose=SOMEVALUE&all=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| anchor | string | Specify the block of records to return which contains a record with the name specified in this field |
| count | int | Maximum number of records to return |
| filter | string | String to filter name by |
| offset | int | Number of records to skip |
| sortby | string | Which field to sort records by |
| reverse | bool | Reverse the results |
| verbose | bool | Include additional information about the workspaces |
| all | bool | Fetch additional workspaces from the network not joined (default false) |
| Optional inputs | ||
| Name | Type | Description |
| include_archived | bool | Include archived workspaces in the results (default true) |
| Required outputs | ||
| Name | Type | Description |
| workspaces | array | List of workspaces |
| Optional outputs | ||
| Name | Type | Description |
| count | string | Number of workspaces returned |
| total_count | int | Total number of workspaces |
| my_total_count | int | Number of unfiltered workspaces joined |
| all_total_count | int | Total number of unfiltered workspaces |
Permanent cachability inputs: n/a
Required auth level(s): admin user guest
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetObjects/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/folder/Some+Folder
http://{wiki}.pbworks.com/api_v2/?op=GetObjects&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&folder=Some+Folder
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| folder | string | Folder name |
| Optional inputs | ||
| Name | Type | Description |
| after | ||
| after_object_type | string | What type of object the 'after' field is specifying. Either 'file' or 'page'. |
| before | ||
| before_object_type | string | What type of object the 'before' field is specifying. Either 'file' or 'page'. |
| anchor | string | Specify the block of records to return which contains a record with the name specified in this field |
| count | int | Maximum number of records to return |
| filter | string | String to filter name by |
| folder | string | Folder name |
| offset | int | Number of records to skip |
| reverse | bool | Whether to reverse the order of the sorting |
| sortby | string | Which field to sort records by |
| verbose | bool | Whether to include metadata about each page or only return an array of names. Default is true. |
| detail | string | Detail level of the output for verbose requests (partial or full). Default is full |
| type | string | What type of objects should be returned. Ether 'file', 'page' or 'both'. Default is 'both' |
| Required outputs | ||
| Name | Type | Description |
| objects | array | A list of files and pages in the workspace |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetOps/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetOps&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required outputs | ||
| Name | Type | Description |
| ops | array | List available operations in the PBworks v2 API |
Required inputs: none
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/Help/help/GetPage/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=Help&help=GetPage&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| help | string | op name to be described |
| Required outputs | ||
| Name | Type | Description |
| inputs | array | List of required inputs for specified method |
| outputs | array | List of required outputs for specified method |
| inputs_optional | array | List of optional inputs for specified method |
| outputs_optional | array | List of optional outputs for specified method |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/IsHiringEngineers/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=IsHiringEngineers&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required outputs | ||
| Name | Type | Description |
| nowhiring | bool | Whether or not PBworks is currently hiring Engineers |
Required inputs: none
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/PageBase/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=PageBase&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
Required inputs: none
Optional inputs: none
Permanent cachability inputs: n/a
Required outputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/Ping/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=Ping&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required outputs | ||
| Name | Type | Description |
| time | epoch seconds | Official PBworks time (seconds since Jan 1 1970 00:00:00 UTC ± ~1 sec) |
| ip | string | IP address of request originator |
| permission | string | Permission level as established by the credentials provided to the API |
Required inputs: none
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Changes workspace state. Updates 'pagetime', 'page data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/AppendPage/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/html/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=AppendPage&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&html=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Name of page to be appended to (page is created if it does not exist) |
| html | string | HTML content to append to page |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| create_if_missing | bool | Whether to create the page if it doesn't already exist. Default is false. |
| uid | string(40) | User ID of author to whom edit should be attributed (member of workspace, only admins and admin_key users may use this option) |
| folder | string | Name of folder to put page in (must exist) |
| add_to_changelist | bool | Whether to register this change in the workspace changelist |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
| page | string | Cleaned up name of the saved page |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
POST can override the following GET parameter(s): html
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/BeginEditing/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/steal/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=BeginEditing&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&steal=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name to begin editing |
| steal | bool | Steal lock if lock exists |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| Required outputs | ||
| Name | Type | Description |
| lockinfo | associative array|bool | Array with info about the lock on the current page or false if there is no lock |
| html | string | HTML of the page to be edited or false if there was already a lock |
Optional inputs: none
Optional outputs: none
Required auth level(s): page read write edit mod admin
Changes workspace state. Updates 'pagetime', 'page data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/CreatePage/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
https://{wiki}.pbworks.com/api_v2/?op=CreatePage&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Name of page to be saved to (page is created if it does not exist) |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| folder | string | Name of folder to put page in (must exist) |
| security | string | Page security. Either default, hidden, or locked. |
| template | string | Name of template to apply |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/DeleteAutosave/page/FrontPage/_type/jsontext/write_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=DeleteAutosave&page=FrontPage&_type=jsontext&write_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Name of page to remove autosave data from |
Optional inputs: none
Permanent cachability inputs: n/a
Required outputs: none
Optional outputs: none
Required auth level(s): page write edit mod admin
Changes workspace state. Updates 'pagetime', 'page data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/DeletePage/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
https://{wiki}.pbworks.com/api_v2/?op=DeletePage&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Name of page to delete |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| revision | int | Revision to delete |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
| revcount | int | Number of revisions remaining |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetAutosave/page/FrontPage/_type/jsontext/write_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetAutosave&page=FrontPage&_type=jsontext&write_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Name of page to get autosave data |
| Required outputs | ||
| Name | Type | Description |
| autosave | bool|array | Autosave information for the given page name or false if there is no autosave data |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page write edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetCurrentPages/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetCurrentPages&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| Required outputs | ||
| Name | Type | Description |
| pages | associative array | Hash with keys page=>epoch seconds — timestamp of most recent revision of page |
Required inputs: none
Optional inputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetDraft/page/FrontPage/_type/jsontext/write_key/OBVIOUS-FAKE-KEY/draft_id/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=GetDraft&page=FrontPage&_type=jsontext&write_key=OBVIOUS-FAKE-KEY&draft_id=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name for the draft |
| draft_id | string | Draft ID to fetch content for |
| Optional inputs | ||
| Name | Type | Description |
| user_id | string | User ID of the draft owner (default is current user id) |
| viewable | bool | Return viewable version of this draft (default is false) |
| Required outputs | ||
| Name | Type | Description |
| draft | bool|array | Draft information for the specified id or false if there is no information |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page write edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetPage/page/FrontPage/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetPage&page=FrontPage&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Name of page to get |
| Optional inputs | ||
| Name | Type | Description |
| revision | epoch seconds|bool | Timestamp of a particular revision (activates permanent cachability depending on permissions) or false for current revision |
| content | int[0,1] | return content for the page (default is 1) |
| verbose | bool | return meta information for the page (default is true) |
| raw | bool | return raw content not postprocessed (default is false) |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| foldertime | epoch seconds|int | Last time any folder was added/deleted or a page was moved into or out of a folder |
| permtime | epoch seconds|int | Last time folder or page security was changed |
| Required outputs | ||
| Name | Type | Description |
| mtime | epoch seconds|int | Timestamp of the specified page revision |
| wikistyle | string|false | Wikistyle source text (if available) |
| html | string|false | HTML text (if available) |
| revurl | string|false | Permanent url of the specified revision |
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetPageLock/page/FrontPage/_type/jsontext/write_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetPageLock&page=FrontPage&_type=jsontext&write_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name to get the lock info for |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| Required outputs | ||
| Name | Type | Description |
| lockinfo | associative array|bool | Array with info about the lock on the current page or false if there is no lock |
| pagetime | epoch seconds|int | Timestamp of the current page revision |
Optional inputs: none
Optional outputs: none
Required auth level(s): write edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetPageRevisions/page/FrontPage/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetPageRevisions&page=FrontPage&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name |
| Optional inputs | ||
| Name | Type | Description |
| count | int | Maximum number of records to return |
| offset | int | Number of records to skip |
| reverse | bool | Whether to reverse the order of the sorting |
| sortby | string | Which field to sort records by |
| verbose | bool | Whether to include metadata about each revision or only return an array of times. Default is false. |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| Required outputs | ||
| Name | Type | Description |
| perms | array | Array of current user' permissions on page. |
| revisions | array|false | Array of epoch seconds revisions for page (or false if page does not exist) |
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetPageSecurity/page/FrontPage/_type/jsontext/mod_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetPageSecurity&page=FrontPage&_type=jsontext&mod_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name |
| Required outputs | ||
| Name | Type | Description |
| editlocked | bool | Page is being edited |
| locked | bool | Page is locked |
| hidden | bool | Page is hidden |
| public | bool | Page is published (only applies to private workspaces) |
| has_user_perms | bool | Page has user-specific permission |
| permissions | associative array | Associative array of non-admin users and their permissions, if any |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): admin mod
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetPageUsers/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetPageUsers&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Name of page to get |
| Optional inputs | ||
| Name | Type | Description |
| filter | string | Filter to apply to set of readers |
| perm | string | Minimum permission level. Defaults to read. |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| permtime | epoch seconds|int | Last time folder or page security was changed |
| Required outputs | ||
| Name | Type | Description |
| users | array|false | Array of users who have access to the given page. |
Optional outputs: none
Required auth level(s): page read write mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetPages/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetPages&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Optional inputs | ||
| Name | Type | Description |
| wiki | string | Wiki name |
| anchor | string | Specify the block of records to return which contains a record with the name specified in this field |
| count | int | Maximum number of records to return |
| filter | string | String to filter name by |
| folder | string | Folder name |
| offset | int | Number of records to skip |
| reverse | bool | Whether to reverse the order of the sorting |
| sortby | string | Which field to sort records by |
| verbose | bool | Whether to include metadata about each page or only return an array of names. Default is true. |
| detail | string | Detail level of the output for verbose requests (partial or full). Default is full |
| Required outputs | ||
| Name | Type | Description |
| pages | array | Names of pages in the workspace |
Required inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Changes workspace state. Updates 'pagetime', 'page data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/PrependPage/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/html/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=PrependPage&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&html=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Name of page to be prepended to (page is created if it does not exist) |
| html | string | HTML content to prepend to page |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| create_if_missing | bool | Whether to create the page if it doesn't already exist. Default is false. |
| uid | string(40) | User ID of author to whom edit should be attributed (member of workspace, only admins and admin_key users may use this option) |
| folder | string | Name of folder to put page in (must exist) |
| add_to_changelist | bool | Whether to register this change in the workspace changelist |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
| page | string | Cleaned up name of the saved page |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
POST can override the following GET parameter(s): html
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/PutAutosave/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=PutAutosave&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Name of page for the autosave data |
| Optional inputs | ||
| Name | Type | Description |
| spellcheck | bool | Spellcheck this autosave data |
| html | string | New HTML content of page autosave |
| Required outputs | ||
| Name | Type | Description |
| spellcheck | associative array|bool | Array with spellcheck result information |
| wordcount | int | Number of words in the autosave data |
| lockinfo | associative array|bool | Array with info about the lock on the current page or false if there is no lock |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page read write edit mod admin
POST can override the following GET parameter(s): html
Changes workspace state. Updates 'pagetime', 'page data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/PutPage/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/html/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=PutPage&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&html=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Name of page to be saved to (page is created if it does not exist) |
| html | string | New HTML content of page |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| create_if_missing | bool | Whether to create the page if it doesn't already exist. Default is false. |
| uid | string(40) | User ID of author to whom edit should be attributed (member of workspace, only admins and admin_key users may use this option) |
| folder | string | Name of folder to put page in (must exist) |
| add_to_changelist | bool | Whether to register this change in the workspace changelist |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
| page | string | Cleaned up name of the saved page |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
POST can override the following GET parameter(s): html
Changes workspace state. Updates 'pagetime', 'page data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/RenamePage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/to/Some+Value/from/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=RenamePage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&to=Some+Value&from=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| from | string | Name of the page you would like to rename |
| to | string | New name for the page specified |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
Optional inputs: none
Permanent cachability inputs: n/a
Required outputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Changes workspace state. Updates 'pagetime', 'page data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/RevertPage/page/FrontPage/_type/jsontext/write_key/OBVIOUS-FAKE-KEY/revision/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=RevertPage&page=FrontPage&_type=jsontext&write_key=OBVIOUS-FAKE-KEY&revision=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name |
| revision | epoch seconds | Revision to revert to |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Optional inputs: none
Optional outputs: none
Required auth level(s): write edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/SetPageLock/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/steal/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=SetPageLock&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&steal=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name to update the lock info for |
| steal | bool | Steal lock if lock exists |
| Optional inputs | ||
| Name | Type | Description |
| private | bool | Set the lock mode to private (default true) |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| Required outputs | ||
| Name | Type | Description |
| lockinfo | associative array|bool | Array with info about the lock on the current page or false if there is no lock |
| pagetime | epoch seconds|int | Timestamp of the current page revision |
Optional outputs: none
Required auth level(s): page read write edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/UnlockPage/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/force/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=UnlockPage&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&force=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name to release lock for |
| force | bool | Remove lock from any user |
| Required outputs | ||
| Name | Type | Description |
| lockinfo | associative array|bool | Array with info about the lock on the current page or false if there is no lock |
| unlocked | bool | Indicates if the lock on the page was removed |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/Search/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/q/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=Search&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&q=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| q | string | Query |
| Optional inputs | ||
| Name | Type | Description |
| run | bool | run the index instead of proxying it |
| filter | string | Show all workspaces or just my workspaces (use all or my) |
| type | string | tasks, pages, files, users or everything |
| is_reindex | bool | is the index currently being reindexed? |
| include_archived_workspaces | bool | whether to include archived workspaces (default is false) |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| pagetime | epoch seconds|int | Last time any page was created/deleted/renamed/edited |
| filetime | epoch seconds|int | Last time any file was uploaded/delted/renamed |
| permtime | epoch seconds|int | Last time folder or page security was changed |
| foldertime | epoch seconds|int | Last time any folder was added/deleted or a page was moved into or out of a folder |
| Required outputs | ||
| Name | Type | Description |
| err | string | Was the result an error? |
| results | array | List of search results |
Optional outputs: none
Required auth level(s): page read write edit mod guest user admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetFolderSecurity/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/folder/Some+Folder
http://{wiki}.pbworks.com/api_v2/?op=GetFolderSecurity&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&folder=Some+Folder
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| folder | string | Folder name |
| Required outputs | ||
| Name | Type | Description |
| perms | array|false | Custom permissions for the given folder. If the folder is using default security, this will be false. |
| public | bool | Whether the given folder is publicly viewable |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/SetFolderHasCustomSecurity/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/folder/Some+Folder/enabled/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=SetFolderHasCustomSecurity&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&folder=Some+Folder&enabled=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| folder | string | Folder name |
| enabled | bool | False for default security, true for custom security. |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/SetFolderPublic/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/folder/Some+Folder/public/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=SetFolderPublic&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&folder=Some+Folder&public=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| folder | string | Folder name |
| public | bool | Whether the folder is public or not |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): admin
Changes workspace state. Updates 'tagtime', 'pagetime', 'permtime', 'foldertime'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/SetPageUserPermission/page/FrontPage/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/uid//perm/read
https://{wiki}.pbworks.com/api_v2/?op=SetPageUserPermission&page=FrontPage&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&uid=&perm=read
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name |
| uid | string(40) | A unique user identifier (as provided by PBworks) |
| perm | string | A permission description: {admin,edit,write,read,page,deny} |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): admin
Changes workspace state. Updates 'tagtime', 'tag data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/AddPageTag/page/FrontPage/_type/jsontext/write_key/OBVIOUS-FAKE-KEY/tag/Some+Tag
https://{wiki}.pbworks.com/api_v2/?op=AddPageTag&page=FrontPage&_type=jsontext&write_key=OBVIOUS-FAKE-KEY&tag=Some+Tag
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name |
| tag | string[127] | New tag to be added to page |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
Optional inputs: none
Permanent cachability inputs: n/a
Required outputs: none
Optional outputs: none
Required auth level(s): admin mod edit write
Changes workspace state. Updates 'tagtime', 'tag data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/DeletePageTag/page/FrontPage/_type/jsontext/write_key/OBVIOUS-FAKE-KEY/tag/Some+Tag
https://{wiki}.pbworks.com/api_v2/?op=DeletePageTag&page=FrontPage&_type=jsontext&write_key=OBVIOUS-FAKE-KEY&tag=Some+Tag
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name |
| tag | string[127] | Existing tag for page |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
Optional inputs: none
Permanent cachability inputs: n/a
Required outputs: none
Optional outputs: none
Required auth level(s): admin mod edit write
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetPageTags/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetPageTags&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| tagtime | epoch seconds|int | Last time any page tag was added/deleted |
| Required outputs | ||
| Name | Type | Description |
| tags | array|false | Array of tags for page or false |
Optional inputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetTagPages/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/tag/Some+Tag
http://{wiki}.pbworks.com/api_v2/?op=GetTagPages&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&tag=Some+Tag
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| tag | string | Tag value |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| tagtime | epoch seconds|int | Last time any page tag was added/deleted |
| Required outputs | ||
| Name | Type | Description |
| pages | array | Array of pages tagged with tag |
Optional inputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetTags/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetTags&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| tagtime | epoch seconds|int | Last time any page tag was added/deleted |
| Required outputs | ||
| Name | Type | Description |
| tags | associative array | Associative array of tags, pages having that tag { "tag1":["page1", "page2"], "tag2":["page2", "page3"] } |
Required inputs: none
Optional inputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Changes workspace state. Updates 'tagtime', 'tag data'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/SetPageTags/page/FrontPage/_type/jsontext/write_key/OBVIOUS-FAKE-KEY/tags/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=SetPageTags&page=FrontPage&_type=jsontext&write_key=OBVIOUS-FAKE-KEY&tags=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| page | string | Page name |
| tags | string[1024] | List (comma seperated) of tags to set on this page page |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
Optional inputs: none
Permanent cachability inputs: n/a
Required outputs: none
Optional outputs: none
Required auth level(s): admin mod edit write
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/CreateMilestone/_type/jsontext/write_key/OBVIOUS-FAKE-KEY/title/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=CreateMilestone&_type=jsontext&write_key=OBVIOUS-FAKE-KEY&title=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| title | string | Title of the milestone |
| Optional inputs | ||
| Name | Type | Description |
| creator_id | string | UID of the milestone creator |
| owner_id | string | UID of the milestone owner |
| due_date | epoch seconds|string | Unix timestamp of when the milestone is due |
| state | string | incomplete, complete or deleted |
| Required outputs | ||
| Name | Type | Description |
| id | int | Milestone ID |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): write edit mod admin
Changes workspace state.
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/CreateTask/_type/jsontext/write_key/OBVIOUS-FAKE-KEY/title/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=CreateTask&_type=jsontext&write_key=OBVIOUS-FAKE-KEY&title=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| title | string | Title of the task |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| milestone_id | int | ID of the tasks milestone |
| creator_id | string | UID of the task creator |
| owner_id | string | UID of the task owner |
| due_date | epoch seconds|string | Unix timestamp of when the milestone is due |
| state | string | incomplete, complete or deleted |
| Required outputs | ||
| Name | Type | Description |
| id | int | Task ID |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): write edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/CreateTaskComment/_type/jsontext/write_key/OBVIOUS-FAKE-KEY/task_id/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=CreateTaskComment&_type=jsontext&write_key=OBVIOUS-FAKE-KEY&task_id=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| task_id | int | ID of the tasks milestone |
| Optional inputs | ||
| Name | Type | Description |
| comment | string | Comment text |
| event_time | int | Unix timestamp of when the event occured |
| creator_id | string | UID of the task creator |
| link_url | string | URL of the link |
| link_title | string | Title of the link |
| page_name | string | The name of a page on this workspace |
| file_name | string | The name of a file on this workspace |
| Required outputs | ||
| Name | Type | Description |
| id | int | Task Comment ID |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): write edit mod admin
Changes workspace state. Updates 'milestonetime'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/DeleteMilestone/_type/jsontext/mod_key/OBVIOUS-FAKE-KEY/milestone_id/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=DeleteMilestone&_type=jsontext&mod_key=OBVIOUS-FAKE-KEY&milestone_id=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| milestone_id | int | ID of the milestone |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Required outputs | ||
| Name | Type | Description |
| deleted | bool | Was the milestone deleted? |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): mod admin
Changes workspace state.
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/DeleteTask/_type/jsontext/mod_key/OBVIOUS-FAKE-KEY/task_id/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=DeleteTask&_type=jsontext&mod_key=OBVIOUS-FAKE-KEY&task_id=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| task_id | int | ID of the task |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Required outputs | ||
| Name | Type | Description |
| deleted | bool | Was the task deleted? |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): mod admin
Changes workspace state.
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/DeleteTaskComment/_type/jsontext/mod_key/OBVIOUS-FAKE-KEY/task_event_id/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=DeleteTaskComment&_type=jsontext&mod_key=OBVIOUS-FAKE-KEY&task_event_id=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| task_event_id | int | Task Event ID |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetMilestone/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/milestone_id/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=GetMilestone&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&milestone_id=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| milestone_id | int | ID of the milestone |
| Required outputs | ||
| Name | Type | Description |
| workspace | string | Workspace milestone is on |
| title | string | Title of milestone |
| creator_id | string | UID of creator |
| state | string | State of the milestone |
| ts | string | Unix timestamp of when milestone was last updated |
| Optional outputs | ||
| Name | Type | Description |
| network | string | Network milestone is on, if any |
| owner_id | string | UID of owner |
| due_date | int | Unix timestamp of when milestone is due |
Optional inputs: none
Permanent cachability inputs: n/a
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetMilestones/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetMilestones&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Optional inputs | ||
| Name | Type | Description |
| milestone_id | int | ID of the milestone |
| owner_id | string | UID of the milestone owner |
| due_after | int | Unix timestamp of lower bounding date |
| due_before | int | Unix timestamp of higher bounding date |
| verbose | bool | If false then only show milestone_id and title |
| Required outputs | ||
| Name | Type | Description |
| milestones | array | Array of milestones |
Required inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetTask/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/task_id/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=GetTask&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&task_id=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| task_id | int | ID of the task |
| Required outputs | ||
| Name | Type | Description |
| milestone_id | int | ID of milestone |
| milestone_title | string | Title of the milestone |
| creator_id | string | UID of task creator |
| create_time | int | Unix timestamp of when task was created |
| state | string | Task state |
| title | string | Task title |
| event_count | int | How many events does this task have |
| ts | int | Unix timestamp of when task was last updated |
| Optional outputs | ||
| Name | Type | Description |
| owner | array | Information about the owner of this task |
| due_date | string | Unix timestamp of when task is due |
| complete_time | string | Unix timestamp of when was task completed |
Optional inputs: none
Permanent cachability inputs: n/a
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetTaskEvents/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/task_id/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=GetTaskEvents&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&task_id=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| task_id | int | ID of the tasks milestone |
| Optional inputs | ||
| Name | Type | Description |
| data_type | string | create, edit, comment, link, page, file, star |
| creator_id | string | UID of the task creator |
| Required outputs | ||
| Name | Type | Description |
| events | array | Array of task events |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetTasks/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetTasks&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Optional inputs | ||
| Name | Type | Description |
| task_id | int | ID of the task |
| milestone_id | int | ID of the tasks milestone |
| owner_id | string | UID of the task owner |
| due_after | int | Unix timestamp of lower bounding date |
| due_before | int | Unix timestamp of higher bounding date |
| state | string | incomplete, complete or deleted |
| wiki | string | Wiki name |
| Permanent cachability inputs [?] | ||
| Name | Type | Description |
| milestonetime | epoch seconds|int | Last time any milestone or task was added/edited/deleted |
| Required outputs | ||
| Name | Type | Description |
| tasks | array | Array of milestones |
Required inputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Changes workspace state.
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/UpdateMilestone/_type/jsontext/write_key/OBVIOUS-FAKE-KEY/milestone_id/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=UpdateMilestone&_type=jsontext&write_key=OBVIOUS-FAKE-KEY&milestone_id=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| milestone_id | int | Milestone ID |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| title | string | Title of the milestone |
| owner_id | string | UID of the milestone owner |
| due_date | epoch seconds|string | Unix timestamp of when the milestone is due |
| state | string | incomplete, complete or deleted |
| Required outputs | ||
| Name | Type | Description |
| updated | bool | Did we update anything? |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): write edit mod admin
Changes workspace state. Updates 'milestonetime'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/UpdateTask/_type/jsontext/write_key/OBVIOUS-FAKE-KEY/task_id/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=UpdateTask&_type=jsontext&write_key=OBVIOUS-FAKE-KEY&task_id=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| task_id | int | Milestone ID |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| title | string | Title of the task |
| milestone_id | int | ID of the tasks milestone |
| owner_id | string | UID of the task owner |
| due_date | epoch seconds|string | Unix timestamp of when the task is due |
| state | string | incomplete, complete or deleted |
| Required outputs | ||
| Name | Type | Description |
| updated | bool | Did we update anything? |
| event_count | int | How many events does this task have |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): guest user write edit mod admin
Changes workspace state. Updates 'user roster'
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/AddUser/password/FAKE-PASSWORD-ncCGZY/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/perm/read
https://{wiki}.pbworks.com/api_v2/?op=AddUser&password=FAKE-PASSWORD-zEiOvm&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&perm=read
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| perm | string | A permission description: {admin,edit,write,read,page,deny} |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| password | string | Password for new user - ignored if email already has a PBworks account. Must be specified if creating a new user. |
| invite | bool | Send the user an invitation email |
| string | Primary email address | |
| uid | string | User ID |
| demote | bool | Allow perm to be lower than the users permission |
| Required outputs | ||
| Name | Type | Description |
| info | string | One of {created,added,accepted,changed,deleted,unchanged} |
| perm | string | A permission description: {admin,edit,write,read,page,deny} |
| string | Email of the user | |
| uid | string | User ID of the user |
Permanent cachability inputs: n/a
Optional outputs: none
| Notes |
| Adds a user by email address to the workspace. A new my.pbworks.com account is created if one does not exist. Ether an email or UID input must be supplied to create a user. |
Required auth level(s): admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetUserInfo/_type/jsontext/read_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetUserInfo&_type=jsontext&read_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Optional inputs | ||
| Name | Type | Description |
| uid | string(40) | A unique user identifier (as provided by PBworks) |
| string | Email address of user | |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
| Optional outputs | ||
| Name | Type | Description |
| string | Primary email address for uid or false | |
| perm | string | A permission description: {admin,edit,write,read,page,deny} |
| location | string | Location if specified by uid or false |
| edits | int | Number of edts on this workspace by uid |
| views | int | Number of views of this workspace by uid |
| lastview | epoch seconds | Epoch seconds time of last view of this workspace by uid |
| recentwikis | array | List of workspaces recently viewed by this user |
Required inputs: none
Permanent cachability inputs: n/a
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetUserPref/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/key/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=GetUserPref&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&key=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| key | string | Key to get |
| Optional inputs | ||
| Name | Type | Description |
| wikiname | string | Wiki to get key for (defaults to current workspace) |
| Optional outputs | ||
| Name | Type | Description |
| value | mixed | Value of the specified user preferences key |
Permanent cachability inputs: n/a
Required outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetUserPrefs/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/keys/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=GetUserPrefs&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&keys=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| keys | array | List of keys |
Optional inputs: none
Permanent cachability inputs: n/a
Required outputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetUsersInfos/_type/jsontext/write_key/OBVIOUS-FAKE-KEY
http://{wiki}.pbworks.com/api_v2/?op=GetUsersInfos&_type=jsontext&write_key=OBVIOUS-FAKE-KEY
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Optional inputs | ||
| Name | Type | Description |
| verbose | bool | Whether to include detailed information about each user, such as their location or last viewing time. |
| perm | string | Minimum permission level. Defaults to deny. |
| sortby | string | What to sort users by. Default is lastview if verbose, email otherwise. |
| Required outputs | ||
| Name | Type | Description |
| uids | array | Array of uids and their attributes on this workspace |
Required inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
| Notes |
| User activity counts reported by this method are advisory and may not include all historical activity. |
Required auth level(s): admin mod write
Changes workspace state.
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/GroupAddPref/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/group/SOMEVALUE/value/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=GroupAddPref&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&group=SOMEVALUE&value=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| group | string | Group of values to add this preference value to |
| value | string | Data to set as value of key |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
Optional inputs: none
Permanent cachability inputs: n/a
Required outputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
POST can override the following GET parameter(s): value
Changes workspace state.
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/SetNotificationPref/_type/jsontext/write_key/OBVIOUS-FAKE-KEY/setting/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=SetNotificationPref&_type=jsontext&write_key=OBVIOUS-FAKE-KEY&setting=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| setting | string | New notification setting for the given workspace (all, starred, starred-new, or off) |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| wikiname | string | Wiki to set key for (defaults to current workspace) |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): guest user write edit mod admin
POST can override the following GET parameter(s): setting wikiname
Changes workspace state.
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/SetUserPref/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/key/SOMEVALUE/value/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=SetUserPref&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&key=SOMEVALUE&value=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| key | string | Key to be set |
| value | mixed | Value to set key |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| wikiname | string | Wiki to set key for (defaults to current workspace) |
Permanent cachability inputs: n/a
Required outputs: none
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
POST can override the following GET parameter(s): value
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/GetUpgradeInfo/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/wiki/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=GetUpgradeInfo&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&wiki=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| wiki | string | Wiki name |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
| Optional outputs | ||
| Name | Type | Description |
| xsource | string | Type of transaction (Internal or External) |
| id | string | Transaction ID |
| source | string | Source of the transaction |
| wiki | string | Wiki name |
| package | string | Package description (default baseline) |
| amount | string | Payable amount of last transaction |
| payer_email | string | Email address of purchase |
| first_name | string | First name |
| last_name | string | Last name |
| start | string | Start date |
| expires | string | Expiration date |
Optional inputs: none
Permanent cachability inputs: n/a
Required auth level(s): admin
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/LeaveWorkspace/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/wiki/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=LeaveWorkspace&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&wiki=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| wiki | string | Wiki name |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/Login/password/FAKE-PASSWORD-ldUm8r/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/email/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=Login&password=FAKE-PASSWORD-DVVfeg&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&email=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| string | Email address of the user logging in | |
| password | string | Password |
| Required outputs | ||
| Name | Type | Description |
| token | string | The workspace session identifier to present |
| cookiename | string | Cookie name to use if presenting token as a cookie e.g. ws |
| uid | string(40) | A unique user identifier (as provided by PBworks) |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/Logout/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/token/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=Logout&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&token=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| token | string | Session identifier as provided by Login method |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/ReverifyEmail/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/wiki/SOMEVALUE/email/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=ReverifyEmail&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&wiki=SOMEVALUE&email=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| wiki | string | Wiki name |
| string | New email address to send verification to | |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Optional inputs: none
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s):
Changes workspace state.
Example invocations:
https://{wiki}.pbworks.com/api_v2/op/SendALink/page/FrontPage/_type/jsontext/read_key/OBVIOUS-FAKE-KEY/to_uids/SOMEVALUE
https://{wiki}.pbworks.com/api_v2/?op=SendALink&page=FrontPage&_type=jsontext&read_key=OBVIOUS-FAKE-KEY&to_uids=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| to_uids | string | Comma separated list of user ids |
| page | string | Name of page I'm sending a link for |
| Anti-XSS inputs -- required unless using an API key [?] | ||
| Name | Type | Description |
| wss | string | Wiki session cookie value i.e. get_cookie("wss") |
| Optional inputs | ||
| Name | Type | Description |
| message | string | Message I'm sending |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
Permanent cachability inputs: n/a
Optional outputs: none
Required auth level(s): page guest read write user edit mod admin
POST can override the following GET parameter(s): to_uids page message
Does not change workspace state
Example invocations:
http://{wiki}.pbworks.com/api_v2/op/UpgradeWiki/_type/jsontext/admin_key/OBVIOUS-FAKE-KEY/package/SOMEVALUE
http://{wiki}.pbworks.com/api_v2/?op=UpgradeWiki&_type=jsontext&admin_key=OBVIOUS-FAKE-KEY&package=SOMEVALUE
Your workspace's API documentation includes examples for curl and wget as well as runnable examples in PHP.
| Required inputs | ||
| Name | Type | Description |
| package | string | Package description (default baseline) |
| Optional inputs | ||
| Name | Type | Description |
| wiki | string | Wiki name |
| card_name | string | Credit card name |
| duration | int | Number of years to upgrade (default 1) |
| string | Email address to send confirmation code if not logged in | |
| card_code | string | Credit card security code |
| card_number | string | Credit card number |
| card_month | int | Credit card expiration month |
| card_year | int | Credit card expiration year |
| Required outputs | ||
| Name | Type | Description |
| success | bool | Whether the operation completed successfully |
| Optional outputs | ||
| Name | Type | Description |
| txn_id | string | Transaction ID |
| an_id | string | Billing upgrade ID |
| hashy | string | Upgrade hash |
| type | string | Type of upgrade applied (upgrade, renewal) |
Permanent cachability inputs: n/a
Required auth level(s):
POST can override the following GET parameter(s): card_code card_num card_month card_year
Antispoofing inputs
In order to prevent third party from creating urls which would point someone logged in as an admin toward a link crafted to, for example delete a given page or append malicious text/scripts to a public page, we require a piece of identifying data which a third party would not know - the value of the user's session cookie. PBworks uses a cookie called 'ws' (domain = {wiki}.pbworks.com) for individual workspace logins.
When using credentials other than a workspace API key, this extra info is required. You need to send us the session cookie value as a cookie AND as a GET or POST paramater) for operations which change the state of a workspace, for example SetPageFolder.
Permanent cachability inputs
If you know the timestamp of the most recent change to a workspace's pages, you can be assured that a listing of pages fetched at that time will be as correct now as it was when you first fetched that list. To take advantage of this principle, you can add the specified timestamps to the request parameters for specified operations. If all of the 'permanent cachability inputs' are defined and are correct at the time of your request, PBworks will add headers to the HTTP response which will ensure permanent cachability by browsers and intermediate caches (if appropriate, depending on the workspace's privacy settings).
In practice, you can call the API function GetTimes to get the last change to the associated workspace state. Adding the pagetime timestamp, for example, to a GetPages request, will trigger permanent cachability for the response (if no errors are encountered). It is the caller's responsibilty to use this mechanism correctly -- i.e. adding a timestamp which is not returned by GetTimes will result in unexpected results an in particular will result in 'Cache-control: no-cache' header since the input is based on one or more incorrect assumptions.
Note that using the timestamp mechanism in this way is a performance enhancement, not a functional parameter of the API. It does not work retroactively -- that is, adding a pagetime timestamp which is the actual pagetime value minus some offset will result in a response which reflects the current state of the workspace, not at the time defined by that past timestamp.
Special inputs
| Special optional inputs | ||
| Name | Type | Description |
| _dryrun | int[1] | Do a dry run, without actually performing the specified operation. Useful for checking credentials. |
| _after_success | string | url to redirect to following successful completion of the request (relative url only) |
| _after_error | string | url to redirect if an error is encountered during request lifecycle (relative url only) |
| _type | string | Marshall output as one of {"jsonenc" (application/json), "text" (text/plain), "jsontext" (text/plain), "html" (text/html), "php" (text/plain), "xml" (text/plain)}, "jsembed" (application/javascript), "csv" (application/vnd.ms-excel), "serialize" (text/plain), |