public
Description: PHP 5 library for the Vuzit AJAX document viewer web services API
Home | Edit | New

Vuzit_Service

Vuzit_Service class

Global utility properties and methods.

Static Property Methods

Static properties for the class.

Static Properties

Static properties for the class.

  • getPublicKey() : Gets the Vuzit public API key.
  • setPublicKey($key) : Sets the Vuzit public API key.
  • getPrivateKey() : Gets the Vuzit private API key.
  • setPrivateKey($key) : Sets the Vuzit private API key.
  • getServiceUrl() : Gets the URL of the Vuzit web service.
  • setServiceUrl($url) : Sets the URL of the Vuzit web service.
  • getUserAgent() : Gets the user agent of the request.
  • setUserAgent($agent) : Sets the user agent of the request.

Static Methods

Static methods for the class.

  • static signature : Returns a signature string for use with the JavaScript API.

Usage Examples

Enable SSL

By default documents are uploaded, deleted and loaded without SSL. If you have a Vuzit account that permits SSL transmission of documents then you can use the SSL-enabled https://ssl.vuzit.com server. Just set the $ServiceUrl global static variable as shown below.


Vuzit_Service::setServiceUrl("https://ssl.vuzit.com");

// The following upload command and all subsequent commands will be executed under SSL
$doc = Vuzit_Document::upload("c:/path/to/document.pdf");  

echo "Document id: " . $doc->getId();

Last edited by bmatzelle, Fri Oct 23 12:04:29 -0700 2009
Home | Edit | New
Versions: