groupdocs 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/CHANGELOG.md +6 -0
  2. data/examples/api-samples/README.md +1 -1
  3. data/examples/api-samples/public/css/style.css +2 -2
  4. data/examples/api-samples/public/docs/annotation-sample.html +57 -0
  5. data/examples/api-samples/public/docs/envelope-sample.html +32 -32
  6. data/examples/api-samples/public/docs/sample1.html +3 -3
  7. data/examples/api-samples/public/docs/sample10.html +25 -24
  8. data/examples/api-samples/public/docs/sample11.html +17 -17
  9. data/examples/api-samples/public/docs/sample12.html +4 -4
  10. data/examples/api-samples/public/docs/sample13.html +5 -5
  11. data/examples/api-samples/public/docs/sample14.html +5 -5
  12. data/examples/api-samples/public/docs/sample15.html +4 -4
  13. data/examples/api-samples/public/docs/sample16.html +3 -3
  14. data/examples/api-samples/public/docs/sample17.html +3 -3
  15. data/examples/api-samples/public/docs/sample18.html +129 -34
  16. data/examples/api-samples/public/docs/sample19.html +59 -0
  17. data/examples/api-samples/public/docs/sample2.html +5 -5
  18. data/examples/api-samples/public/docs/sample20.html +51 -0
  19. data/examples/api-samples/public/docs/sample21.html +66 -0
  20. data/examples/api-samples/public/docs/sample22.html +53 -0
  21. data/examples/api-samples/public/docs/sample3.html +4 -4
  22. data/examples/api-samples/public/docs/sample4.html +27 -16
  23. data/examples/api-samples/public/docs/sample5.html +29 -22
  24. data/examples/api-samples/public/docs/sample6.html +6 -6
  25. data/examples/api-samples/public/docs/sample7.html +8 -8
  26. data/examples/api-samples/public/docs/sample8.html +31 -23
  27. data/examples/api-samples/public/docs/sample9.html +26 -8
  28. data/examples/api-samples/public/templates/merge_feid_doc.docx +0 -0
  29. data/examples/api-samples/samples/annotation-sample.rb +22 -16
  30. data/examples/api-samples/samples/envelope-sample.rb +26 -25
  31. data/examples/api-samples/samples/sample1.rb +2 -2
  32. data/examples/api-samples/samples/sample10.rb +21 -20
  33. data/examples/api-samples/samples/sample11.rb +18 -18
  34. data/examples/api-samples/samples/sample12.rb +3 -3
  35. data/examples/api-samples/samples/sample13.rb +4 -4
  36. data/examples/api-samples/samples/sample14.rb +4 -4
  37. data/examples/api-samples/samples/sample15.rb +3 -3
  38. data/examples/api-samples/samples/sample16.rb +2 -2
  39. data/examples/api-samples/samples/sample17.rb +2 -2
  40. data/examples/api-samples/samples/sample18.rb +90 -106
  41. data/examples/api-samples/samples/sample19.rb +5 -5
  42. data/examples/api-samples/samples/sample2.rb +4 -4
  43. data/examples/api-samples/samples/sample20.rb +4 -4
  44. data/examples/api-samples/samples/sample21.rb +4 -4
  45. data/examples/api-samples/samples/sample22.rb +2 -2
  46. data/examples/api-samples/samples/sample23.rb +0 -0
  47. data/examples/api-samples/samples/sample24.rb +0 -0
  48. data/examples/api-samples/samples/sample25.rb +96 -0
  49. data/examples/api-samples/samples/sample3.rb +3 -3
  50. data/examples/api-samples/samples/sample4.rb +23 -12
  51. data/examples/api-samples/samples/sample5.rb +23 -16
  52. data/examples/api-samples/samples/sample6.rb +8 -8
  53. data/examples/api-samples/samples/sample7.rb +7 -7
  54. data/examples/api-samples/samples/sample8.rb +29 -21
  55. data/examples/api-samples/samples/sample9.rb +23 -5
  56. data/examples/api-samples/views/_others_samples.haml +57 -0
  57. data/examples/api-samples/views/annotation_sample.haml +30 -30
  58. data/examples/api-samples/views/envelope_sample.haml +31 -31
  59. data/examples/api-samples/views/index.haml +33 -25
  60. data/examples/api-samples/views/sample1.haml +22 -69
  61. data/examples/api-samples/views/sample10.haml +57 -73
  62. data/examples/api-samples/views/sample11.haml +31 -79
  63. data/examples/api-samples/views/sample12.haml +18 -66
  64. data/examples/api-samples/views/sample13.haml +21 -70
  65. data/examples/api-samples/views/sample14.haml +18 -67
  66. data/examples/api-samples/views/sample15.haml +15 -63
  67. data/examples/api-samples/views/sample16.haml +13 -61
  68. data/examples/api-samples/views/sample17.haml +19 -67
  69. data/examples/api-samples/views/sample18.haml +74 -159
  70. data/examples/api-samples/views/sample19.haml +25 -74
  71. data/examples/api-samples/views/sample2.haml +19 -66
  72. data/examples/api-samples/views/sample20.haml +19 -68
  73. data/examples/api-samples/views/sample21.haml +28 -76
  74. data/examples/api-samples/views/sample22.haml +29 -77
  75. data/examples/api-samples/views/sample23.haml +0 -0
  76. data/examples/api-samples/views/sample24.haml +0 -0
  77. data/examples/api-samples/views/sample25.haml +91 -0
  78. data/examples/api-samples/views/sample3.haml +20 -68
  79. data/examples/api-samples/views/sample4.haml +53 -68
  80. data/examples/api-samples/views/sample5.haml +54 -70
  81. data/examples/api-samples/views/sample6.haml +21 -69
  82. data/examples/api-samples/views/sample7.haml +19 -66
  83. data/examples/api-samples/views/sample8.haml +60 -75
  84. data/examples/api-samples/views/sample9.haml +54 -70
  85. data/examples/api-samples/web.rb +20 -0
  86. data/lib/groupdocs/api/request.rb +4 -2
  87. data/lib/groupdocs/version.rb +1 -1
  88. data/spec/groupdocs/api/request_spec.rb +10 -2
  89. metadata +18 -5
  90. data/examples/api-samples/app.rb +0 -15
@@ -1,98 +1,82 @@
1
- %h3{:style => "text-align:center;"}
2
- %a{:href => "/"} GroupDocs Ruby SDK Samples
1
+ %h3{:style => 'text-align:center;'}
2
+ %a{:href => '/'} GroupDocs Ruby SDK Samples
3
3
  \- Sample10
4
- .samplecontent{:style => "padding:10px;"}
4
+ .samplecontent{:style => 'padding:10px;'}
5
5
  %i This sample will show how to share particular document from your GroupDocs account to other GroupDocs users using Ruby SDK
6
6
  %br/
7
7
  %i You can find documentation for this sample
8
- %a{:href => "/docs/sample10.html"} here
8
+ %a{:href => '/docs/sample10.html'} here
9
9
  %br/
10
10
  %br/
11
11
  %p
12
12
  You entered:
13
13
  %p
14
- client_id = #{(defined? client_id) ? client_id : ""}
14
+ client_id = #{(defined? client_id) ? client_id : ''}
15
15
  %p
16
- private_key = #{(defined? private_key) ? private_key : ""}
16
+ private_key = #{(defined? private_key) ? private_key : ''}
17
17
  %p
18
- File GUID = #{(defined? guid) ? guid : ""}
18
+ File GUID = #{(defined? guid) ? guid : ''}
19
19
  %p
20
- Email = #{(defined? email) ? email : ""}
20
+ Email = #{(defined? email) ? email : ''}
21
21
  %p
22
- %font{:color => "red"} #{(defined? err) ? err : ""}
23
- #requestForm{:style => "padding:20px; border:1px solid black;"}
22
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
23
+ #requestForm{:style => 'padding:20px; border:1px solid black;'}
24
24
  %p Enter data for request and press "Make request" button
25
- %form{:action => "/sample10", :enctype => "multipart/form-data", :method => "post"}
26
- %label{:for => "client_id"} GroupDocs ClientID
25
+ %form{:action => '/sample10', :enctype => 'multipart/form-data', :method => 'post'}
26
+ %label{:for => 'client_id'} GroupDocs ClientID
27
27
  %br/
28
- <input type='text', name='client_id' value="#{(defined? client_id) ? client_id : ""}" />
28
+ %input{:type => 'text', :name => 'client_id', :value => "#{(defined? client_id) ? client_id : ''}"}
29
29
  %br/
30
- %label{:for => "private_key"} GroupDocs private_key
30
+ %label{:for => 'private_key'} GroupDocs private_key
31
31
  %br/
32
- <input type='text', name='private_key' value="#{(defined? private_key) ? private_key : ""}" />
32
+ %input{:type => 'text', :name => 'private_key', :value => "#{(defined? private_key) ? private_key : ''}" }
33
33
  %br/
34
- %label{:for => "file_Id"} GroupDocs File GUID
34
+ %div.guid_radio
35
+ %input{:type=>'radio', :name=>'source', :value=>'guid', :checked=>'checked'} File ID (GUID)
36
+ %br/
37
+ %input{:type=>'radio', :name=>'source', :value=>'local'}Upload local file
38
+ %br/
39
+ %input{:type=>'radio', :name=>'source', :value=>'url'} Upload file from URL
40
+ %br/
41
+
42
+ %div.guid_field
43
+ %label{:for=>'fileId', :id=>'guid'} File ID (GUID)
44
+ %br/
45
+ %input{:type=>'text', :name=>'fileId'}
46
+
47
+ %div.guid_field{:style=>'display:none;'}
48
+ %label{:for=>'file'} Upload local file
49
+ %br/
50
+ %input{:type=>'file', :name=>'file'}
51
+
52
+ %div.guid_field{:style=>'display:none;'}
53
+ %label{:for=>'url', :id=>'url'} Upload file from URL
54
+ %br/
55
+ %input{:type=>'text', :name=>'url'}
56
+
35
57
  %br/
36
- <input type='text', name='guid' value="#{(defined? guid) ? guid : ""}" />
58
+ %label{:for => 'email'} Your email
37
59
  %br/
38
- %label{:for => "email"} Your email
60
+ %input{:type => 'text', :name => 'email', :value => "#{(defined? email) ? email : ''}"}
39
61
  %br/
40
- <input type='text', name='email' value="#{(defined? email) ? email : ""}" />
41
- %br/
42
- %input{:type => "submit", :value => "Make Request"}/
43
- %div{:style => "padding:20px; border:1px solid black;"}
62
+ %input{:type => 'submit', :value => 'Make Request'}/
63
+ %div{:style => 'padding:20px; border:1px solid black;'}
44
64
  %p
45
65
  %h3
46
- %font{:color => "green"}
66
+ %font{:color => 'green'}
47
67
  Document shared to user with e-mail
48
- %h1 #{(defined? shared) ? shared : ""}
68
+ %h1 #{(defined? shared) ? shared : ''}
49
69
  %br/
50
- %div{:style => "padding:10px;"}
51
- Choose another one sample:
52
- %ul
53
- %li
54
- %a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
55
- %li
56
- %a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
57
- %li
58
- %a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
59
- %li
60
- %a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
61
- %li
62
- %a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
63
- %li
64
- %a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
65
- %li
66
- %a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
67
- %li
68
- %a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
69
- %li
70
- %a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
71
- %li
72
- %a{:href => "/sample10"} Sample10 - How to share a document to other users
73
- %li
74
- %a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
75
- %li
76
- %a{:href => "/sample12"}Sample12 - How to list all annotations from document
77
- %li
78
- %a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
79
- %li
80
- %a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
81
- %li
82
- %a{:href => "/sample15"}Sample15 - How to check the number of document's views
83
- %li
84
- %a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
85
- %li
86
- %a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
87
- %li
88
- %a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
89
- %li
90
- %a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
91
- %li
92
- %a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
93
- %li
94
- %a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
95
- %li
96
- %a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
97
- %li
98
- %a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
70
+
71
+ = partial :_others_samples
72
+
73
+ %script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
74
+ :javascript
75
+
76
+ $(function($){
77
+ $('.guid_radio input').change(function(){
78
+ var elementIndex = $(this).parent().children('input').index($(this));
79
+ $('.guid_field').hide();
80
+ $('.guid_field').eq(elementIndex).show();
81
+ });
82
+ });
@@ -1,52 +1,52 @@
1
1
  %script{ :src => 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js', :type => 'text/javascript', :charset => 'utf-8' }
2
- %h3{:style => "text-align:center;"}
3
- %a{:href => "/"} GroupDocs Ruby SDK Samples
2
+ %h3{:style => 'text-align:center;'}
3
+ %a{:href => '/'} GroupDocs Ruby SDK Samples
4
4
  \- Sample11
5
- .samplecontent{:style => "padding:10px;"}
5
+ .samplecontent{:style => 'padding:10px;'}
6
6
  %i This sample will show how programmatically create and post an annotation into document. How to delete the annotation using Ruby SDK
7
7
  %br/
8
8
  %br/
9
9
  %p
10
10
  You entered:
11
11
  %p
12
- UserId = #{(defined? userId) ? userId : ""}
12
+ UserId = #{(defined? userId) ? userId : ''}
13
13
  %p
14
- PrivateKey = #{(defined? privateKey) ? privateKey : ""}
14
+ PrivateKey = #{(defined? privateKey) ? privateKey : ''}
15
15
  %p
16
- FileId = #{(defined? fileId) ? fileId : ""}
16
+ FileId = #{(defined? fileId) ? fileId : ''}
17
17
  %p
18
- Annotation ID = #{(defined? annotationId) ? annotationId : ""}
18
+ Annotation ID = #{(defined? annotationId) ? annotationId : ''}
19
19
  %p
20
- Annotation Type = #{(defined? annotationType) ? annotationType : ""}
20
+ Annotation Type = #{(defined? annotationType) ? annotationType : ''}
21
21
  %p
22
- Annotation Text = #{(defined? annotationText) ? annotationText : ""}
22
+ Annotation Text = #{(defined? annotationText) ? annotationText : ''}
23
23
  %p
24
- %font{:color => "red"} #{(defined? err) ? err : ""}
24
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
25
25
  %br/
26
26
 
27
- #requestForm{:style => "padding:20px; border:1px solid black;"}
28
- %form{:action => "/sample11", :method => "post"}
29
- %input{:type => 'hidden', :name => 'annotationId', :value => (defined? annotationId) ? annotationId : ""}
27
+ #requestForm{:style => 'padding:20px; border:1px solid black;'}
28
+ %form{:action => '/sample11', :method => 'post'}
29
+ %input{:type => 'hidden', :name => 'annotationId', :value => (defined? annotationId) ? annotationId : ''}
30
30
  %p Enter data for request and press "Make request" button
31
31
 
32
- %label{:for => "client_id"} GroupDocs ClientID
32
+ %label{:for => 'client_id'} GroupDocs ClientID
33
33
  %br/
34
- %input{:type=>"text", :name=>"client_id", :value => (defined? userId) ? userId : ""}
34
+ %input{:type=>'text', :name=>'client_id', :value => (defined? userId) ? userId : ''}
35
35
  %br/
36
- %label{:for => "private_key"} GroupDocs PrivateKey
36
+ %label{:for => 'private_key'} GroupDocs PrivateKey
37
37
  %br/
38
- %input{:type=>"text", :name=>"private_key", :value => (defined? privateKey) ? privateKey : ""}
38
+ %input{:type=>'text', :name=>'private_key', :value => (defined? privateKey) ? privateKey : ''}
39
39
  %br/
40
- %label{:for => "file_id"} GroupDocs FileID
40
+ %label{:for => 'file_id'} GroupDocs FileID
41
41
  %br/
42
- %input{:type=>"text", :name=>"fileId", :value => (defined? fileId) ? fileId : ""}
42
+ %input{:type=>'text', :name=>'fileId', :value => (defined? fileId) ? fileId : ''}
43
43
  %br/
44
44
  Annotation Type
45
45
  %br/
46
46
  %select{:name => 'annotation_type', :id => 'annotation_type'}
47
47
  %option{:value => 'text'}Text
48
48
  %option{:value => 'area'}Area
49
- %option{:value => 'point', :selected => "selected"}Point
49
+ %option{:value => 'point', :selected => 'selected'}Point
50
50
  %br/
51
51
  %br/
52
52
 
@@ -54,83 +54,35 @@
54
54
  %legend Parameters (all are required)
55
55
  %div
56
56
  %span Box X
57
- %input{:type=>"text", :name=>"box_x", :placeholder => "double"}
57
+ %input{:type=>'text', :name=>'box_x', :placeholder => 'double'}
58
58
  %div
59
59
  %span Box Y
60
- %input{:type=>"text", :name=>"box_y", :placeholder => "double"}
60
+ %input{:type=>'text', :name=>'box_y', :placeholder => 'double'}
61
61
 
62
- %div{:style => "display:none", :id => "box-params"}
62
+ %div{:style => 'display:none', :id => 'box-params'}
63
63
  %div
64
64
  %span Box Width
65
- %input{:type=>"text", :name=>"box_width", :placeholder => "double"}
65
+ %input{:type=>'text', :name=>'box_width', :placeholder => 'double'}
66
66
  %div
67
67
  %span Box Height
68
- %input{:type=>"text", :name=>"box_height", :placeholder => "double"}
68
+ %input{:type=>'text', :name=>'box_height', :placeholder => 'double'}
69
69
 
70
- %div{:style => "display:none", :id => "annotation-position"}
70
+ %div{:style => 'display:none', :id => 'annotation-position'}
71
71
  %div
72
72
  %span Annotation Position X
73
- %input{:type=>"text", :name=>"annotationPosition_x", :placeholder => "double"}
73
+ %input{:type=>'text', :name=>'annotationPosition_x', :placeholder => 'double'}
74
74
  %div
75
75
  %span Annotation Position Y
76
- %input{:type=>"text", :name=>"annotationPosition_y", :placeholder => "double"}
76
+ %input{:type=>'text', :name=>'annotationPosition_y', :placeholder => 'double'}
77
77
 
78
78
  %div
79
79
  %span Text
80
- %input{:type=>"text", :name=>"text", :placeholder => "text"}
80
+ %input{:type=>'text', :name=>'text', :placeholder => 'text'}
81
81
 
82
82
 
83
- %input{:type => "submit", :value => "Make request"}/
83
+ %input{:type => 'submit', :value => 'Make request'}/
84
84
 
85
- %div{:style => "padding:10px;"}
86
- Choose another one sample:
87
- %ul
88
- %li
89
- %a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
90
- %li
91
- %a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
92
- %li
93
- %a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
94
- %li
95
- %a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
96
- %li
97
- %a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
98
- %li
99
- %a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
100
- %li
101
- %a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
102
- %li
103
- %a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
104
- %li
105
- %a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
106
- %li
107
- %a{:href => "/sample10"} Sample10 - How to share a document to other users
108
- %li
109
- %a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
110
- %li
111
- %a{:href => "/sample12"}Sample12 - How to list all annotations from document
112
- %li
113
- %a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
114
- %li
115
- %a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
116
- %li
117
- %a{:href => "/sample15"}Sample15 - How to check the number of document's views
118
- %li
119
- %a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
120
- %li
121
- %a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
122
- %li
123
- %a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
124
- %li
125
- %a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
126
- %li
127
- %a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
128
- %li
129
- %a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
130
- %li
131
- %a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
132
- %li
133
- %a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
85
+ = partial :_others_samples
134
86
 
135
87
  :javascript
136
88
  $(function() {
@@ -1,39 +1,39 @@
1
- %h3{:style => "text-align:center;"}
2
- %a{:href => "/"} GroupDocs Ruby SDK Samples
1
+ %h3{:style => 'text-align:center;'}
2
+ %a{:href => '/'} GroupDocs Ruby SDK Samples
3
3
  \- Sample12
4
- .samplecontent{:style => "padding:10px;"}
4
+ .samplecontent{:style => 'padding:10px;'}
5
5
  %i This sample will show how to to list all annotations from document using Ruby SDK
6
6
  %br/
7
7
  %br/
8
8
  %p
9
9
  You entered:
10
10
  %p
11
- UserId = #{(defined? userId) ? userId : ""}
11
+ UserId = #{(defined? userId) ? userId : ''}
12
12
  %p
13
- PrivateKey = #{(defined? privateKey) ? privateKey : ""}
13
+ PrivateKey = #{(defined? privateKey) ? privateKey : ''}
14
14
  %p
15
- FileId = #{(defined? fileId) ? fileId : ""}
15
+ FileId = #{(defined? fileId) ? fileId : ''}
16
16
  %p
17
- %font{:color => "red"} #{(defined? err) ? err : ""}
17
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
18
18
  %br/
19
- #requestForm{:style => "padding:20px; border:1px solid black;"}
19
+ #requestForm{:style => 'padding:20px; border:1px solid black;'}
20
20
  %p Enter data for request and press "Make request" button
21
- %form{:action => "/sample12", :method => "post"}
22
- %label{:for => "client_id"} GroupDocs ClientID
21
+ %form{:action => '/sample12', :method => 'post'}
22
+ %label{:for => 'client_id'} GroupDocs ClientID
23
23
  %br/
24
- %input{:type=>"text", :name=>"client_id"}
24
+ %input{:type=>'text', :name=>'client_id'}
25
25
  %br/
26
- %label{:for => "private_key"} GroupDocs PrivateKey
26
+ %label{:for => 'private_key'} GroupDocs PrivateKey
27
27
  %br/
28
- %input{:type=>"text", :name=>"private_key"}
28
+ %input{:type=>'text', :name=>'private_key'}
29
29
  %br/
30
- %label{:for => "file_id"} GroupDocs FileID
30
+ %label{:for => 'file_id'} GroupDocs FileID
31
31
  %br/
32
- %input{:type=>"text", :name=>"fileId"}
32
+ %input{:type=>'text', :name=>'fileId'}
33
33
  %br/
34
34
  %br/
35
- %input{:type => "submit", :value => "Make request"}/
36
- %div{:style => "padding:20px; border:1px solid black;"}
35
+ %input{:type => 'submit', :value => 'Make request'}/
36
+ %div{:style => 'padding:20px; border:1px solid black;'}
37
37
  %p
38
38
  Results:
39
39
 
@@ -51,52 +51,4 @@
51
51
  #{reply.userName} : #{reply.text}
52
52
 
53
53
 
54
- %div{:style => "padding:10px;"}
55
- Choose another one sample:
56
- %ul
57
- %li
58
- %a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
59
- %li
60
- %a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
61
- %li
62
- %a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
63
- %li
64
- %a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
65
- %li
66
- %a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
67
- %li
68
- %a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
69
- %li
70
- %a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
71
- %li
72
- %a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
73
- %li
74
- %a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
75
- %li
76
- %a{:href => "/sample10"} Sample10 - How to share a document to other users
77
- %li
78
- %a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
79
- %li
80
- %a{:href => "/sample12"}Sample12 - How to list all annotations from document
81
- %li
82
- %a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
83
- %li
84
- %a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
85
- %li
86
- %a{:href => "/sample15"}Sample15 - How to check the number of document's views
87
- %li
88
- %a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
89
- %li
90
- %a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
91
- %li
92
- %a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
93
- %li
94
- %a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
95
- %li
96
- %a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
97
- %li
98
- %a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
99
- %li
100
- %a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
101
- %li
102
- %a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
54
+ = partial :_others_samples
@@ -1,98 +1,49 @@
1
- %h3{:style => "text-align:center;"}
2
- %a{:href => "/"} GroupDocs Ruby SDK Samples
1
+ %h3{:style => 'text-align:center;'}
2
+ %a{:href => '/'} GroupDocs Ruby SDK Samples
3
3
  \- Sample13
4
- .samplecontent{:style => "padding:10px;"}
4
+ .samplecontent{:style => 'padding:10px;'}
5
5
  %i This sample will show how to add collaborator to doc with annotations using Ruby SDK
6
6
  %br/
7
7
  %br/
8
8
  %p
9
9
  You entered:
10
10
  %p
11
- UserId = #{(defined? userId) ? userId : ""}
11
+ UserId = #{(defined? userId) ? userId : ''}
12
12
  %p
13
- PrivateKey = #{(defined? privateKey) ? privateKey : ""}
13
+ PrivateKey = #{(defined? privateKey) ? privateKey : ''}
14
14
  %p
15
- FileId = #{(defined? fileId) ? fileId : ""}
15
+ FileId = #{(defined? fileId) ? fileId : ''}
16
16
  %p
17
- Email = #{(defined? email) ? email : ""}
17
+ Email = #{(defined? email) ? email : ''}
18
18
  %p
19
- %font{:color => "red"} #{(defined? err) ? err : ""}
19
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
20
20
  %br/
21
- #requestForm{:style => "padding:20px; border:1px solid black;"}
21
+ #requestForm{:style => 'padding:20px; border:1px solid black;'}
22
22
  %p Enter data for request and press "Make request" button
23
- %form{:action => "/sample13", :method => "post"}
24
- %label{:for => "client_id"} GroupDocs ClientID
23
+ %form{:action => '/sample13', :method => 'post'}
24
+ %label{:for => 'client_id'} GroupDocs ClientID
25
25
  %br/
26
- %input{:type=>"text", :name=>"client_id"}
26
+ %input{:type=>'text', :name=>'client_id'}
27
27
  %br/
28
- %label{:for => "private_key"} GroupDocs PrivateKey
28
+ %label{:for => 'private_key'} GroupDocs PrivateKey
29
29
  %br/
30
- %input{:type=>"text", :name=>"private_key"}
30
+ %input{:type=>'text', :name=>'private_key'}
31
31
  %br/
32
- %label{:for => "file_id"} GroupDocs FileID
32
+ %label{:for => 'file_id'} GroupDocs FileID
33
33
  %br/
34
- %input{:type=>"text", :name=>"fileId"}
34
+ %input{:type=>'text', :name=>'fileId'}
35
35
  %br/
36
- %label{:for => "email"} Collaborator Email
36
+ %label{:for => 'email'} Collaborator Email
37
37
  %br/
38
- %input{:type=>"text", :name=>"email"}
38
+ %input{:type=>'text', :name=>'email'}
39
39
  %br/
40
40
  %br/
41
- %input{:type => "submit", :value => "Make request"}/
42
- %div{:style => "padding:20px; border:1px solid black;"}
41
+ %input{:type => 'submit', :value => 'Make request'}/
42
+ %div{:style => 'padding:20px; border:1px solid black;'}
43
43
  %p
44
44
  Result:
45
45
 
46
46
  - if defined? result.first
47
47
  #{result.first.primary_email}
48
48
 
49
-
50
- %div{:style => "padding:10px;"}
51
- Choose another one sample:
52
- %ul
53
- %li
54
- %a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
55
- %li
56
- %a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
57
- %li
58
- %a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
59
- %li
60
- %a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
61
- %li
62
- %a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
63
- %li
64
- %a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
65
- %li
66
- %a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
67
- %li
68
- %a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
69
- %li
70
- %a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
71
- %li
72
- %a{:href => "/sample10"} Sample10 - How to share a document to other users
73
- %li
74
- %a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
75
- %li
76
- %a{:href => "/sample12"}Sample12 - How to list all annotations from document
77
- %li
78
- %a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
79
- %li
80
- %a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
81
- %li
82
- %a{:href => "/sample15"}Sample15 - How to check the number of document's views
83
- %li
84
- %a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
85
- %li
86
- %a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
87
- %li
88
- %a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
89
- %li
90
- %a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
91
- %li
92
- %a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
93
- %li
94
- %a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
95
- %li
96
- %a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
97
- %li
98
- %a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
49
+ = partial :_others_samples