<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;h1&gt;Vuzit::Service class&lt;/h1&gt;
&lt;p&gt;Global utility properties and methods.&lt;/p&gt;
&lt;h2&gt;Static Properties&lt;/h2&gt;
&lt;p&gt;Static properties for the class.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;em&gt;string&lt;/em&gt; &lt;strong&gt;public_key&lt;/strong&gt; : Gets and sets the Vuzit public &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt; key.&lt;/li&gt;
	&lt;li&gt;&lt;em&gt;string&lt;/em&gt; &lt;strong&gt;private_key&lt;/strong&gt; : Gets and sets the Vuzit private &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt; key.&lt;/li&gt;
	&lt;li&gt;&lt;em&gt;string&lt;/em&gt; &lt;strong&gt;service_url&lt;/strong&gt; : Gets and sets the &lt;span class=&quot;caps&quot;&gt;URL&lt;/span&gt; of the Vuzit web service.&lt;/li&gt;
	&lt;li&gt;&lt;em&gt;string&lt;/em&gt; &lt;strong&gt;user_agent&lt;/strong&gt; : Gets and sets the user agent of the request.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Static Methods&lt;/h2&gt;
&lt;p&gt;Static methods for the class.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;em&gt;static&lt;/em&gt; &lt;strong&gt;[[Vuzit_Service_signature|signature]]&lt;/strong&gt; : Returns a signature string for use with the JavaScript &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Usage Examples&lt;/h2&gt;
&lt;h3&gt;Enable &lt;span class=&quot;caps&quot;&gt;SSL&lt;/span&gt;&lt;/h3&gt;
&lt;p&gt;By default documents are uploaded, deleted and loaded without &lt;span class=&quot;caps&quot;&gt;SSL&lt;/span&gt;.  If you have a &lt;a href=&quot;http://vuzit.com/signup&quot;&gt;Vuzit account&lt;/a&gt; that permits &lt;span class=&quot;caps&quot;&gt;SSL&lt;/span&gt; transmission of documents then you can use the &lt;span class=&quot;caps&quot;&gt;SSL&lt;/span&gt;-enabled &lt;strong&gt;https://ssl.vuzit.com&lt;/strong&gt; server.  Just set the service_url global static variable as shown below.&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;
Vuzit::Service.service_url = &quot;https://ssl.vuzit.com&quot;

// The following upload command and all subsequent commands will be executed under SSL
doc = Vuzit::Document.upload(&quot;c:/path/to/document.pdf&quot;)

puts &quot;Document id: &quot; + doc.id)
&lt;/code&gt;
&lt;/pre&gt;</body>
  <created-at type="datetime">2009-11-24T04:39:46-08:00</created-at>
  <id type="integer">315475</id>
  <permalink>vuzit_service</permalink>
  <repository-id type="integer">164824</repository-id>
  <title>Vuzit_Service</title>
  <updated-at type="datetime">2009-10-27T13:31:02-07:00</updated-at>
  <user-id type="integer">62149</user-id>
</wiki>
