You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bmatzelle edited this page Sep 13, 2010
·
3 revisions
Vuzit::Service class
Global utility properties and methods.
Static Properties
Static properties for the class.
stringpublic_key : Gets and sets the Vuzit public API key.
stringprivate_key : Gets and sets the Vuzit private API key.
stringservice_url : Gets and sets the URL of the Vuzit web service.
stringuser_agent : Gets and sets the user agent of the request.
Static Methods
Static methods for the class.
staticsignature : 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)