Skip to content

Instantly share code, notes, and snippets.

@averjr
Created February 8, 2013 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save averjr/4739266 to your computer and use it in GitHub Desktop.
Save averjr/4739266 to your computer and use it in GitHub Desktop.
%h3{:style => "text-align:center;"}
%a{:href => "/"} GroupDocs Ruby SDK Samples
\- Envelope sample
.samplecontent{:style => "padding:10px;"}
%i This sample will show how to use envelope and signature API using Ruby SDK
%br/
%i You can find documentation for this sample
%a{:href => "/docs/envelope-sample.html"} here
%br/
%br/
%p
You entered:
%p
UserId = #{(defined? userId) ? userId : ""}
%p
PrivateKey = #{(defined? privateKey) ? privateKey : ""}
%p
%font{:color => "red"} #{(defined? err) ? err : ""}
%br/
#requestForm{:style => "padding:20px; border:1px solid black;"}
%p Enter data for request and press "Make request" button
%form{:action => "/envelope-sample", :enctype => "multipart/form-data", :method => "post"}
%label{:for => "client_id"} GroupDocs ClientID
%br/
%input{:type=>"text", :name=>"client_id"}
%br/
%label{:for => "private_key"} GroupDocs PrivateKey
%br/
%input{:type=>"text", :name=>"private_key"}
%br/
%label{:for => "file"} File
%br/
%input{:name => "file", :type => "file"}/
%br/
%br/
%input{:type => "submit", :value => "Upload"}/
%div{:style => "padding:20px; border:1px solid black;"}
%p
Results:
#{(defined? iframe) ? iframe : ""}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment