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

Vuzit_Service_signature

Vuzit_Document signature function

Returns a Vuzit signature string.

Signatures

  • public static signature($service, string $id = ‘’, $time = null, $pages = ’’)

Parameters

  • string $service : Name of the service: ‘show’, ‘create’, or ‘destroy’.
  • string $id : Document ID.
  • $time : Date and time of the request in Epoch time.
  • string $pages : String that represents the pages that should be displayed. For instance to show pages 1 to 5 it would be this “0-4”. To show pages 4, 10 and 12 – 15 it would be this [3,9,11-14].

Return type

  • string : The signature string.

Usage Example


$documentId = "XXXXXXX";
$date = time();

// Upload "signature" parameter
$signature = Vuzit_Service::signature("show", $documentId, $date);

Last edited by bmatzelle, Tue Oct 27 19:46:05 -0700 2009
Home | Edit | New
Versions: