-
Notifications
You must be signed in to change notification settings - Fork 0
com_vuzit_Service
bmatzelle edited this page Sep 13, 2010
·
4 revisions
Global utility properties and methods.
Static property methods for the class.
- String getPublicKey : Gets the Vuzit public API key.
- setPublicKey(String key) : Sets the Vuzit public API key.
- String getPrivateKey : Gets the Vuzit private API key.
- setPrivateKey(String key) : Sets the Vuzit private API key.
- String getServiceUrl : Gets the URL of the Vuzit web service.
- setServiceUrl(String url) : Sets the URL of the Vuzit web service.
- String getUserAgent : Gets the user agent of the request.
- setUserAgent(String agent) : Sets the user agent of the request.
Static methods for the class.
- static epochTime : Returns the time since the epoch.
- static signature : Returns a signature string for use with the JavaScript API.
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);