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
·
4 revisions
com.vuzit.Service class
Global utility properties and methods.
Static Property Methods
Static property methods for the class.
StringgetPublicKey : Gets the Vuzit public API key.
setPublicKey(String key) : Sets the Vuzit public API key.
StringgetPrivateKey : Gets the Vuzit private API key.
setPrivateKey(String key) : Sets the Vuzit private API key.
StringgetServiceUrl : Gets the URL of the Vuzit web service.
setServiceUrl(String url) : Sets the URL of the Vuzit web service.
StringgetUserAgent : Gets the user agent of the request.
setUserAgent(String agent) : Sets the user agent of the request.
Static Methods
Static methods for the class.
staticepochTime : Returns the time since the epoch.
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 call the setServiceUrl global static function as shown below.
com.vuzit.Service.setServiceUrl("https://ssl.vuzit.com");
// The following upload command and all subsequent commands will be executed under SSL
com.vuzit.Document doc = com.vuzit.Document.upload("c:\path\to\document.pdf");
System.out.println("Document id: " + doc.Id);