groupdocs 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +34 -0
- data/LICENSE.txt +21 -0
- data/README.md +3 -0
- data/examples/api-samples/public/docs/sample01.html +23 -23
- data/examples/api-samples/public/docs/sample02.html +27 -27
- data/examples/api-samples/public/docs/sample03.html +81 -69
- data/examples/api-samples/public/docs/sample04.html +29 -29
- data/examples/api-samples/public/docs/sample05.html +48 -48
- data/examples/api-samples/public/docs/sample06.html +47 -46
- data/examples/api-samples/public/docs/sample07.html +35 -35
- data/examples/api-samples/public/docs/sample08.html +45 -45
- data/examples/api-samples/public/docs/sample09.html +57 -57
- data/examples/api-samples/public/docs/sample10.html +41 -41
- data/examples/api-samples/public/docs/sample11.html +96 -118
- data/examples/api-samples/public/docs/sample12.html +29 -50
- data/examples/api-samples/public/docs/sample13.html +36 -44
- data/examples/api-samples/public/docs/sample14.html +29 -29
- data/examples/api-samples/public/docs/sample15.html +24 -24
- data/examples/api-samples/public/docs/sample16.html +32 -32
- data/examples/api-samples/public/docs/sample17.html +38 -38
- data/examples/api-samples/public/docs/sample18.html +105 -101
- data/examples/api-samples/public/docs/sample19.html +101 -101
- data/examples/api-samples/public/docs/sample20.html +42 -42
- data/examples/api-samples/public/docs/sample21.html +109 -109
- data/examples/api-samples/public/docs/sample22.html +56 -56
- data/examples/api-samples/public/docs/sample23.html +39 -39
- data/examples/api-samples/public/docs/sample24.html +36 -36
- data/examples/api-samples/public/docs/sample25.html +67 -67
- data/examples/api-samples/public/docs/sample26.html +23 -23
- data/examples/api-samples/public/docs/sample27.html +72 -72
- data/examples/api-samples/public/docs/sample28.html +46 -45
- data/examples/api-samples/public/docs/sample29.html +30 -30
- data/examples/api-samples/public/docs/sample30.html +30 -30
- data/examples/api-samples/public/docs/sample31.html +114 -114
- data/examples/api-samples/public/docs/sample32.html +96 -96
- data/examples/api-samples/public/docs/sample33.html +56 -56
- data/examples/api-samples/public/docs/sample34.html +27 -27
- data/examples/api-samples/public/docs/sample35.html +134 -135
- data/examples/api-samples/public/docs/sample36.html +32 -32
- data/examples/api-samples/public/docs/sample37.html +103 -103
- data/examples/api-samples/public/docs/sample38.html +76 -76
- data/examples/api-samples/public/docs/sample39.html +136 -136
- data/examples/api-samples/public/docs/sample40.html +104 -104
- data/examples/api-samples/public/docs/sample41.html +137 -137
- data/examples/api-samples/public/docs/sample42.html +61 -61
- data/examples/api-samples/public/docs/sample43.html +72 -72
- data/examples/api-samples/public/docs/sample44.html +751 -0
- data/examples/api-samples/public/docs/sample45.html +236 -0
- data/examples/api-samples/public/templates/merge_field3_doc.docx +0 -0
- data/examples/api-samples/samples/sample01.rb +2 -2
- data/examples/api-samples/samples/sample02.rb +2 -2
- data/examples/api-samples/samples/sample03.rb +2 -2
- data/examples/api-samples/samples/sample04.rb +2 -2
- data/examples/api-samples/samples/sample05.rb +2 -2
- data/examples/api-samples/samples/sample06.rb +2 -2
- data/examples/api-samples/samples/sample07.rb +2 -2
- data/examples/api-samples/samples/sample08.rb +2 -2
- data/examples/api-samples/samples/sample09.rb +2 -2
- data/examples/api-samples/samples/sample10.rb +2 -2
- data/examples/api-samples/samples/sample11.rb +2 -2
- data/examples/api-samples/samples/sample12.rb +2 -2
- data/examples/api-samples/samples/sample13.rb +2 -2
- data/examples/api-samples/samples/sample14.rb +2 -2
- data/examples/api-samples/samples/sample15.rb +2 -2
- data/examples/api-samples/samples/sample16.rb +2 -2
- data/examples/api-samples/samples/sample17.rb +2 -2
- data/examples/api-samples/samples/sample18.rb +2 -2
- data/examples/api-samples/samples/sample19.rb +2 -2
- data/examples/api-samples/samples/sample20.rb +2 -2
- data/examples/api-samples/samples/sample21.rb +2 -2
- data/examples/api-samples/samples/sample22.rb +2 -2
- data/examples/api-samples/samples/sample23.rb +2 -2
- data/examples/api-samples/samples/sample24.rb +2 -2
- data/examples/api-samples/samples/sample25.rb +2 -2
- data/examples/api-samples/samples/sample26.rb +2 -2
- data/examples/api-samples/samples/sample27.rb +2 -2
- data/examples/api-samples/samples/sample28.rb +2 -2
- data/examples/api-samples/samples/sample29.rb +2 -2
- data/examples/api-samples/samples/sample30.rb +2 -2
- data/examples/api-samples/samples/sample31.rb +2 -2
- data/examples/api-samples/samples/sample32.rb +2 -2
- data/examples/api-samples/samples/sample33.rb +2 -2
- data/examples/api-samples/samples/sample34.rb +2 -2
- data/examples/api-samples/samples/sample35.rb +4 -4
- data/examples/api-samples/samples/sample36.rb +2 -2
- data/examples/api-samples/samples/sample37.rb +2 -2
- data/examples/api-samples/samples/sample38.rb +2 -2
- data/examples/api-samples/samples/sample39.rb +2 -2
- data/examples/api-samples/samples/sample40.rb +2 -2
- data/examples/api-samples/samples/sample41.rb +2 -2
- data/examples/api-samples/samples/sample42.rb +2 -2
- data/examples/api-samples/samples/sample43.rb +2 -2
- data/examples/api-samples/samples/sample44.rb +188 -0
- data/examples/api-samples/samples/sample45.rb +74 -0
- data/examples/api-samples/views/_others_samples.haml +47 -43
- data/examples/api-samples/views/index.haml +55 -44
- data/examples/api-samples/views/layout.haml +1 -6
- data/examples/api-samples/views/sample01.haml +62 -57
- data/examples/api-samples/views/sample02.haml +52 -46
- data/examples/api-samples/views/sample03.haml +78 -73
- data/examples/api-samples/views/sample04.haml +51 -45
- data/examples/api-samples/views/sample05.haml +77 -71
- data/examples/api-samples/views/sample06.haml +58 -52
- data/examples/api-samples/views/sample07.haml +51 -45
- data/examples/api-samples/views/sample08.haml +90 -84
- data/examples/api-samples/views/sample09.haml +86 -80
- data/examples/api-samples/views/sample10.haml +83 -77
- data/examples/api-samples/views/sample11.haml +124 -120
- data/examples/api-samples/views/sample12.haml +65 -59
- data/examples/api-samples/views/sample13.haml +62 -56
- data/examples/api-samples/views/sample14.haml +57 -51
- data/examples/api-samples/views/sample15.haml +49 -43
- data/examples/api-samples/views/sample16.haml +49 -43
- data/examples/api-samples/views/sample17.haml +53 -47
- data/examples/api-samples/views/sample18.haml +140 -134
- data/examples/api-samples/views/sample19.haml +87 -81
- data/examples/api-samples/views/sample20.haml +53 -47
- data/examples/api-samples/views/sample21.haml +115 -111
- data/examples/api-samples/views/sample22.haml +94 -88
- data/examples/api-samples/views/sample23.haml +83 -78
- data/examples/api-samples/views/sample24.haml +54 -48
- data/examples/api-samples/views/sample25.haml +89 -83
- data/examples/api-samples/views/sample26.haml +62 -57
- data/examples/api-samples/views/sample27.haml +114 -109
- data/examples/api-samples/views/sample28.haml +55 -49
- data/examples/api-samples/views/sample29.haml +67 -69
- data/examples/api-samples/views/sample30.haml +54 -48
- data/examples/api-samples/views/sample31.haml +106 -100
- data/examples/api-samples/views/sample32.haml +90 -84
- data/examples/api-samples/views/sample33.haml +60 -54
- data/examples/api-samples/views/sample34.haml +51 -46
- data/examples/api-samples/views/sample35.haml +84 -78
- data/examples/api-samples/views/sample36.haml +63 -58
- data/examples/api-samples/views/sample37.haml +122 -116
- data/examples/api-samples/views/sample38.haml +104 -98
- data/examples/api-samples/views/sample39.haml +6 -2
- data/examples/api-samples/views/sample40.haml +94 -89
- data/examples/api-samples/views/sample41.haml +127 -123
- data/examples/api-samples/views/sample42.haml +60 -54
- data/examples/api-samples/views/sample43.haml +81 -77
- data/examples/api-samples/views/sample44.haml +85 -0
- data/examples/api-samples/views/sample45.haml +85 -0
- data/groupdocs.gemspec +2 -0
- data/lib/groupdocs/datasource/field.rb +9 -0
- data/lib/groupdocs/document.rb +66 -4
- data/lib/groupdocs/document/annotation.rb +11 -6
- data/lib/groupdocs/document/editor.rb +53 -0
- data/lib/groupdocs/document/field.rb +16 -0
- data/lib/groupdocs/document/style.rb +30 -0
- data/lib/groupdocs/job.rb +24 -0
- data/lib/groupdocs/questionnaire.rb +2 -0
- data/lib/groupdocs/questionnaire/collector.rb +52 -0
- data/lib/groupdocs/questionnaire/collector_style.rb +54 -0
- data/lib/groupdocs/questionnaire/question.rb +9 -0
- data/lib/groupdocs/questionnaire/style/base_font.rb +17 -0
- data/lib/groupdocs/questionnaire/style/question_title.rb +17 -0
- data/lib/groupdocs/questionnaire/style/title.rb +17 -0
- data/lib/groupdocs/signature/envelope.rb +43 -8
- data/lib/groupdocs/signature/form.rb +113 -12
- data/lib/groupdocs/signature/recipient.rb +38 -3
- data/lib/groupdocs/signature/shared/field_methods.rb +4 -2
- data/lib/groupdocs/signature/template.rb +20 -1
- data/lib/groupdocs/storage/file.rb +3 -2
- data/lib/groupdocs/user.rb +148 -0
- data/lib/groupdocs/version.rb +1 -1
- data/spec/groupdocs/api/helpers/access_rights_helper_spec.rb +5 -5
- data/spec/groupdocs/document/annotation_spec.rb +1 -1
- data/spec/groupdocs/signature/envelope_spec.rb +1 -1
- data/spec/groupdocs/user_spec.rb +4 -4
- data/spec/support/shared_examples/signature/shared/field_methods.rb +5 -4
- metadata +18 -3
@@ -0,0 +1,74 @@
|
|
1
|
+
#GET request
|
2
|
+
get '/sample45' do
|
3
|
+
haml :sample45
|
4
|
+
end
|
5
|
+
|
6
|
+
#POST request
|
7
|
+
post '/sample45' do
|
8
|
+
#Set variables
|
9
|
+
set :client_id, params[:clientId]
|
10
|
+
set :private_key, params[:privateKey]
|
11
|
+
set :folder_name, params[:folderName]
|
12
|
+
set :file_name, params[:fileName]
|
13
|
+
set :base_path, params[:basePath]
|
14
|
+
|
15
|
+
begin
|
16
|
+
#Check required variables
|
17
|
+
raise 'Please enter all required parameters' if settings.client_id.empty? or settings.private_key.empty? or settings.file_name.empty?
|
18
|
+
|
19
|
+
#Prepare base path
|
20
|
+
if settings.base_path.empty?
|
21
|
+
base_path = 'https://api.groupdocs.com'
|
22
|
+
elsif settings.base_path.match('/v2.0')
|
23
|
+
base_path = settings.base_path.split('/v2.0')[0]
|
24
|
+
else
|
25
|
+
base_path = settings.base_path
|
26
|
+
end
|
27
|
+
|
28
|
+
#Configure your access to API server
|
29
|
+
GroupDocs.configure do |groupdocs|
|
30
|
+
groupdocs.client_id = settings.client_id
|
31
|
+
groupdocs.private_key = settings.private_key
|
32
|
+
#Optionally specify API server and version
|
33
|
+
groupdocs.api_server = base_path # default is 'https://api.groupdocs.com'
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
#Make a request to API using client_id and private_key
|
38
|
+
if settings.folder_name.empty? then files_list = GroupDocs::Storage::Folder.list!('/', {}) else files_list = GroupDocs::Storage::Folder.list!(settings.folder_name + '/', {}) end
|
39
|
+
|
40
|
+
#Construct list of files
|
41
|
+
result = ''
|
42
|
+
files_list.each do |element|
|
43
|
+
if element.name == settings.file_name
|
44
|
+
#Construct html result
|
45
|
+
file = element.to_document.metadata!
|
46
|
+
result += "<p>Total document's info: </p>"
|
47
|
+
result += "<table class='border'>"
|
48
|
+
result += "<tr><td><font color='green'>Parameter</font></td><td><font color='green'>Info</font></td></tr>"
|
49
|
+
result += "<tr><td>page_count</td><td>#{file.page_count}</td></tr>"
|
50
|
+
result += "<tr><td>views_count</td><td>#{file.views_count}</td></tr>"
|
51
|
+
result += "<tr><td>name</td><td>#{file.last_view.document.file.name}</td></tr>"
|
52
|
+
result += "<tr><td>version</td><td>#{file.last_view.document.file.version}</td></tr>"
|
53
|
+
result += "<tr><td>size</td><td>#{file.last_view.document.file.size}</td></tr>"
|
54
|
+
result += "<tr><td>type</td><td>#{file.last_view.document.file.type}</td></tr>"
|
55
|
+
result += "<tr><td>file_type_str</td><td>#{file.last_view.document.file.file_type}</td></tr>"
|
56
|
+
result += "<tr><td>access</td><td>#{file.last_view.document.file.access}</td></tr>"
|
57
|
+
result += "<tr><td>url</td><td>#{file.last_view.document.file.url}</td></tr>"
|
58
|
+
result += "<tr><td>id</td><td>#{file.last_view.document.file.id}</td></tr>"
|
59
|
+
result += "<tr><td>guid</td><td>#{file.last_view.document.file.guid}</td></tr>"
|
60
|
+
result += "<tr><td>short_url</td><td>#{file.last_view.short_url}</td></tr>"
|
61
|
+
result += "<tr><td>viewed_on</td><td>#{file.last_view.viewed_on}</td></tr>"
|
62
|
+
result += "<tr bgcolor='#808080'><td></td><td></td></tr>"
|
63
|
+
result += '</table>'
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
if result.empty? then result = 'File is not in this folder' end
|
68
|
+
rescue Exception => e
|
69
|
+
err = e.message
|
70
|
+
end
|
71
|
+
|
72
|
+
#Set variables for template
|
73
|
+
haml :sample45, :locals => {:userId => settings.client_id, :privateKey => settings.private_key, :result => result, :err => err}
|
74
|
+
end
|
@@ -2,88 +2,92 @@
|
|
2
2
|
Choose another one sample:
|
3
3
|
%ul
|
4
4
|
%li
|
5
|
-
%a{:href => '/
|
5
|
+
%a{:href => '/sample-1-how-to-login-to-groupdocs-using-the-api'} Sample 1 - How to login to GroupDocs using the API
|
6
6
|
%li
|
7
|
-
%a{:href => '/
|
7
|
+
%a{:href => '/sample-2-how-to-list-files-within-groupdocs-storage-using-the-storage-api'} Sample 2 - How to list files within GroupDocs Storage using the Storage API
|
8
8
|
%li
|
9
|
-
%a{:href => '/
|
9
|
+
%a{:href => '/sample-3-how-to-upload-a-file-to-groupdocs-using-the-storage-api'} Sample 3 - How to upload a file to GroupDocs using the Storage API
|
10
10
|
%li
|
11
|
-
%a{:href => '/
|
11
|
+
%a{:href => '/sample-4-how-to-download-a-file-from-groupdocs-storage-using-the-storage-api'} Sample 4 - How to download a file from GroupDocs Storage using the Storage API
|
12
12
|
%li
|
13
|
-
%a{:href => '/
|
13
|
+
%a{:href => '/sample-5-how-to-copy-move-a-file-using-the-groupdocs-storage-api'} Sample 5 - How to copy / move a file using the GroupDocs Storage API
|
14
14
|
%li
|
15
|
-
%a{:href => '/
|
15
|
+
%a{:href => '/sample-6-how-to-add-a-signature-to-a-document-in-groupdocs-signature'} Sample 6 - How to add a Signature to a document in GroupDocs Signature
|
16
16
|
%li
|
17
|
-
%a{:href => '/
|
17
|
+
%a{:href => '/sample-7-how-to-create-a-list-of-thumbnails-for-a-document'} Sample 7 - How to create a list of thumbnails for a document
|
18
18
|
%li
|
19
|
-
%a{:href => '/
|
19
|
+
%a{:href => '/sample-8-how-to-return-a-url-representing-a-single-page-of-a-document'} Sample 8 - How to return a URL representing a single page of a Document
|
20
20
|
%li
|
21
|
-
%a{:href => '/
|
21
|
+
%a{:href => '/sample-9-how-to-generate-an-embedded-viewer-url-for-a-document'} Sample 9 - How to generate an embedded Viewer URL for a Document
|
22
22
|
%li
|
23
|
-
%a{:href => '/
|
23
|
+
%a{:href => '/sample-10-how-to-share-a-document-to-other-users'} Sample 10 - How to share a document to other users
|
24
24
|
%li
|
25
|
-
%a{:href => '/
|
25
|
+
%a{:href => '/sample-11-how-to-programmatically-create-and-post-an-annotation-into-document'} Sample 11 - How to programmatically create and post an annotation into document. How to delete the annotation
|
26
26
|
%li
|
27
|
-
%a{:href => '/
|
27
|
+
%a{:href => '/sample-12-how-to-list-all-annotations-from-document'} Sample 12 - How to list all annotations from document
|
28
28
|
%li
|
29
|
-
%a{:href => '/
|
29
|
+
%a{:href => '/sample-13-how-to-add-collaborator-to-doc-with-annotations'} Sample 13 - How to add collaborator to doc with annotations
|
30
30
|
%li
|
31
|
-
%a{:href => '/
|
31
|
+
%a{:href => '/sample-14-how-to-check-the-list-of-shares-for-a-folder'} Sample 14 - How to check the list of shares for a folder
|
32
32
|
%li
|
33
|
-
%a{:href => '/
|
33
|
+
%a{:href => '/sample-15-how-to-check-the-number-of-document\'s-views'} Sample 15 - How to check the number of document's views
|
34
34
|
%li
|
35
|
-
%a{:href => '/
|
35
|
+
%a{:href => '/sample-16-how-to-insert-assembly-questionnaire-into-webpage'} Sample 16 - How to insert Assembly questionary into webpage
|
36
36
|
%li
|
37
|
-
%a{:href => '/
|
37
|
+
%a{:href => '/sample-17-how-to-upload-a-file-into-the-storage-and-compress-it-into-zip-archive'} Sample 17 - How to upload a file into the storage and compress it into zip archive
|
38
38
|
%li
|
39
|
-
%a{:href => '/
|
39
|
+
%a{:href => '/sample-18-how-to-convert-doc-to-docx-docx-to-doc-docx-to-pdf-ppt-to-pdf'} Sample 18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
|
40
40
|
%li
|
41
|
-
%a{:href => '/
|
41
|
+
%a{:href => '/sample-19-how-to-compare-documents'} Sample 19 - How to Compare documents using Ruby SDK
|
42
42
|
%li
|
43
|
-
%a{:href => '/
|
43
|
+
%a{:href => '/sample-20-how-to-get-compare-change-list-for-document'} Sample 20 - How to Get Compare Change list for document using Ruby SDK
|
44
44
|
%li
|
45
|
-
%a{:href => '/
|
45
|
+
%a{:href => '/sample-21-how-to-create-and-upload-envelop-to-groupdocs-account'} Sample 21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
|
46
46
|
%li
|
47
|
-
%a{:href => '/
|
47
|
+
%a{:href => '/sample-22-how-to-create-or-update-user-and-add-him-to-collaborators'} Sample 22 - How to create or update user and add him to collaborators using Ruby SDK
|
48
48
|
%li
|
49
|
-
%a{:href => '/
|
49
|
+
%a{:href => '/sample-23-how-to-view-document-pages-as-images'} Sample 23 - How to View Document pages as images using Ruby SDK
|
50
50
|
%li
|
51
|
-
%a{:href => '/
|
51
|
+
%a{:href => '/sample-24-how-to-use-storageapi-to-upload-fil-from-url-to-groupdocs-account'} Sample 24 - How to use StorageApi to upload file from URL to GroupDocs account using Ruby SDK
|
52
52
|
%li
|
53
|
-
%a{:href => '/
|
53
|
+
%a{:href => '/sample-25-how-to-merge-assemble-and-convert-documentt'} Sample 25 - How to merge and convert document using Ruby SDK
|
54
54
|
%li
|
55
|
-
%a{:href => '/
|
55
|
+
%a{:href => '/sample-26-how-to-use-login-method-in-the-api'} Sample 26 - How to use login method in the API
|
56
56
|
%li
|
57
|
-
%a{:href => '/
|
57
|
+
%a{:href => '/sample-27-how-to-create-your-own-questionnaire-using-forms-and-show-the-result-document'} Sample 27 - How to create your own questionnaire using forms and show the result document using Ruby SDK
|
58
58
|
%li
|
59
|
-
%a{:href => '/
|
59
|
+
%a{:href => '/sample-28-how-to-delete-all-annotations-from-document'} Sample 28 - How to delete all annotations from document using Ruby SDK
|
60
60
|
%li
|
61
|
-
%a{:href => '/
|
61
|
+
%a{:href => '/sample-29-how-to-use-filepicker-io-to-upload-document-and-get-it\'s-url'} Sample 29 - How to use Filepicker.io to upload document and get it's URL
|
62
62
|
%li
|
63
|
-
%a{:href => '/
|
63
|
+
%a{:href => '/sample-30-how-to-delete-file-from-groupdocs-storage'} Sample 30 - How to delete file from GroupDocs Storage
|
64
64
|
%li
|
65
|
-
%a{:href => '/
|
65
|
+
%a{:href => '/sample-31-how-to-dynamically-create-signature-form-using-data-from-html-form'} Sample 31 - How to dynamically create Signature Form using data from HTML form
|
66
66
|
%li
|
67
|
-
%a{:href => '/
|
67
|
+
%a{:href => '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-via-callback'} Sample 32 - How to create signature form, publish it and configure notification via callback
|
68
68
|
%li
|
69
|
-
%a{:href => '/
|
69
|
+
%a{:href => '/sample-33-how-to-convert-several-html-documents-into-one-pdf-document'} Sample 33 - How to convert and merge/combine several HTML documents into one PDF Document
|
70
70
|
%li
|
71
|
-
%a{:href => '/
|
71
|
+
%a{:href => '/sample-34-how-to-create-folder-in-the-groupdocs-account'} Sample 34 - How to create folder in the GroupDocs account
|
72
72
|
%li
|
73
|
-
%a{:href => '/
|
73
|
+
%a{:href => '/sample-35-how-to-get-fields-and-their-data-from-pdf-file'} Sample 35 - How to get fields and their data from PDF file
|
74
74
|
%li
|
75
|
-
%a{:href => '/
|
75
|
+
%a{:href => '/sample-36-how-to-download-signed-documents-when-envelope-was-signed'} Sample 36 - How to download signed documents when envelope was signed using Ruby SDK
|
76
76
|
%li
|
77
|
-
%a{:href => '/
|
77
|
+
%a{:href => '/sample-37-how-to-create-envelop-and-download-signed-document-when-envelop-was-signed-using-callback'} Sample 37 - How to create envelop and download signed document when envelop was signed using callback
|
78
78
|
%li
|
79
|
-
%a{:href => '/
|
79
|
+
%a{:href => '/sample-38-how-to-create-new-user-and-add-him-as-collaborator-to-doc-with-annotations'} Sample 38 - How to create new user and add him as collaborator to doc with annotations
|
80
80
|
%li
|
81
|
-
%a{:href => '/
|
81
|
+
%a{:href => '/sample-39-how-to-add-a-signature-to-a-document-and-re-direct-after-signing-with-groupdocs-widget'} Sample 39 - How to add a Signature to a document and redirect after signing with GroupDocs widget
|
82
82
|
%li
|
83
|
-
%a{:href => '/
|
83
|
+
%a{:href => '/sample-40-how-to-set-callback-for-signature-form-and-re-direct-when-it-was-signed'} Sample 40 - How to set callback for signature form and re-direct when it was signed
|
84
84
|
%li
|
85
|
-
%a{:href => '/
|
85
|
+
%a{:href => '/sample-41-how-to-set-callback-for-annotation-and-manage-user-rights'} Sample 41 - How to set callback for Annotation and manage user rights using Ruby SDK
|
86
86
|
%li
|
87
|
-
%a{:href => '/
|
87
|
+
%a{:href => '/sample-42-how-to-download-document-with-annotations-using-groupdocs'} Sample 42 - How to download document with annotations using GroupDocs Ruby SDK
|
88
88
|
%li
|
89
|
-
%a{:href => '/
|
89
|
+
%a{:href => '/sample-43-how-to-add-numeration-in-the-doc-file'} Sample 43 - How to add numeration in the doc file using GroupDocs Ruby SDK
|
90
|
+
%li
|
91
|
+
%a{:href => '/sample-44-how-to-assemble-document-and-add-multiple-signatures-and-signers-to-a-document'} Sample 44 - How to assemble document and add multiple Signatures and Signers to a document using Ruby SDK
|
92
|
+
%li
|
93
|
+
%a{:href => '/sample-45-how-to-check-statistic-info-for-the-document'} Sample 45 - How to check statistic info for the document using Ruby SDK
|
@@ -1,87 +1,98 @@
|
|
1
|
-
%
|
2
|
-
%
|
1
|
+
%head
|
2
|
+
%title Powered by Ruby SDK
|
3
|
+
%link(rel="stylesheet" type="text/css" href="/css/style.css")
|
4
|
+
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
5
|
+
%body
|
6
|
+
%h1{:style => 'text-align:center;'} GroupDocs Ruby SDK Samples
|
7
|
+
%div{:style => 'padding:10px;'}
|
3
8
|
%ul
|
4
9
|
%li
|
5
|
-
%a{:href => '/
|
10
|
+
%a{:href => '/sample-1-how-to-login-to-groupdocs-using-the-api'} Sample 1 - How to login to GroupDocs using the API
|
6
11
|
%li
|
7
|
-
%a{:href => '/
|
12
|
+
%a{:href => '/sample-2-how-to-list-files-within-groupdocs-storage-using-the-storage-api'} Sample 2 - How to list files within GroupDocs Storage using the Storage API
|
8
13
|
%li
|
9
|
-
%a{:href => '/
|
14
|
+
%a{:href => '/sample-3-how-to-upload-a-file-to-groupdocs-using-the-storage-api'} Sample 3 - How to upload a file to GroupDocs using the Storage API
|
10
15
|
%li
|
11
|
-
%a{:href => '/
|
16
|
+
%a{:href => '/sample-4-how-to-download-a-file-from-groupdocs-storage-using-the-storage-api'} Sample 4 - How to download a file from GroupDocs Storage using the Storage API
|
12
17
|
%li
|
13
|
-
%a{:href => '/
|
18
|
+
%a{:href => '/sample-5-how-to-copy-move-a-file-using-the-groupdocs-storage-api'} Sample 5 - How to copy / move a file using the GroupDocs Storage API
|
14
19
|
%li
|
15
|
-
%a{:href => '/
|
20
|
+
%a{:href => '/sample-6-how-to-add-a-signature-to-a-document-in-groupdocs-signature'} Sample 6 - How to add a Signature to a document in GroupDocs Signature
|
16
21
|
%li
|
17
|
-
%a{:href => '/
|
22
|
+
%a{:href => '/sample-7-how-to-create-a-list-of-thumbnails-for-a-document'} Sample 7 - How to create a list of thumbnails for a document
|
18
23
|
%li
|
19
|
-
%a{:href => '/
|
24
|
+
%a{:href => '/sample-8-how-to-return-a-url-representing-a-single-page-of-a-document'} Sample 8 - How to return a URL representing a single page of a Document
|
20
25
|
%li
|
21
|
-
%a{:href => '/
|
26
|
+
%a{:href => '/sample-9-how-to-generate-an-embedded-viewer-url-for-a-document'} Sample 9 - How to generate an embedded Viewer URL for a Document
|
22
27
|
%li
|
23
|
-
%a{:href => '/
|
28
|
+
%a{:href => '/sample-10-how-to-share-a-document-to-other-users'} Sample 10 - How to share a document to other users
|
24
29
|
%li
|
25
|
-
%a{:href => '/
|
30
|
+
%a{:href => '/sample-11-how-to-programmatically-create-and-post-an-annotation-into-document'} Sample 11 - How to programmatically create and post an annotation into document. How to delete the annotation
|
26
31
|
%li
|
27
|
-
%a{:href => '/
|
32
|
+
%a{:href => '/sample-12-how-to-list-all-annotations-from-document'} Sample 12 - How to list all annotations from document
|
28
33
|
%li
|
29
|
-
%a{:href => '/
|
34
|
+
%a{:href => '/sample-13-how-to-add-collaborator-to-doc-with-annotations'} Sample 13 - How to add collaborator to doc with annotations
|
30
35
|
%li
|
31
|
-
%a{:href => '/
|
36
|
+
%a{:href => '/sample-14-how-to-check-the-list-of-shares-for-a-folder'} Sample 14 - How to check the list of shares for a folder
|
32
37
|
%li
|
33
|
-
%a{:href => '/
|
38
|
+
%a{:href => '/sample-15-how-to-check-the-number-of-document\'s-views'} Sample 15 - How to check the number of document's views
|
34
39
|
%li
|
35
|
-
%a{:href => '/
|
40
|
+
%a{:href => '/sample-16-how-to-insert-assembly-questionnaire-into-webpage'} Sample 16 - How to insert Assembly questionnaire into webpage
|
36
41
|
%li
|
37
|
-
%a{:href => '/
|
42
|
+
%a{:href => '/sample-17-how-to-upload-a-file-into-the-storage-and-compress-it-into-zip-archive'} Sample 17 - How to upload a file into the storage and compress it into zip archive
|
38
43
|
%li
|
39
|
-
%a{:href => '/
|
44
|
+
%a{:href => '/sample-18-how-to-convert-doc-to-docx-docx-to-doc-docx-to-pdf-ppt-to-pdf'} Sample 18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
|
40
45
|
%li
|
41
|
-
%a{:href => '/
|
46
|
+
%a{:href => '/sample-19-how-to-compare-documents'} Sample 19 - How to Compare documents using Ruby SDK
|
42
47
|
%li
|
43
|
-
%a{:href => '/
|
48
|
+
%a{:href => '/sample-20-how-to-get-compare-change-list-for-document'} Sample 20 - How to Get Compare Change list for document using Ruby SDK
|
44
49
|
%li
|
45
|
-
%a{:href => '/
|
50
|
+
%a{:href => '/sample-21-how-to-create-and-upload-envelop-to-groupdocs-account'} Sample 21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
|
46
51
|
%li
|
47
|
-
%a{:href => '/
|
52
|
+
%a{:href => '/sample-22-how-to-create-or-update-user-and-add-him-to-collaborators'} Sample 22 - How to create or update user and add him to collaborators using Ruby SDK
|
48
53
|
%li
|
49
|
-
%a{:href => '/
|
54
|
+
%a{:href => '/sample-23-how-to-view-document-pages-as-images'} Sample 23 - How to View Document pages as images using Ruby SDK
|
50
55
|
%li
|
51
|
-
%a{:href => '/
|
56
|
+
%a{:href => '/sample-24-how-to-use-storageapi-to-upload-fil-from-url-to-groupdocs-account'} Sample 24 - How to use StorageApi to upload file from URL to GroupDocs account using Ruby SDK
|
52
57
|
%li
|
53
|
-
%a{:href => '/
|
58
|
+
%a{:href => '/sample-25-how-to-merge-assemble-and-convert-document'} Sample 25 - How to merge/assemble and convert document using Ruby SDK
|
54
59
|
%li
|
55
|
-
%a{:href => '/
|
60
|
+
%a{:href => '/sample-26-how-to-use-login-method-in-the-api'} Sample 26 - How to use login method in the API
|
56
61
|
%li
|
57
|
-
%a{:href => '/
|
62
|
+
%a{:href => '/sample-27-how-to-create-your-own-questionnaire-using-forms-and-show-the-result-document'} Sample 27 - How to create your own questionnaire using forms and show the result document using Ruby SDK
|
58
63
|
%li
|
59
|
-
%a{:href => '/
|
64
|
+
%a{:href => '/sample-28-how-to-delete-all-annotations-from-document'} Sample 28 - How to delete all annotations from document
|
60
65
|
%li
|
61
|
-
%a{:href => '/
|
66
|
+
%a{:href => '/sample-29-how-to-use-filepicker-io-to-upload-document-and-get-it\'s-url'} Sample 29 - How to use Filepicker.io to upload document and get it's URL
|
62
67
|
%li
|
63
|
-
%a{:href => '/
|
68
|
+
%a{:href => '/sample-30-how-to-delete-file-from-groupdocs-storage'} Sample 30 - How to delete file from GroupDocs Storage
|
64
69
|
%li
|
65
|
-
%a{:href => '/
|
70
|
+
%a{:href => '/sample-31-how-to-dynamically-create-signature-form-using-data-from-html-form'} Sample 31 - How to dynamically create Signature Form using data from HTML form
|
66
71
|
%li
|
67
|
-
%a{:href => '/
|
72
|
+
%a{:href => '/sample-32-how-to-create-signature-form-publish-it-and-configure-notification-via-callback'} Sample 32 - How to create signature form, publish it and configure notification via callback
|
68
73
|
%li
|
69
|
-
%a{:href => '/
|
74
|
+
%a{:href => '/sample-33-how-to-convert-several-html-documents-into-one-pdf-document'} Sample 33 - How to convert and merge/combine several HTML documents into one PDF Document
|
70
75
|
%li
|
71
|
-
%a{:href => '/
|
76
|
+
%a{:href => '/sample-34-how-to-create-folder-in-the-groupdocs-account'} Sample 34 - How to create folder in the GroupDocs account
|
72
77
|
%li
|
73
|
-
%a{:href => '/
|
78
|
+
%a{:href => '/sample-35-how-to-get-fields-and-their-data-from-pdf-file'} Sample 35 - How to get fields and their data from PDF file
|
74
79
|
%li
|
75
|
-
%a{:href => '/
|
80
|
+
%a{:href => '/sample-36-how-to-download-signed-documents-when-envelope-was-signed'} Sample 36 - How to download signed documents when envelope was signed using Ruby SDK
|
76
81
|
%li
|
77
|
-
%a{:href => '/
|
82
|
+
%a{:href => '/sample-37-how-to-create-envelop-and-download-signed-document-when-envelop-was-signed-using-callback'} Sample 37 - How to create envelop and download signed document when envelop was signed using callback
|
78
83
|
%li
|
79
|
-
%a{:href => '/
|
84
|
+
%a{:href => '/sample-38-how-to-create-new-user-and-add-him-as-collaborator-to-doc-with-annotations'} Sample 38 - How to create new user and add him as collaborator to doc with annotations
|
80
85
|
%li
|
81
|
-
%a{:href => '/
|
86
|
+
%a{:href => '/sample-39-how-to-add-a-signature-to-a-document-and-re-direct-after-signing-with-groupdocs-widget'} Sample 39 - How to add a Signature to a document and re-direct after signing with GroupDocs widget
|
82
87
|
%li
|
83
|
-
%a{:href => '/
|
88
|
+
%a{:href => '/sample-40-how-to-set-callback-for-signature-form-and-re-direct-when-it-was-signed'} Sample 40 - How to set callback for signature form and re-direct when it was signed
|
84
89
|
%li
|
85
|
-
%a{:href => '/
|
90
|
+
%a{:href => '/sample-41-how-to-set-callback-for-annotation-and-manage-user-rights'} Sample 41 - How to set callback for Annotation and manage user rights using Ruby SDK
|
86
91
|
%li
|
87
|
-
%a{:href => '/
|
92
|
+
%a{:href => '/sample-42-how-to-download-document-with-annotations-using-groupdocs'} Sample 42 - How to download document with annotations using GroupDocs Ruby SDK
|
93
|
+
%li
|
94
|
+
%a{:href => '/sample-43-how-to-add-numeration-in-the-doc-file'} Sample 43 - How to add numeration in the doc file using GroupDocs Ruby SDK
|
95
|
+
%li
|
96
|
+
%a{:href => '/sample-44-how-to-assemble-document-and-add-multiple-signatures-and-signers-to-a-document'} Sample 44 - How to assemble document and add multiple Signatures and Signers to a document using Ruby SDK
|
97
|
+
%li
|
98
|
+
%a{:href => '/sample-45-how-to-check-statistic-info-for-the-document'} Sample 45 - How to check statistic info for the document using Ruby SDK
|
@@ -1,59 +1,64 @@
|
|
1
|
-
%
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
%
|
7
|
-
|
8
|
-
%br/
|
9
|
-
%span.documentation
|
10
|
-
%a{:href => '/docs/sample01.html'} Builtin documentation for this sample
|
11
|
-
%br/
|
12
|
-
%br/
|
13
|
-
%p
|
14
|
-
You entered:
|
15
|
-
%p
|
16
|
-
UserId = #{(defined? userId) ? userId : ''}
|
17
|
-
%p
|
18
|
-
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
19
|
-
%p
|
20
|
-
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
21
|
-
|
22
|
-
%div{:style => 'padding:20px; border:1px solid black;'}
|
23
|
-
%p Results:
|
24
|
-
%table{:style => 'border:1px double black;'}
|
25
|
-
%tr
|
26
|
-
%th Field
|
27
|
-
%th Value
|
28
|
-
%tr
|
29
|
-
%td First Name
|
30
|
-
%td #{(defined? user.first_name) ? user.first_name : ''}
|
31
|
-
%tr
|
32
|
-
%td Last Name
|
33
|
-
%td #{(defined? user.last_name) ? user.last_name : ''}
|
34
|
-
%tr
|
35
|
-
%td Nick Name
|
36
|
-
%td #{(defined? user.nickname) ? user.nickname : ''}
|
37
|
-
%tr
|
38
|
-
%td Primary Email
|
39
|
-
%td #{(defined? user.primary_email) ? user.primary_email : ''}
|
1
|
+
%head
|
2
|
+
%title Sample 1 - How to login to GroupDocs using the API
|
3
|
+
%link(rel="stylesheet" type="text/css" href="/css/style.css")
|
4
|
+
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
5
|
+
%body
|
6
|
+
%h3{:style => 'text-align:center;'}
|
7
|
+
%a{:href => '/'}GroupDocs Ruby SDK Samples
|
40
8
|
%br/
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
9
|
+
Sample 1 - How to login to GroupDocs using the API
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%i This sample will show how to use Signer object to be authorized at GroupDocs and how to get GroupDocs user infromation using Ruby SDK
|
12
|
+
%br/
|
13
|
+
%br/
|
14
|
+
%span.documentation
|
15
|
+
%a{:href => '/docs/sample01.html'} Builtin documentation for this sample
|
16
|
+
%br/
|
17
|
+
%br/
|
18
|
+
%p
|
19
|
+
You entered:
|
20
|
+
%p
|
21
|
+
UserId = #{(defined? userId) ? userId : ''}
|
22
|
+
%p
|
23
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
24
|
+
%p
|
25
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
26
|
+
|
27
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
28
|
+
%p Results:
|
29
|
+
%table{:style => 'border:1px double black;'}
|
30
|
+
%tr
|
31
|
+
%th Field
|
32
|
+
%th Value
|
33
|
+
%tr
|
34
|
+
%td First Name
|
35
|
+
%td #{(defined? user.first_name) ? user.first_name : ''}
|
36
|
+
%tr
|
37
|
+
%td Last Name
|
38
|
+
%td #{(defined? user.last_name) ? user.last_name : ''}
|
39
|
+
%tr
|
40
|
+
%td Nick Name
|
41
|
+
%td #{(defined? user.nickname) ? user.nickname : ''}
|
42
|
+
%tr
|
43
|
+
%td Primary Email
|
44
|
+
%td #{(defined? user.primary_email) ? user.primary_email : ''}
|
45
|
+
%br/
|
46
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
47
|
+
%p Enter data for request and press "Make request" button
|
48
|
+
%form{:action => '/sample-1-how-to-login-to-groupdocs-using-the-api', :enctype => 'multipart/form-data', :method => 'post'}
|
49
|
+
%label{:for => 'clientId'} GroupDocs Client ID
|
50
|
+
%br/
|
51
|
+
%input{:type=>'text', :name=>'clientId'}
|
52
|
+
%br/
|
53
|
+
%label{:for => 'privateKey'} GroupDocs Private Key
|
54
|
+
%br/
|
55
|
+
%input{:type=>'text', :name=>'privateKey'}
|
56
|
+
%br/
|
57
|
+
%label{:for => 'basePath'} Base Path
|
58
|
+
%span{:class => 'optional'} (Optional)
|
59
|
+
%br/
|
60
|
+
%input{:type=>'text', :name=>'basePath'}
|
61
|
+
%br/
|
62
|
+
%input{:type => 'submit', :value => 'Make Request'}
|
58
63
|
|
59
|
-
= partial :_others_samples
|
64
|
+
= partial :_others_samples
|