Skip to content
bmatzelle edited this page Sep 13, 2010 · 3 revisions

Vuzit::Service class

Global utility properties and methods.

Static Properties

Static properties for the class.

  • string public_key : Gets and sets the Vuzit public API key.
  • string private_key : Gets and sets the Vuzit private API key.
  • string service_url : Gets and sets the URL of the Vuzit web service.
  • string user_agent : Gets and 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 service_url global static variable as shown below.


Vuzit::Service.service_url = "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")

puts "Document id: " + doc.id)

Clone this wiki locally