<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;h1&gt;Vuzit::Document.signature function&lt;/h1&gt;
&lt;p&gt;Returns a Vuzit signature string.&lt;/p&gt;
&lt;h2&gt;Signatures&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;em&gt;static&lt;/em&gt; signature(service, id = &amp;#8216;&amp;#8217;, time = &amp;#8217;&amp;#8217;, pages = &amp;#8217;&amp;#8217;)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Parameters&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;em&gt;string&lt;/em&gt; &lt;strong&gt;service&lt;/strong&gt; : Name of the service: &amp;#8216;show&amp;#8217;, &amp;#8216;create&amp;#8217;, or &amp;#8216;destroy&amp;#8217;.&lt;/li&gt;
	&lt;li&gt;&lt;em&gt;string&lt;/em&gt; &lt;strong&gt;id&lt;/strong&gt; : Document ID.&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://www.ruby-doc.org/core/classes/Time.html&quot;&gt;time&lt;/a&gt; : Date and time of the request in Epoch time.&lt;/li&gt;
	&lt;li&gt;&lt;em&gt;string&lt;/em&gt; &lt;strong&gt;pages&lt;/strong&gt; : String that represents the pages that should be displayed.  For instance to show pages 1 to 5 it would be this &amp;#8220;0-4&amp;#8221;.  To show pages 4, 10 and 12 &amp;#8211; 15 it would be this [3,9,11-14].&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Return type&lt;/h2&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;em&gt;string&lt;/em&gt; : The signature string.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Usage Example&lt;/h2&gt;
&lt;pre&gt;
&lt;code&gt;
documentId = &quot;XXXXXXX&quot;;
date = Time.now;

// Upload &quot;signature&quot; parameter
signature = Vuzit::Service.signature(&quot;show&quot;, documentId, date)
&lt;/code&gt;
&lt;/pre&gt;</body>
  <created-at type="datetime">2009-11-24T01:54:13-08:00</created-at>
  <id type="integer">372727</id>
  <permalink>vuzit_service_signature</permalink>
  <repository-id type="integer">164824</repository-id>
  <title>Vuzit_Service_signature</title>
  <updated-at type="datetime">2009-10-27T19:46:42-07:00</updated-at>
  <user-id type="integer">62149</user-id>
</wiki>
