vuzit / vuzitphp

PHP 5 library for the Vuzit AJAX document viewer web services API

Home | Edit | New

Home

VuzitPHP, Vuzit Web Services library for PHP

INTRODUCTION

This is a library that allows developers to directly access the Vuzit Document Viewer Web Service API through a simple PHP script. Below is a basic upload example:


<?php  
include_once "VuzitPHP/lib/vuzit.php";  
  
Vuzit_Service::setPublicKey('YOUR_PUBLIC_API_KEY');
Vuzit_Service::setPrivateKey('YOUR_PRIVATE_API_KEY');
  
$doc = Vuzit_Document::upload("c:/path/to/document.pdf");  
  
echo "Document id: " . $doc->getId();  
?>

To get started all you need to do is download the code, sign up for a free account and replace the public and private keys with the keys from your account.

SETUP

This application requires the PHP Client Library . Follow the installation instructions

A simple phpinfo() call will tell you if CURL is installed:

<?php phpinfo(); ?>

If you’re using the Windows version then the library is an optional module. Open your php.ini file and un-comment the following line:

extension=php_curl.dll

Then restart your web server. Verify with the phpinfo() call that it’s working. Sometimes on Windows machines the php.ini ‘extension_dir’ variable is set to ./ which doesn’t work. You will need to give it the full path. In this example the PHP installation is stored in C:\Program Files\php:

extension_dir = “C:/Program Files/php/ext”

Getting Started – Documentation

Below are some links to get you started using the tool.

LICENSE

Released under the MIT license. This license allows you to use the code in your proprietary projects.

MORE INFORMATION

For more information visit the Vuzit.com developer center

Feature Requests and Bug Reports

Email to support@vuzit.com or visit Vuzit Support

Last edited by bmatzelle, Wed Nov 04 06:34:34 -0800 2009
Home | Edit | New
Versions: