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
@@ -1,59 +1,65 @@
|
|
1
|
-
%
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
%
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
%p
|
19
|
-
FileId = #{(defined? fileId) ? fileId : ''}
|
20
|
-
%p
|
21
|
-
Email = #{(defined? email) ? email : ''}
|
22
|
-
%p
|
23
|
-
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
24
|
-
%br/
|
25
|
-
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
26
|
-
%p Enter data for request and press "Make request" button
|
27
|
-
%form{:action => '/sample13', :method => 'post'}
|
28
|
-
%label{:for => 'clientId'} GroupDocs ClientID
|
29
|
-
%br/
|
30
|
-
%input{:type=>'text', :name=>'clientId'}
|
31
|
-
%br/
|
32
|
-
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
33
|
-
%br/
|
34
|
-
%input{:type=>'text', :name=>'privateKey'}
|
35
|
-
%br/
|
36
|
-
%label{:for => 'fileId'} GroupDocs FileID
|
37
|
-
%br/
|
38
|
-
%input{:type=>'text', :name=>'fileId'}
|
39
|
-
%br/
|
40
|
-
%label{:for => 'email'} Collaborator Email
|
41
|
-
%br/
|
42
|
-
%input{:type=>'text', :name=>'email'}
|
43
|
-
%br/
|
44
|
-
%label{:for => 'basePath'} Base Path
|
45
|
-
%span{:class => 'optional'} (Optional)
|
46
|
-
%br/
|
47
|
-
%input{:type=>'text', :name=>'basePath'}
|
48
|
-
%br/
|
49
|
-
%br/
|
50
|
-
%input{:type => 'submit', :value => 'Make request'}/
|
51
|
-
%div{:style => 'padding:20px; border:1px solid black;'}
|
1
|
+
%head
|
2
|
+
%title Sample 13 - How to add collaborator to doc with annotations
|
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
|
8
|
+
%br/
|
9
|
+
Sample 13 - How to add collaborator to doc with annotations
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%i This sample will show how to add collaborator to doc with annotations using Ruby SDK
|
12
|
+
%br/
|
13
|
+
%br/
|
14
|
+
%span.documentation
|
15
|
+
%a{:href => '/docs/sample13.html'} Builtin documentation for this sample
|
16
|
+
%br/
|
17
|
+
%br/
|
52
18
|
%p
|
53
|
-
|
19
|
+
You entered:
|
54
20
|
%p
|
55
|
-
|
56
|
-
|
57
|
-
|
21
|
+
UserId = #{(defined? clientId) ? clientId : ''}
|
22
|
+
%p
|
23
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
24
|
+
%p
|
25
|
+
FileId = #{(defined? fileId) ? fileId : ''}
|
26
|
+
%p
|
27
|
+
Email = #{(defined? email) ? email : ''}
|
28
|
+
%p
|
29
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
30
|
+
%br/
|
31
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
32
|
+
%p Enter data for request and press "Make request" button
|
33
|
+
%form{:action => '/sample-13-how-to-add-collaborator-to-doc-with-annotations', :method => 'post'}
|
34
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
35
|
+
%br/
|
36
|
+
%input{:type=>'text', :name=>'clientId'}
|
37
|
+
%br/
|
38
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
39
|
+
%br/
|
40
|
+
%input{:type=>'text', :name=>'privateKey'}
|
41
|
+
%br/
|
42
|
+
%label{:for => 'fileId'} GroupDocs FileID
|
43
|
+
%br/
|
44
|
+
%input{:type=>'text', :name=>'fileId'}
|
45
|
+
%br/
|
46
|
+
%label{:for => 'email'} Collaborator Email
|
47
|
+
%br/
|
48
|
+
%input{:type=>'text', :name=>'email'}
|
49
|
+
%br/
|
50
|
+
%label{:for => 'basePath'} Base Path
|
51
|
+
%span{:class => 'optional'} (Optional)
|
52
|
+
%br/
|
53
|
+
%input{:type=>'text', :name=>'basePath'}
|
54
|
+
%br/
|
55
|
+
%br/
|
56
|
+
%input{:type => 'submit', :value => 'Make request'}/
|
57
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
58
|
+
%p
|
59
|
+
Result:
|
60
|
+
%p
|
61
|
+
New collaborations:
|
62
|
+
- if defined? result.first
|
63
|
+
%span{:style => "color: green"}#{result.first.primary_email}
|
58
64
|
|
59
|
-
= partial :_others_samples
|
65
|
+
= partial :_others_samples
|
@@ -1,55 +1,61 @@
|
|
1
|
-
%
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
%
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
%p
|
19
|
-
Folder = #{(defined? folder) ? folder : ''}
|
20
|
-
%p
|
21
|
-
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
22
|
-
%br/
|
23
|
-
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
24
|
-
%p Enter data for request and press "Make request" button
|
25
|
-
%form{:action => '/sample14', :method => 'post'}
|
26
|
-
%label{:for => 'clientId'} GroupDocs ClientID
|
27
|
-
%br/
|
28
|
-
%input{:type=>'text', :name=>'clientId'}
|
29
|
-
%br/
|
30
|
-
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
31
|
-
%br/
|
32
|
-
%input{:type=>'text', :name=>'privateKey'}
|
33
|
-
%br/
|
34
|
-
%label{:for => 'path'} GroupDocs Folder
|
35
|
-
%br/
|
36
|
-
%input{:type=>'text', :name=>'path'}
|
37
|
-
%br/
|
38
|
-
%label{:for => 'basePath'} Base Path
|
39
|
-
%span{:class => 'optional'} (Optional)
|
40
|
-
%br/
|
41
|
-
%input{:type=>'text', :name=>'basePath'}
|
42
|
-
%br/
|
43
|
-
%input{:type => 'submit', :value => 'Make request'}/
|
44
|
-
%div{:style => 'padding:20px; border:1px solid black;'}
|
1
|
+
%head
|
2
|
+
%title Sample 14 - How to check the list of shares for a folder
|
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
|
8
|
+
%br/
|
9
|
+
Sample 14 - How to check the list of shares for a folder
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%i This sample will show how to check the list of shares for a folder using Ruby SDK
|
12
|
+
%br/
|
13
|
+
%br/
|
14
|
+
%span.documentation
|
15
|
+
%a{:href => '/docs/sample14.html'} Builtin documentation for this sample
|
16
|
+
%br/
|
17
|
+
%br/
|
45
18
|
%p
|
46
|
-
|
47
|
-
%br/
|
19
|
+
You entered:
|
48
20
|
%p
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
21
|
+
UserId = #{(defined? userId) ? userId : ''}
|
22
|
+
%p
|
23
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
24
|
+
%p
|
25
|
+
Folder = #{(defined? folder) ? folder : ''}
|
26
|
+
%p
|
27
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
28
|
+
%br/
|
29
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
30
|
+
%p Enter data for request and press "Make request" button
|
31
|
+
%form{:action => '/sample-14-how-to-check-the-list-of-shares-for-a-folder', :method => 'post'}
|
32
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
33
|
+
%br/
|
34
|
+
%input{:type=>'text', :name=>'clientId'}
|
35
|
+
%br/
|
36
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
37
|
+
%br/
|
38
|
+
%input{:type=>'text', :name=>'privateKey'}
|
39
|
+
%br/
|
40
|
+
%label{:for => 'path'} GroupDocs Folder
|
41
|
+
%br/
|
42
|
+
%input{:type=>'text', :name=>'path'}
|
43
|
+
%br/
|
44
|
+
%label{:for => 'basePath'} Base Path
|
45
|
+
%span{:class => 'optional'} (Optional)
|
46
|
+
%br/
|
47
|
+
%input{:type=>'text', :name=>'basePath'}
|
48
|
+
%br/
|
49
|
+
%input{:type => 'submit', :value => 'Make request'}/
|
50
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
51
|
+
%p
|
52
|
+
List of shares for a folder:
|
53
|
+
%br/
|
54
|
+
%p
|
55
|
+
Shared users:
|
56
|
+
- if defined? shares.first
|
57
|
+
- shares.each do |user|
|
58
|
+
%span{:style => "color: green"} #{user.primary_email}
|
53
59
|
|
54
60
|
|
55
|
-
= partial :_others_samples
|
61
|
+
= partial :_others_samples
|
@@ -1,46 +1,52 @@
|
|
1
|
-
%
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
%
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
%p
|
19
|
-
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
20
|
-
%br/
|
21
|
-
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
22
|
-
%p Enter data for request and press "Make request" button
|
23
|
-
%form{:action => '/sample15', :method => 'post'}
|
24
|
-
%label{:for => 'clientId'} GroupDocs ClientID
|
25
|
-
%br/
|
26
|
-
%input{:type=>'text', :name=>'clientId'}
|
27
|
-
%br/
|
28
|
-
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
29
|
-
%br/
|
30
|
-
%input{:type=>'text', :name=>'privateKey'}
|
31
|
-
%br/
|
32
|
-
%label{:for => 'basePath'} Base Path
|
33
|
-
%span{:class => 'optional'} (Optional)
|
34
|
-
%br/
|
35
|
-
%input{:type=>'text', :name=>'basePath'}
|
36
|
-
%br/
|
37
|
-
%input{:type => 'submit', :value => 'Make request'}/
|
38
|
-
%div{:style => 'padding:20px; border:1px solid black;'}
|
1
|
+
%head
|
2
|
+
%title Sample 15 - How to check the number of document's views
|
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
|
8
|
+
%br/
|
9
|
+
Sample 15 - How to check the number of document's views
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%i This sample will show how to check the number of document's views using Ruby SDK
|
12
|
+
%br/
|
13
|
+
%br/
|
14
|
+
%span.documentation
|
15
|
+
%a{:href => '/docs/sample15.html'} Builtin documentation for this sample
|
16
|
+
%br/
|
17
|
+
%br/
|
39
18
|
%p
|
40
|
-
|
19
|
+
You entered:
|
41
20
|
%p
|
42
|
-
|
43
|
-
|
44
|
-
|
21
|
+
UserId = #{(defined? userId) ? userId : ''}
|
22
|
+
%p
|
23
|
+
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
24
|
+
%p
|
25
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
26
|
+
%br/
|
27
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
28
|
+
%p Enter data for request and press "Make request" button
|
29
|
+
%form{:action => '/sample-15-how-to-check-the-number-of-document\'s-views', :method => 'post'}
|
30
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
31
|
+
%br/
|
32
|
+
%input{:type=>'text', :name=>'clientId'}
|
33
|
+
%br/
|
34
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
35
|
+
%br/
|
36
|
+
%input{:type=>'text', :name=>'privateKey'}
|
37
|
+
%br/
|
38
|
+
%label{:for => 'basePath'} Base Path
|
39
|
+
%span{:class => 'optional'} (Optional)
|
40
|
+
%br/
|
41
|
+
%input{:type=>'text', :name=>'basePath'}
|
42
|
+
%br/
|
43
|
+
%input{:type => 'submit', :value => 'Make request'}/
|
44
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
45
|
+
%p
|
46
|
+
Result:
|
47
|
+
%p
|
48
|
+
Total document's views:
|
49
|
+
- if defined? total
|
50
|
+
%span{:style => "color: green"} #{total}
|
45
51
|
|
46
|
-
= partial :_others_samples
|
52
|
+
= partial :_others_samples
|
@@ -1,45 +1,51 @@
|
|
1
|
-
%
|
2
|
-
%
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
%
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
%
|
18
|
-
%br/
|
19
|
-
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
20
|
-
%p Enter data for request and press "Make request" button
|
21
|
-
%form{:action => '/sample16', :method => 'post'}
|
22
|
-
%label{:for => 'clientId'} GroupDocs ClientID
|
23
|
-
%br/
|
24
|
-
%input{:type=>'text', :name=>'clientId', :id => 'clientId' }
|
25
|
-
%br/
|
26
|
-
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
27
|
-
%br/
|
28
|
-
%input{:type=>'text', :name=>'privateKey', :id => 'privateKey'}
|
29
|
-
%br/
|
30
|
-
%label{:for => 'fileId'} GroupDocs FileID
|
31
|
-
%br/
|
32
|
-
%input{:type=>'text', :name=>'fileId',}
|
33
|
-
%br/
|
34
|
-
%label{:for => 'basePath'} Base Path
|
35
|
-
%span{:class => 'optional'} (Optional)
|
36
|
-
%br/
|
37
|
-
%input{:type=>'text', :name=>'basePath'}
|
38
|
-
%br/
|
39
|
-
%input{:type => 'submit', :value => 'Make request'}/
|
40
|
-
%div{:style => 'padding:20px; border:1px solid black;'}
|
1
|
+
%head
|
2
|
+
%title Sample 16 - How to insert Assembly questionnaire into webpage
|
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
|
8
|
+
%br/
|
9
|
+
Sample 16 - How to insert Assembly questionnaire into webpage
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%i This sample will show how to insert Assembly questionary into webpage using Ruby SDK
|
12
|
+
%br/
|
13
|
+
%br/
|
14
|
+
%span.documentation
|
15
|
+
%a{:href => '/docs/sample16.html'} Builtin documentation for this sample
|
16
|
+
%br/
|
17
|
+
%br/
|
41
18
|
%p
|
42
|
-
|
43
|
-
|
19
|
+
You entered:
|
20
|
+
%p
|
21
|
+
FileId = #{(defined? fileId) ? fileId : ''}
|
22
|
+
%p
|
23
|
+
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
24
|
+
%br/
|
25
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
26
|
+
%p Enter data for request and press "Make request" button
|
27
|
+
%form{:action => '/sample-16-how-to-insert-assembly-questionnaire-into-webpage', :method => 'post'}
|
28
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
29
|
+
%br/
|
30
|
+
%input{:type=>'text', :name=>'clientId', :id => 'clientId' }
|
31
|
+
%br/
|
32
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
33
|
+
%br/
|
34
|
+
%input{:type=>'text', :name=>'privateKey', :id => 'privateKey'}
|
35
|
+
%br/
|
36
|
+
%label{:for => 'fileId'} GroupDocs FileID
|
37
|
+
%br/
|
38
|
+
%input{:type=>'text', :name=>'fileId',}
|
39
|
+
%br/
|
40
|
+
%label{:for => 'basePath'} Base Path
|
41
|
+
%span{:class => 'optional'} (Optional)
|
42
|
+
%br/
|
43
|
+
%input{:type=>'text', :name=>'basePath'}
|
44
|
+
%br/
|
45
|
+
%input{:type => 'submit', :value => 'Make request'}/
|
46
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
47
|
+
%p
|
48
|
+
Result:
|
49
|
+
#{(defined? iframe) ? iframe : ''}
|
44
50
|
|
45
|
-
= partial :_others_samples
|
51
|
+
= partial :_others_samples
|
@@ -1,49 +1,55 @@
|
|
1
|
-
%
|
2
|
-
%a
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
%
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
%p
|
19
|
-
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
20
|
-
%br/
|
21
|
-
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
22
|
-
%p Enter data for request and press "Make request" button
|
23
|
-
%form{:action => '/sample17', :enctype => 'multipart/form-data', :method => 'post'}
|
24
|
-
%label{:for => 'clientId'} GroupDocs ClientID
|
25
|
-
%br/
|
26
|
-
%input{:type=>'text', :name=>'clientId', :id => 'clientId' }
|
27
|
-
%br/
|
28
|
-
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
29
|
-
%br/
|
30
|
-
%input{:type=>'text', :name=>'privateKey', :id => 'privateKey'}
|
31
|
-
%br/
|
32
|
-
%label{:for => 'file'} File
|
33
|
-
%br/
|
34
|
-
%input{:name => 'file', :type => 'file'}/
|
35
|
-
%br/
|
36
|
-
%label{:for => 'basePath'} Base Path
|
37
|
-
%span{:class => 'optional'} (Optional)
|
38
|
-
%br/
|
39
|
-
%input{:type=>'text', :name=>'basePath'}
|
40
|
-
%br/
|
41
|
-
%br/
|
42
|
-
%input{:type => 'submit', :value => 'Upload'}/
|
43
|
-
%div{:style => 'padding:20px; border:1px solid black;'}
|
1
|
+
%head
|
2
|
+
%title Sample 17 - How to upload a file into the storage and compress it into zip archive
|
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
|
8
|
+
%br/
|
9
|
+
Sample 17 - How to upload a file into the storage and compress it into zip archive
|
10
|
+
.samplecontent{:style => 'padding:10px;'}
|
11
|
+
%i This sample will show how to upload a file into the storage and compress it into zip archive using Ruby SDK
|
12
|
+
%br/
|
13
|
+
%br/
|
14
|
+
%span.documentation
|
15
|
+
%a{:href => '/docs/sample17.html'} Builtin documentation for this sample
|
16
|
+
%br/
|
17
|
+
%br/
|
44
18
|
%p
|
45
|
-
|
46
|
-
%
|
47
|
-
|
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
|
+
%br/
|
27
|
+
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
28
|
+
%p Enter data for request and press "Make request" button
|
29
|
+
%form{:action => '/sample-17-how-to-upload-a-file-into-the-storage-and-compress-it-into-zip-archive', :enctype => 'multipart/form-data', :method => 'post'}
|
30
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
31
|
+
%br/
|
32
|
+
%input{:type=>'text', :name=>'clientId', :id => 'clientId' }
|
33
|
+
%br/
|
34
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
35
|
+
%br/
|
36
|
+
%input{:type=>'text', :name=>'privateKey', :id => 'privateKey'}
|
37
|
+
%br/
|
38
|
+
%label{:for => 'file'} File
|
39
|
+
%br/
|
40
|
+
%input{:name => 'file', :type => 'file'}/
|
41
|
+
%br/
|
42
|
+
%label{:for => 'basePath'} Base Path
|
43
|
+
%span{:class => 'optional'} (Optional)
|
44
|
+
%br/
|
45
|
+
%input{:type=>'text', :name=>'basePath'}
|
46
|
+
%br/
|
47
|
+
%br/
|
48
|
+
%input{:type => 'submit', :value => 'Upload'}/
|
49
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
50
|
+
%p
|
51
|
+
Results:
|
52
|
+
%span{:style => "color: green"} #{(defined? massage) ? massage : ''}
|
53
|
+
#{(defined? iframe) ? iframe : ''}
|
48
54
|
|
49
|
-
= partial :_others_samples
|
55
|
+
= partial :_others_samples
|