This page contains a list of properties that should be set very early in the page rendering process (i.e: in the header, just after the
Client Application is requested).
Function Reference
String
| get
| set
| LoginTicket | Gets or sets the user's authorization/login ticket. The login ticket must be set before a user can perform privileged actions (e.g: editing content).
|
String
| get
| set
| DeveloperKey | Gets or sets your Wetpaint-issued public developer key. The client application cannot communicate with the Wetpaint server without this key.
|
String
| get
| set
| Namespace | Gets or sets the namespace you wish to use for the content on this page. The client application cannot request content without a namespace.
|
boolean
| get
| set
| CachedContentHandling | Enables or disables cache-busting for the Wetpaint client application. If this is enabled, then a fresh copy of the content will be loaded after page load. Defaults to false.
|
Example Usage:if( window.WPCAPI ) {
WPCAPI.setLoginTicket( "0123456789ABCDEF0123456789ABCDEFZYXWVUTSRQPONMLKJIHGFEDCBA" ); WPCAPI.setDeveloperKey( "your-developer-key" ); WPCAPI.setNamespace( "test-namespace" ); WPCAPI.setCachedContentHandling( true );
}
|