groupdocs 1.5.7 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +51 -0
- data/examples/api-samples/Gemfile +1 -1
- data/examples/api-samples/Gemfile.lock +43 -0
- data/examples/api-samples/public/docs/{sample2.html → sample01.html} +39 -19
- data/examples/api-samples/public/docs/{sample3.html → sample02.html} +28 -22
- data/examples/api-samples/public/docs/sample03.html +285 -0
- data/examples/api-samples/public/docs/{sample4.html → sample04.html} +30 -36
- data/examples/api-samples/public/docs/{sample5.html → sample05.html} +68 -31
- data/examples/api-samples/public/docs/sample06.html +299 -0
- data/examples/api-samples/public/docs/{sample7.html → sample07.html} +53 -18
- data/examples/api-samples/public/docs/{sample8.html → sample08.html} +64 -41
- data/examples/api-samples/public/docs/sample09.html +260 -0
- data/examples/api-samples/public/docs/sample10.html +67 -28
- data/examples/api-samples/public/docs/sample11.html +171 -55
- data/examples/api-samples/public/docs/sample12.html +53 -17
- data/examples/api-samples/public/docs/sample13.html +52 -16
- data/examples/api-samples/public/docs/sample14.html +51 -8
- data/examples/api-samples/public/docs/sample15.html +46 -10
- data/examples/api-samples/public/docs/sample16.html +81 -7
- data/examples/api-samples/public/docs/sample17.html +103 -15
- data/examples/api-samples/public/docs/sample18.html +117 -41
- data/examples/api-samples/public/docs/sample19.html +410 -36
- data/examples/api-samples/public/docs/sample20.html +46 -10
- data/examples/api-samples/public/docs/sample21.html +504 -45
- data/examples/api-samples/public/docs/sample22.html +166 -28
- data/examples/api-samples/public/docs/sample23.html +61 -25
- data/examples/api-samples/public/docs/sample24.html +100 -12
- data/examples/api-samples/public/docs/sample25.html +123 -49
- data/examples/api-samples/public/docs/sample26.html +41 -8
- data/examples/api-samples/public/docs/sample27.html +125 -50
- data/examples/api-samples/public/docs/sample28.html +27 -9
- data/examples/api-samples/public/docs/sample29.html +10 -10
- data/examples/api-samples/public/docs/sample30.html +70 -14
- data/examples/api-samples/public/docs/sample31.html +108 -67
- data/examples/api-samples/public/docs/sample32.html +71 -99
- data/examples/api-samples/public/docs/sample33.html +107 -32
- data/examples/api-samples/public/docs/{sample1.html → sample34.html} +58 -18
- data/examples/api-samples/public/docs/sample35.html +666 -0
- data/examples/api-samples/public/docs/{sample6.html → sample36.html} +56 -37
- data/examples/api-samples/public/docs/sample37.html +815 -0
- data/examples/api-samples/public/docs/sample38.html +508 -0
- data/examples/api-samples/public/docs/sample39.html +921 -0
- data/examples/api-samples/public/docs/sample40.html +510 -0
- data/examples/api-samples/public/docs/sample41.html +452 -0
- data/examples/api-samples/public/docs/sample42.html +311 -0
- data/examples/api-samples/public/templates/test_all_fields2.pdf +0 -0
- data/examples/api-samples/samples/sample01.rb +37 -0
- data/examples/api-samples/samples/sample02.rb +41 -0
- data/examples/api-samples/samples/sample03.rb +73 -0
- data/examples/api-samples/samples/sample04.rb +47 -0
- data/examples/api-samples/samples/{sample5.rb → sample05.rb} +26 -14
- data/examples/api-samples/samples/sample06.rb +80 -0
- data/examples/api-samples/samples/sample07.rb +52 -0
- data/examples/api-samples/samples/sample08.rb +69 -0
- data/examples/api-samples/samples/sample09.rb +83 -0
- data/examples/api-samples/samples/sample10.rb +29 -15
- data/examples/api-samples/samples/sample11.rb +89 -37
- data/examples/api-samples/samples/sample12.rb +22 -11
- data/examples/api-samples/samples/sample13.rb +22 -10
- data/examples/api-samples/samples/sample14.rb +23 -5
- data/examples/api-samples/samples/sample15.rb +18 -7
- data/examples/api-samples/samples/sample16.rb +28 -4
- data/examples/api-samples/samples/sample17.rb +31 -5
- data/examples/api-samples/samples/sample18.rb +36 -8
- data/examples/api-samples/samples/sample19.rb +138 -18
- data/examples/api-samples/samples/sample20.rb +14 -3
- data/examples/api-samples/samples/sample21.rb +162 -23
- data/examples/api-samples/samples/sample22.rb +73 -22
- data/examples/api-samples/samples/sample23.rb +17 -6
- data/examples/api-samples/samples/sample24.rb +34 -7
- data/examples/api-samples/samples/sample25.rb +37 -12
- data/examples/api-samples/samples/sample26.rb +12 -5
- data/examples/api-samples/samples/sample27.rb +38 -12
- data/examples/api-samples/samples/sample28.rb +25 -6
- data/examples/api-samples/samples/sample29.rb +12 -12
- data/examples/api-samples/samples/sample30.rb +27 -15
- data/examples/api-samples/samples/sample31.rb +44 -33
- data/examples/api-samples/samples/sample32.rb +43 -41
- data/examples/api-samples/samples/sample33.rb +42 -14
- data/examples/api-samples/samples/sample34.rb +40 -0
- data/examples/api-samples/samples/sample35.rb +224 -0
- data/examples/api-samples/samples/sample36.rb +58 -0
- data/examples/api-samples/samples/sample37.rb +229 -0
- data/examples/api-samples/samples/sample38.rb +128 -0
- data/examples/api-samples/samples/sample39.rb +252 -0
- data/examples/api-samples/samples/sample40.rb +164 -0
- data/examples/api-samples/samples/sample41.rb +118 -0
- data/examples/api-samples/samples/sample42.rb +97 -0
- data/examples/api-samples/views/_others_samples.haml +25 -11
- data/examples/api-samples/views/index.haml +23 -11
- data/examples/api-samples/views/popup.haml +32 -0
- data/examples/api-samples/views/{sample1.haml → sample01.haml} +12 -7
- data/examples/api-samples/views/{sample2.haml → sample02.haml} +20 -15
- data/examples/api-samples/views/sample03.haml +83 -0
- data/examples/api-samples/views/sample04.haml +49 -0
- data/examples/api-samples/views/{sample5.haml → sample05.haml} +19 -14
- data/examples/api-samples/views/sample06.haml +53 -0
- data/examples/api-samples/views/sample07.haml +47 -0
- data/examples/api-samples/views/{sample8.haml → sample08.haml} +17 -12
- data/examples/api-samples/views/{sample9.haml → sample09.haml} +19 -4
- data/examples/api-samples/views/sample10.haml +18 -13
- data/examples/api-samples/views/sample11.haml +48 -19
- data/examples/api-samples/views/sample12.haml +26 -21
- data/examples/api-samples/views/sample13.haml +18 -12
- data/examples/api-samples/views/sample14.haml +21 -15
- data/examples/api-samples/views/sample15.haml +16 -9
- data/examples/api-samples/views/sample16.haml +18 -5
- data/examples/api-samples/views/sample17.haml +14 -9
- data/examples/api-samples/views/sample18.haml +13 -7
- data/examples/api-samples/views/sample19.haml +37 -8
- data/examples/api-samples/views/sample20.haml +13 -8
- data/examples/api-samples/views/sample21.haml +71 -13
- data/examples/api-samples/views/sample22.haml +53 -16
- data/examples/api-samples/views/sample23.haml +9 -4
- data/examples/api-samples/views/sample24.haml +9 -4
- data/examples/api-samples/views/sample25.haml +18 -13
- data/examples/api-samples/views/sample26.haml +8 -3
- data/examples/api-samples/views/sample27.haml +20 -14
- data/examples/api-samples/views/sample28.haml +16 -10
- data/examples/api-samples/views/sample29.haml +4 -4
- data/examples/api-samples/views/sample30.haml +16 -10
- data/examples/api-samples/views/sample31.haml +39 -32
- data/examples/api-samples/views/sample32.haml +25 -36
- data/examples/api-samples/views/sample33.haml +14 -17
- data/examples/api-samples/views/sample34.haml +48 -0
- data/examples/api-samples/views/sample35.haml +95 -0
- data/examples/api-samples/views/sample36.haml +64 -0
- data/examples/api-samples/views/sample37.haml +124 -0
- data/examples/api-samples/views/sample38.haml +115 -0
- data/examples/api-samples/views/sample39.haml +236 -0
- data/examples/api-samples/views/sample40.haml +95 -0
- data/examples/api-samples/views/{sample4.haml → sample41.haml} +90 -72
- data/examples/api-samples/views/sample42.haml +59 -0
- data/lib/groupdocs/api/helpers/rest_helper.rb +13 -1
- data/lib/groupdocs/datasource.rb +2 -1
- data/lib/groupdocs/document.rb +101 -13
- data/lib/groupdocs/document/annotation.rb +28 -13
- data/lib/groupdocs/document/annotation/marker.rb +18 -0
- data/lib/groupdocs/document/annotation/reply.rb +9 -2
- data/lib/groupdocs/document/field.rb +5 -1
- data/lib/groupdocs/job.rb +12 -2
- data/lib/groupdocs/questionnaire.rb +174 -4
- data/lib/groupdocs/questionnaire/collector.rb +21 -0
- data/lib/groupdocs/questionnaire/question.rb +19 -0
- data/lib/groupdocs/questionnaire/question/answer.rb +5 -0
- data/lib/groupdocs/questionnaire/question/conditions.rb +20 -0
- data/lib/groupdocs/signature.rb +36 -308
- data/lib/groupdocs/signature/envelope.rb +146 -4
- data/lib/groupdocs/signature/field.rb +20 -1
- data/lib/groupdocs/signature/field/location.rb +18 -7
- data/lib/groupdocs/signature/form.rb +199 -10
- data/lib/groupdocs/signature/shared/document_methods.rb +38 -0
- data/lib/groupdocs/signature/shared/entity_methods.rb +0 -1
- data/lib/groupdocs/signature/shared/field_methods.rb +13 -38
- data/lib/groupdocs/signature/shared/recipient_methods.rb +8 -0
- data/lib/groupdocs/signature/template.rb +3 -1
- data/lib/groupdocs/storage.rb +4 -1
- data/lib/groupdocs/storage/file.rb +18 -1
- data/lib/groupdocs/subscription.rb +8 -3
- data/lib/groupdocs/user.rb +8 -0
- data/lib/groupdocs/version.rb +1 -1
- data/spec/groupdocs/document/annotation_spec.rb +1 -14
- data/spec/groupdocs/subscription_spec.rb +2 -2
- metadata +86 -32
- checksums.yaml +0 -15
- data/examples/api-samples/public/docs/sample9.html +0 -200
- data/examples/api-samples/samples/sample1.rb +0 -25
- data/examples/api-samples/samples/sample2.rb +0 -29
- data/examples/api-samples/samples/sample3.rb +0 -33
- data/examples/api-samples/samples/sample4.rb +0 -51
- data/examples/api-samples/samples/sample6.rb +0 -49
- data/examples/api-samples/samples/sample7.rb +0 -42
- data/examples/api-samples/samples/sample8.rb +0 -61
- data/examples/api-samples/samples/sample9.rb +0 -48
- data/examples/api-samples/views/sample3.haml +0 -44
- data/examples/api-samples/views/sample6.haml +0 -49
- data/examples/api-samples/views/sample7.haml +0 -42
@@ -1,12 +1,12 @@
|
|
1
1
|
%h3{:style => 'text-align:center;'}
|
2
2
|
%a{:href => '/'} GroupDocs Ruby SDK Samples
|
3
|
-
\-
|
3
|
+
\- Sample09
|
4
4
|
.samplecontent{:style => 'padding:10px;'}
|
5
5
|
%i This sample will show how to generate an embedded Viewer URL for particular Document in the GroupDocs account using Ruby SDK
|
6
6
|
%br/
|
7
7
|
%br/
|
8
8
|
%span.documentation
|
9
|
-
%a{:href => '/docs/
|
9
|
+
%a{:href => '/docs/sample09.html'} Builtin documentation for this sample
|
10
10
|
%br/
|
11
11
|
%br/
|
12
12
|
%p
|
@@ -23,7 +23,15 @@
|
|
23
23
|
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
24
24
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
25
25
|
%p Enter data for request and press "Make request" button
|
26
|
-
%form{:action => '/
|
26
|
+
%form{:action => '/sample09', :enctype => 'multipart/form-data', :method => 'post'}
|
27
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
28
|
+
%br/
|
29
|
+
%input{:type=>'text', :id => 'clientId' , :name=>'clientId'}
|
30
|
+
%br/
|
31
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
32
|
+
%br/
|
33
|
+
%input{:type=>'text', :id => 'privateKey', :name=>'privateKey'}
|
34
|
+
%br/
|
27
35
|
%div.guid_radio
|
28
36
|
%input{:type=>'radio', :name=>'source', :value=>'guid', :checked=>'checked'} File ID (GUID)
|
29
37
|
%br/
|
@@ -46,7 +54,9 @@
|
|
46
54
|
%label{:for=>'url', :id=>'url'} Upload file from URL
|
47
55
|
%br/
|
48
56
|
%input{:type=>'text', :name=>'url'}
|
49
|
-
|
57
|
+
|
58
|
+
%input{:type=>'radio', :name=>'check', :value=>'viewer', :checked=>'checked'} Viewer
|
59
|
+
%input{:type=>'radio', :name=>'check', :value=>'annotation'} Annotation
|
50
60
|
%br/
|
51
61
|
%label{:for => 'private_key'} Width
|
52
62
|
%br/
|
@@ -56,6 +66,11 @@
|
|
56
66
|
%br/
|
57
67
|
%input{:type=>'text', :name=>'height'}
|
58
68
|
%br/
|
69
|
+
%label{:for => 'basePath'} Base Path
|
70
|
+
%span{:class => 'optional'} (Optional)
|
71
|
+
%br/
|
72
|
+
%input{:type=>'text', :name=>'basePath', :id => "basePath"}
|
73
|
+
%br/
|
59
74
|
%input{:type => 'submit', :value => 'Make Request'}/
|
60
75
|
%div{:style => 'padding:20px; border:1px solid black;'}
|
61
76
|
%iframe{:src => "#{(defined? v_url) ? v_url : ''}", :width=> "#{(defined? width) ? width : ''}", :height=>"#{(defined? height) ? height : ''}"}
|
@@ -12,9 +12,9 @@
|
|
12
12
|
%p
|
13
13
|
You entered:
|
14
14
|
%p
|
15
|
-
client_id = #{(defined?
|
15
|
+
client_id = #{(defined? clientId) ? clientId : ''}
|
16
16
|
%p
|
17
|
-
private_key = #{(defined?
|
17
|
+
private_key = #{(defined? privateKey) ? privateKey : ''}
|
18
18
|
%p
|
19
19
|
File GUID = #{(defined? guid) ? guid : ''}
|
20
20
|
%p
|
@@ -24,13 +24,13 @@
|
|
24
24
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
25
25
|
%p Enter data for request and press "Make request" button
|
26
26
|
%form{:action => '/sample10', :enctype => 'multipart/form-data', :method => 'post'}
|
27
|
-
%label{:for => '
|
27
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
28
28
|
%br/
|
29
|
-
%input{:type => 'text', :name => '
|
29
|
+
%input{:type => 'text', :id => 'clientId', :name => 'clientId', :value => "#{(defined? client_id) ? client_id : ''}"}
|
30
30
|
%br/
|
31
|
-
%label{:for => '
|
31
|
+
%label{:for => 'privateKey'} GroupDocs private_key
|
32
32
|
%br/
|
33
|
-
%input{:type => 'text', :name => '
|
33
|
+
%input{:type => 'text', :name => 'privateKey', :value => "#{(defined? private_key) ? private_key : ''}" }
|
34
34
|
%br/
|
35
35
|
%div.guid_radio
|
36
36
|
%input{:type=>'radio', :name=>'source', :value=>'guid', :checked=>'checked'} File ID (GUID)
|
@@ -60,14 +60,19 @@
|
|
60
60
|
%br/
|
61
61
|
%input{:type => 'text', :name => 'email', :value => "#{(defined? email) ? email : ''}"}
|
62
62
|
%br/
|
63
|
+
%label{:for => 'basePath'} Base Path
|
64
|
+
%span{:class => 'optional'} (Optional)
|
65
|
+
%br/
|
66
|
+
%input{:type=>'text', :name=>'basePath'}
|
67
|
+
%br/
|
63
68
|
%input{:type => 'submit', :value => 'Make Request'}/
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
69
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
70
|
+
%p
|
71
|
+
%h3
|
72
|
+
%span{:color => 'green'}
|
73
|
+
Document shared to user with e-mail
|
74
|
+
%h1 #{(defined? shared) ? shared : ''}
|
75
|
+
%br/
|
71
76
|
|
72
77
|
= partial :_others_samples
|
73
78
|
|
@@ -13,9 +13,9 @@
|
|
13
13
|
%p
|
14
14
|
You entered:
|
15
15
|
%p
|
16
|
-
UserId = #{(defined?
|
16
|
+
UserId = #{(defined? clientId) ? clientId : ''}
|
17
17
|
%p
|
18
|
-
PrivateKey = #{(defined?
|
18
|
+
PrivateKey = #{(defined? privatKey) ? privateKey : ''}
|
19
19
|
%p
|
20
20
|
FileId = #{(defined? fileId) ? fileId : ''}
|
21
21
|
%p
|
@@ -28,26 +28,33 @@
|
|
28
28
|
%font{:color => 'red'} #{(defined? err) ? err : ''}
|
29
29
|
%br/
|
30
30
|
|
31
|
+
|
32
|
+
|
31
33
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
32
34
|
%form{:action => '/sample11', :method => 'post'}
|
33
35
|
%input{:type => 'hidden', :name => 'annotationId', :value => (defined? annotationId) ? annotationId : ''}
|
34
36
|
%p Enter data for request and press "Make request" button
|
35
37
|
|
36
|
-
%label{:for => '
|
38
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
37
39
|
%br/
|
38
|
-
%input{:type=>'text', :name=>'
|
40
|
+
%input{:type=>'text', :name=>'clientId', :value => (defined? client_id) ? client_id: ''}
|
39
41
|
%br/
|
40
|
-
%label{:for => '
|
42
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
41
43
|
%br/
|
42
|
-
%input{:type=>'text', :name=>'
|
44
|
+
%input{:type=>'text', :name=>'privateKey', :value => (defined? private_key) ? private_key : ''}
|
43
45
|
%br/
|
44
|
-
%label{:for => '
|
46
|
+
%label{:for => 'fileId'} GroupDocs FileID
|
45
47
|
%br/
|
46
48
|
%input{:type=>'text', :name=>'fileId', :value => (defined? fileId) ? fileId : ''}
|
47
49
|
%br/
|
50
|
+
%label{:for => 'basePath'} Base Path
|
51
|
+
%span{:class => 'optional'} (Optional)
|
52
|
+
%br/
|
53
|
+
%input{:type=>'text', :name=>'basePath'}
|
54
|
+
%br/
|
48
55
|
Annotation Type
|
49
56
|
%br/
|
50
|
-
%select{:name => '
|
57
|
+
%select{:name => 'annotationType', :id => 'annotation_type'}
|
51
58
|
%option{:value => 'text'}Text
|
52
59
|
%option{:value => 'area'}Area
|
53
60
|
%option{:value => 'point', :selected => 'selected'}Point
|
@@ -58,50 +65,72 @@
|
|
58
65
|
%legend Parameters (all are required)
|
59
66
|
%div
|
60
67
|
%span Box X
|
61
|
-
%input{:type=>'text', :name=>'
|
68
|
+
%input{:type=>'text', :name=>'boxX', :placeholder => 'double'}
|
62
69
|
%div
|
63
70
|
%span Box Y
|
64
|
-
%input{:type=>'text', :name=>'
|
71
|
+
%input{:type=>'text', :name=>'boxY', :placeholder => 'double'}
|
65
72
|
|
66
73
|
%div{:style => 'display:none', :id => 'box-params'}
|
67
74
|
%div
|
68
75
|
%span Box Width
|
69
|
-
%input{:type=>'text', :name=>'
|
76
|
+
%input{:type=>'text', :name=>'boxWidth', :placeholder => 'double'}
|
70
77
|
%div
|
71
78
|
%span Box Height
|
72
|
-
%input{:type=>'text', :name=>'
|
79
|
+
%input{:type=>'text', :name=>'boxHeight', :placeholder => 'double'}
|
73
80
|
|
74
81
|
%div{:style => 'display:none', :id => 'annotation-position'}
|
75
82
|
%div
|
76
83
|
%span Annotation Position X
|
77
|
-
%input{:type=>'text', :name=>'
|
84
|
+
%input{:type=>'text', :name=>'annotationPositionX', :placeholder => 'double'}
|
78
85
|
%div
|
79
86
|
%span Annotation Position Y
|
80
|
-
%input{:type=>'text', :name=>'
|
87
|
+
%input{:type=>'text', :name=>'annotationPositionY', :placeholder => 'double'}
|
81
88
|
|
89
|
+
%div{:style => 'display:none', :id => 'range-position'}
|
90
|
+
%div
|
91
|
+
%span Range Position
|
92
|
+
%input{:type=>'text', :name=>'rangePosition', :placeholder => 'double'}
|
93
|
+
%div
|
94
|
+
%span Range Length
|
95
|
+
%input{:type=>'text', :name=>'rangeLength', :placeholder => 'double'}
|
82
96
|
%div
|
83
97
|
%span Text
|
84
98
|
%input{:type=>'text', :name=>'text', :placeholder => 'text'}
|
85
|
-
|
99
|
+
%br/
|
86
100
|
|
87
101
|
%input{:type => 'submit', :value => 'Make request'}/
|
88
102
|
|
103
|
+
%button{:name => 'delete-annotation', :id => 'delete', :value => "#{(defined? annotationId) ? annotationId : ''}", :style=>'display:none;'} Delete Annotation
|
104
|
+
|
105
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
106
|
+
%p Results:
|
107
|
+
%p #{(defined? iframe) ? iframe : ''}
|
108
|
+
%span{:color=>'green', :style => 'font-size:4'}#{(defined? message) ? message : ''}
|
89
109
|
= partial :_others_samples
|
90
110
|
|
111
|
+
%script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
|
91
112
|
:javascript
|
92
113
|
$(function() {
|
93
|
-
$('select[name="
|
114
|
+
$('select[name="annotationType"]').change(function() {
|
94
115
|
var obj = $(this);
|
95
116
|
|
96
117
|
if (obj.val() == "text") {
|
97
|
-
$('#text-params, #annotation-position, #box-params').show();
|
118
|
+
$('#text-params, #annotation-position, #box-params, #range-position').show();
|
98
119
|
}
|
99
120
|
else if (obj.val() == "area") {
|
100
121
|
$('#box-params').show();
|
101
|
-
$('#annotation-position').hide();
|
122
|
+
$('#annotation-position, #range-position').hide();
|
102
123
|
}
|
103
124
|
else if (obj.val() == "point") {
|
104
|
-
$('#annotation-position, #box-params').hide();
|
125
|
+
$('#annotation-position, #box-params, #range-position').hide();
|
105
126
|
}
|
106
127
|
});
|
128
|
+
if ($('input[name="annotationId"]').val() == '') {
|
129
|
+
$('button[name="delete-annotation"]').hide();
|
130
|
+
}
|
131
|
+
else {
|
132
|
+
$('button[name="delete-annotation"]').show();
|
133
|
+
};
|
134
|
+
|
107
135
|
});
|
136
|
+
|
@@ -12,7 +12,7 @@
|
|
12
12
|
%p
|
13
13
|
You entered:
|
14
14
|
%p
|
15
|
-
UserId = #{(defined?
|
15
|
+
UserId = #{(defined? clientId) ? clientId : ''}
|
16
16
|
%p
|
17
17
|
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
18
18
|
%p
|
@@ -23,36 +23,41 @@
|
|
23
23
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
24
24
|
%p Enter data for request and press "Make request" button
|
25
25
|
%form{:action => '/sample12', :method => 'post'}
|
26
|
-
%label{:for => '
|
26
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
27
27
|
%br/
|
28
|
-
%input{:type=>'text', :name=>'
|
28
|
+
%input{:type=>'text', :name=>'clientId'}
|
29
29
|
%br/
|
30
|
-
%label{:for => '
|
30
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
31
31
|
%br/
|
32
|
-
%input{:type=>'text', :name=>'
|
32
|
+
%input{:type=>'text', :name=>'privateKey'}
|
33
33
|
%br/
|
34
|
-
%label{:for => '
|
34
|
+
%label{:for => 'fileId'} GroupDocs FileID
|
35
35
|
%br/
|
36
36
|
%input{:type=>'text', :name=>'fileId'}
|
37
37
|
%br/
|
38
|
+
%label{:for => 'basePath'} Base Path
|
39
|
+
%span{:class => 'optional'} (Optional)
|
40
|
+
%br/
|
41
|
+
%input{:type=>'text', :name=>'basePath'}
|
42
|
+
%br/
|
38
43
|
%br/
|
39
44
|
%input{:type => 'submit', :value => 'Make request'}/
|
40
|
-
|
41
|
-
|
42
|
-
|
45
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
46
|
+
%p
|
47
|
+
Results:
|
43
48
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
49
|
+
- if defined? annotations.first
|
50
|
+
- annotations.each do |annotation|
|
51
|
+
%div
|
52
|
+
Access: #{annotation.access}
|
53
|
+
%br/
|
54
|
+
Type: #{annotation.type}
|
55
|
+
%br/
|
56
|
+
Replies:
|
57
|
+
%ul
|
58
|
+
- annotation.replies.each do |reply|
|
59
|
+
%li
|
60
|
+
#{reply.userName} : #{reply.text}
|
56
61
|
|
57
62
|
|
58
63
|
= partial :_others_samples
|
@@ -12,7 +12,7 @@
|
|
12
12
|
%p
|
13
13
|
You entered:
|
14
14
|
%p
|
15
|
-
UserId = #{(defined?
|
15
|
+
UserId = #{(defined? clientId) ? clientId : ''}
|
16
16
|
%p
|
17
17
|
PrivateKey = #{(defined? privateKey) ? privateKey : ''}
|
18
18
|
%p
|
@@ -25,15 +25,15 @@
|
|
25
25
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
26
26
|
%p Enter data for request and press "Make request" button
|
27
27
|
%form{:action => '/sample13', :method => 'post'}
|
28
|
-
%label{:for => '
|
28
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
29
29
|
%br/
|
30
|
-
%input{:type=>'text', :name=>'
|
30
|
+
%input{:type=>'text', :name=>'clientId'}
|
31
31
|
%br/
|
32
|
-
%label{:for => '
|
32
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
33
33
|
%br/
|
34
|
-
%input{:type=>'text', :name=>'
|
34
|
+
%input{:type=>'text', :name=>'privateKey'}
|
35
35
|
%br/
|
36
|
-
%label{:for => '
|
36
|
+
%label{:for => 'fileId'} GroupDocs FileID
|
37
37
|
%br/
|
38
38
|
%input{:type=>'text', :name=>'fileId'}
|
39
39
|
%br/
|
@@ -41,13 +41,19 @@
|
|
41
41
|
%br/
|
42
42
|
%input{:type=>'text', :name=>'email'}
|
43
43
|
%br/
|
44
|
+
%label{:for => 'basePath'} Base Path
|
45
|
+
%span{:class => 'optional'} (Optional)
|
46
|
+
%br/
|
47
|
+
%input{:type=>'text', :name=>'basePath'}
|
48
|
+
%br/
|
44
49
|
%br/
|
45
50
|
%input{:type => 'submit', :value => 'Make request'}/
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
51
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
52
|
+
%p
|
53
|
+
Result:
|
54
|
+
%p
|
55
|
+
New collaborations:
|
56
|
+
- if defined? result.first
|
57
|
+
%span{:style => "color: green"}#{result.first.primary_email}
|
52
58
|
|
53
59
|
= partial :_others_samples
|
@@ -23,27 +23,33 @@
|
|
23
23
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
24
24
|
%p Enter data for request and press "Make request" button
|
25
25
|
%form{:action => '/sample14', :method => 'post'}
|
26
|
-
%label{:for => '
|
26
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
27
27
|
%br/
|
28
|
-
%input{:type=>'text', :name=>'
|
28
|
+
%input{:type=>'text', :name=>'clientId'}
|
29
29
|
%br/
|
30
|
-
%label{:for => '
|
30
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
31
31
|
%br/
|
32
|
-
%input{:type=>'text', :name=>'
|
32
|
+
%input{:type=>'text', :name=>'privateKey'}
|
33
33
|
%br/
|
34
|
-
%label{:for => '
|
34
|
+
%label{:for => 'path'} GroupDocs Folder
|
35
35
|
%br/
|
36
|
-
%input{:type=>'text', :name=>'
|
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'}
|
37
42
|
%br/
|
38
43
|
%input{:type => 'submit', :value => 'Make request'}/
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
44
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
45
|
+
%p
|
46
|
+
List of shares for a folder:
|
47
|
+
%br/
|
48
|
+
%p
|
49
|
+
Shared users:
|
50
|
+
- if defined? shares.first
|
51
|
+
- shares.each do |user|
|
52
|
+
%span{:style => "color: green"} #{user.primary_email}
|
53
|
+
|
48
54
|
|
49
55
|
= partial :_others_samples
|
@@ -21,19 +21,26 @@
|
|
21
21
|
#requestForm{:style => 'padding:20px; border:1px solid black;'}
|
22
22
|
%p Enter data for request and press "Make request" button
|
23
23
|
%form{:action => '/sample15', :method => 'post'}
|
24
|
-
%label{:for => '
|
24
|
+
%label{:for => 'clientId'} GroupDocs ClientID
|
25
25
|
%br/
|
26
|
-
%input{:type=>'text', :name=>'
|
26
|
+
%input{:type=>'text', :name=>'clientId'}
|
27
27
|
%br/
|
28
|
-
%label{:for => '
|
28
|
+
%label{:for => 'privateKey'} GroupDocs PrivateKey
|
29
29
|
%br/
|
30
|
-
%input{:type=>'text', :name=>'
|
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'}
|
31
36
|
%br/
|
32
37
|
%input{:type => 'submit', :value => 'Make request'}/
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
+
%div{:style => 'padding:20px; border:1px solid black;'}
|
39
|
+
%p
|
40
|
+
Result:
|
41
|
+
%p
|
42
|
+
Total document's views:
|
43
|
+
- if defined? total
|
44
|
+
%span{:style => "color: green"} #{total}
|
38
45
|
|
39
46
|
= partial :_others_samples
|