groupdocs 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. data/CHANGELOG.md +34 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +3 -0
  4. data/examples/api-samples/public/docs/sample01.html +23 -23
  5. data/examples/api-samples/public/docs/sample02.html +27 -27
  6. data/examples/api-samples/public/docs/sample03.html +81 -69
  7. data/examples/api-samples/public/docs/sample04.html +29 -29
  8. data/examples/api-samples/public/docs/sample05.html +48 -48
  9. data/examples/api-samples/public/docs/sample06.html +47 -46
  10. data/examples/api-samples/public/docs/sample07.html +35 -35
  11. data/examples/api-samples/public/docs/sample08.html +45 -45
  12. data/examples/api-samples/public/docs/sample09.html +57 -57
  13. data/examples/api-samples/public/docs/sample10.html +41 -41
  14. data/examples/api-samples/public/docs/sample11.html +96 -118
  15. data/examples/api-samples/public/docs/sample12.html +29 -50
  16. data/examples/api-samples/public/docs/sample13.html +36 -44
  17. data/examples/api-samples/public/docs/sample14.html +29 -29
  18. data/examples/api-samples/public/docs/sample15.html +24 -24
  19. data/examples/api-samples/public/docs/sample16.html +32 -32
  20. data/examples/api-samples/public/docs/sample17.html +38 -38
  21. data/examples/api-samples/public/docs/sample18.html +105 -101
  22. data/examples/api-samples/public/docs/sample19.html +101 -101
  23. data/examples/api-samples/public/docs/sample20.html +42 -42
  24. data/examples/api-samples/public/docs/sample21.html +109 -109
  25. data/examples/api-samples/public/docs/sample22.html +56 -56
  26. data/examples/api-samples/public/docs/sample23.html +39 -39
  27. data/examples/api-samples/public/docs/sample24.html +36 -36
  28. data/examples/api-samples/public/docs/sample25.html +67 -67
  29. data/examples/api-samples/public/docs/sample26.html +23 -23
  30. data/examples/api-samples/public/docs/sample27.html +72 -72
  31. data/examples/api-samples/public/docs/sample28.html +46 -45
  32. data/examples/api-samples/public/docs/sample29.html +30 -30
  33. data/examples/api-samples/public/docs/sample30.html +30 -30
  34. data/examples/api-samples/public/docs/sample31.html +114 -114
  35. data/examples/api-samples/public/docs/sample32.html +96 -96
  36. data/examples/api-samples/public/docs/sample33.html +56 -56
  37. data/examples/api-samples/public/docs/sample34.html +27 -27
  38. data/examples/api-samples/public/docs/sample35.html +134 -135
  39. data/examples/api-samples/public/docs/sample36.html +32 -32
  40. data/examples/api-samples/public/docs/sample37.html +103 -103
  41. data/examples/api-samples/public/docs/sample38.html +76 -76
  42. data/examples/api-samples/public/docs/sample39.html +136 -136
  43. data/examples/api-samples/public/docs/sample40.html +104 -104
  44. data/examples/api-samples/public/docs/sample41.html +137 -137
  45. data/examples/api-samples/public/docs/sample42.html +61 -61
  46. data/examples/api-samples/public/docs/sample43.html +72 -72
  47. data/examples/api-samples/public/docs/sample44.html +751 -0
  48. data/examples/api-samples/public/docs/sample45.html +236 -0
  49. data/examples/api-samples/public/templates/merge_field3_doc.docx +0 -0
  50. data/examples/api-samples/samples/sample01.rb +2 -2
  51. data/examples/api-samples/samples/sample02.rb +2 -2
  52. data/examples/api-samples/samples/sample03.rb +2 -2
  53. data/examples/api-samples/samples/sample04.rb +2 -2
  54. data/examples/api-samples/samples/sample05.rb +2 -2
  55. data/examples/api-samples/samples/sample06.rb +2 -2
  56. data/examples/api-samples/samples/sample07.rb +2 -2
  57. data/examples/api-samples/samples/sample08.rb +2 -2
  58. data/examples/api-samples/samples/sample09.rb +2 -2
  59. data/examples/api-samples/samples/sample10.rb +2 -2
  60. data/examples/api-samples/samples/sample11.rb +2 -2
  61. data/examples/api-samples/samples/sample12.rb +2 -2
  62. data/examples/api-samples/samples/sample13.rb +2 -2
  63. data/examples/api-samples/samples/sample14.rb +2 -2
  64. data/examples/api-samples/samples/sample15.rb +2 -2
  65. data/examples/api-samples/samples/sample16.rb +2 -2
  66. data/examples/api-samples/samples/sample17.rb +2 -2
  67. data/examples/api-samples/samples/sample18.rb +2 -2
  68. data/examples/api-samples/samples/sample19.rb +2 -2
  69. data/examples/api-samples/samples/sample20.rb +2 -2
  70. data/examples/api-samples/samples/sample21.rb +2 -2
  71. data/examples/api-samples/samples/sample22.rb +2 -2
  72. data/examples/api-samples/samples/sample23.rb +2 -2
  73. data/examples/api-samples/samples/sample24.rb +2 -2
  74. data/examples/api-samples/samples/sample25.rb +2 -2
  75. data/examples/api-samples/samples/sample26.rb +2 -2
  76. data/examples/api-samples/samples/sample27.rb +2 -2
  77. data/examples/api-samples/samples/sample28.rb +2 -2
  78. data/examples/api-samples/samples/sample29.rb +2 -2
  79. data/examples/api-samples/samples/sample30.rb +2 -2
  80. data/examples/api-samples/samples/sample31.rb +2 -2
  81. data/examples/api-samples/samples/sample32.rb +2 -2
  82. data/examples/api-samples/samples/sample33.rb +2 -2
  83. data/examples/api-samples/samples/sample34.rb +2 -2
  84. data/examples/api-samples/samples/sample35.rb +4 -4
  85. data/examples/api-samples/samples/sample36.rb +2 -2
  86. data/examples/api-samples/samples/sample37.rb +2 -2
  87. data/examples/api-samples/samples/sample38.rb +2 -2
  88. data/examples/api-samples/samples/sample39.rb +2 -2
  89. data/examples/api-samples/samples/sample40.rb +2 -2
  90. data/examples/api-samples/samples/sample41.rb +2 -2
  91. data/examples/api-samples/samples/sample42.rb +2 -2
  92. data/examples/api-samples/samples/sample43.rb +2 -2
  93. data/examples/api-samples/samples/sample44.rb +188 -0
  94. data/examples/api-samples/samples/sample45.rb +74 -0
  95. data/examples/api-samples/views/_others_samples.haml +47 -43
  96. data/examples/api-samples/views/index.haml +55 -44
  97. data/examples/api-samples/views/layout.haml +1 -6
  98. data/examples/api-samples/views/sample01.haml +62 -57
  99. data/examples/api-samples/views/sample02.haml +52 -46
  100. data/examples/api-samples/views/sample03.haml +78 -73
  101. data/examples/api-samples/views/sample04.haml +51 -45
  102. data/examples/api-samples/views/sample05.haml +77 -71
  103. data/examples/api-samples/views/sample06.haml +58 -52
  104. data/examples/api-samples/views/sample07.haml +51 -45
  105. data/examples/api-samples/views/sample08.haml +90 -84
  106. data/examples/api-samples/views/sample09.haml +86 -80
  107. data/examples/api-samples/views/sample10.haml +83 -77
  108. data/examples/api-samples/views/sample11.haml +124 -120
  109. data/examples/api-samples/views/sample12.haml +65 -59
  110. data/examples/api-samples/views/sample13.haml +62 -56
  111. data/examples/api-samples/views/sample14.haml +57 -51
  112. data/examples/api-samples/views/sample15.haml +49 -43
  113. data/examples/api-samples/views/sample16.haml +49 -43
  114. data/examples/api-samples/views/sample17.haml +53 -47
  115. data/examples/api-samples/views/sample18.haml +140 -134
  116. data/examples/api-samples/views/sample19.haml +87 -81
  117. data/examples/api-samples/views/sample20.haml +53 -47
  118. data/examples/api-samples/views/sample21.haml +115 -111
  119. data/examples/api-samples/views/sample22.haml +94 -88
  120. data/examples/api-samples/views/sample23.haml +83 -78
  121. data/examples/api-samples/views/sample24.haml +54 -48
  122. data/examples/api-samples/views/sample25.haml +89 -83
  123. data/examples/api-samples/views/sample26.haml +62 -57
  124. data/examples/api-samples/views/sample27.haml +114 -109
  125. data/examples/api-samples/views/sample28.haml +55 -49
  126. data/examples/api-samples/views/sample29.haml +67 -69
  127. data/examples/api-samples/views/sample30.haml +54 -48
  128. data/examples/api-samples/views/sample31.haml +106 -100
  129. data/examples/api-samples/views/sample32.haml +90 -84
  130. data/examples/api-samples/views/sample33.haml +60 -54
  131. data/examples/api-samples/views/sample34.haml +51 -46
  132. data/examples/api-samples/views/sample35.haml +84 -78
  133. data/examples/api-samples/views/sample36.haml +63 -58
  134. data/examples/api-samples/views/sample37.haml +122 -116
  135. data/examples/api-samples/views/sample38.haml +104 -98
  136. data/examples/api-samples/views/sample39.haml +6 -2
  137. data/examples/api-samples/views/sample40.haml +94 -89
  138. data/examples/api-samples/views/sample41.haml +127 -123
  139. data/examples/api-samples/views/sample42.haml +60 -54
  140. data/examples/api-samples/views/sample43.haml +81 -77
  141. data/examples/api-samples/views/sample44.haml +85 -0
  142. data/examples/api-samples/views/sample45.haml +85 -0
  143. data/groupdocs.gemspec +2 -0
  144. data/lib/groupdocs/datasource/field.rb +9 -0
  145. data/lib/groupdocs/document.rb +66 -4
  146. data/lib/groupdocs/document/annotation.rb +11 -6
  147. data/lib/groupdocs/document/editor.rb +53 -0
  148. data/lib/groupdocs/document/field.rb +16 -0
  149. data/lib/groupdocs/document/style.rb +30 -0
  150. data/lib/groupdocs/job.rb +24 -0
  151. data/lib/groupdocs/questionnaire.rb +2 -0
  152. data/lib/groupdocs/questionnaire/collector.rb +52 -0
  153. data/lib/groupdocs/questionnaire/collector_style.rb +54 -0
  154. data/lib/groupdocs/questionnaire/question.rb +9 -0
  155. data/lib/groupdocs/questionnaire/style/base_font.rb +17 -0
  156. data/lib/groupdocs/questionnaire/style/question_title.rb +17 -0
  157. data/lib/groupdocs/questionnaire/style/title.rb +17 -0
  158. data/lib/groupdocs/signature/envelope.rb +43 -8
  159. data/lib/groupdocs/signature/form.rb +113 -12
  160. data/lib/groupdocs/signature/recipient.rb +38 -3
  161. data/lib/groupdocs/signature/shared/field_methods.rb +4 -2
  162. data/lib/groupdocs/signature/template.rb +20 -1
  163. data/lib/groupdocs/storage/file.rb +3 -2
  164. data/lib/groupdocs/user.rb +148 -0
  165. data/lib/groupdocs/version.rb +1 -1
  166. data/spec/groupdocs/api/helpers/access_rights_helper_spec.rb +5 -5
  167. data/spec/groupdocs/document/annotation_spec.rb +1 -1
  168. data/spec/groupdocs/signature/envelope_spec.rb +1 -1
  169. data/spec/groupdocs/user_spec.rb +4 -4
  170. data/spec/support/shared_examples/signature/shared/field_methods.rb +5 -4
  171. metadata +18 -3
@@ -0,0 +1,236 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <title>sample45.rb</title>
6
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8">
7
+ <meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
8
+ <link rel="stylesheet" media="all" href="docco.css" />
9
+ </head>
10
+ <body>
11
+ <div id="container">
12
+ <div id="background"></div>
13
+
14
+ <ul class="sections">
15
+
16
+ <li id="title">
17
+ <div class="annotation">
18
+ <h1>sample45.rb</h1>
19
+ </div>
20
+ </li>
21
+
22
+
23
+
24
+ <li id="section-1">
25
+ <div class="annotation">
26
+
27
+ <div class="pilwrap ">
28
+ <a class="pilcrow" href="#section-1">&#182;</a>
29
+ </div>
30
+ <p>GET request</p>
31
+
32
+ </div>
33
+
34
+ <div class="content"><div class='highlight'><pre>get <span class="hljs-string">'/sample45'</span> <span class="hljs-keyword">do</span>
35
+ haml <span class="hljs-symbol">:sample45</span>
36
+ <span class="hljs-keyword">end</span></pre></div></div>
37
+
38
+ </li>
39
+
40
+
41
+ <li id="section-2">
42
+ <div class="annotation">
43
+
44
+ <div class="pilwrap ">
45
+ <a class="pilcrow" href="#section-2">&#182;</a>
46
+ </div>
47
+ <p>POST request</p>
48
+
49
+ </div>
50
+
51
+ <div class="content"><div class='highlight'><pre>post <span class="hljs-string">'/sample45'</span> <span class="hljs-keyword">do</span></pre></div></div>
52
+
53
+ </li>
54
+
55
+
56
+ <li id="section-3">
57
+ <div class="annotation">
58
+
59
+ <div class="pilwrap ">
60
+ <a class="pilcrow" href="#section-3">&#182;</a>
61
+ </div>
62
+ <p>Set variables</p>
63
+
64
+ </div>
65
+
66
+ <div class="content"><div class='highlight'><pre> set <span class="hljs-symbol">:client_id</span>, params[<span class="hljs-symbol">:clientId</span>]
67
+ set <span class="hljs-symbol">:private_key</span>, params[<span class="hljs-symbol">:privateKey</span>]
68
+ set <span class="hljs-symbol">:folder_name</span>, params[<span class="hljs-symbol">:folderName</span>]
69
+ set <span class="hljs-symbol">:file_name</span>, params[<span class="hljs-symbol">:fileName</span>]
70
+ set <span class="hljs-symbol">:base_path</span>, params[<span class="hljs-symbol">:basePath</span>]
71
+
72
+ <span class="hljs-keyword">begin</span></pre></div></div>
73
+
74
+ </li>
75
+
76
+
77
+ <li id="section-4">
78
+ <div class="annotation">
79
+
80
+ <div class="pilwrap ">
81
+ <a class="pilcrow" href="#section-4">&#182;</a>
82
+ </div>
83
+ <p>Check required variables</p>
84
+
85
+ </div>
86
+
87
+ <div class="content"><div class='highlight'><pre> raise <span class="hljs-string">'Please enter all required parameters'</span> <span class="hljs-keyword">if</span> settings.client_id.empty? <span class="hljs-keyword">or</span> settings.private_key.empty? <span class="hljs-keyword">or</span> settings.file_name.empty?</pre></div></div>
88
+
89
+ </li>
90
+
91
+
92
+ <li id="section-5">
93
+ <div class="annotation">
94
+
95
+ <div class="pilwrap ">
96
+ <a class="pilcrow" href="#section-5">&#182;</a>
97
+ </div>
98
+ <p>Prepare base path</p>
99
+
100
+ </div>
101
+
102
+ <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> settings.base_path.empty?
103
+ base_path = <span class="hljs-string">'https://api.groupdocs.com'</span>
104
+ <span class="hljs-keyword">elsif</span> settings.base_path.match(<span class="hljs-string">'/v2.0'</span>)
105
+ base_path = settings.base_path.split(<span class="hljs-string">'/v2.0'</span>)[<span class="hljs-number">0</span>]
106
+ <span class="hljs-keyword">else</span>
107
+ base_path = settings.base_path
108
+ <span class="hljs-keyword">end</span></pre></div></div>
109
+
110
+ </li>
111
+
112
+
113
+ <li id="section-6">
114
+ <div class="annotation">
115
+
116
+ <div class="pilwrap ">
117
+ <a class="pilcrow" href="#section-6">&#182;</a>
118
+ </div>
119
+ <p>Configure your access to API server</p>
120
+
121
+ </div>
122
+
123
+ <div class="content"><div class='highlight'><pre> <span class="hljs-constant">GroupDocs</span>.configure <span class="hljs-keyword">do</span> |groupdocs|
124
+ groupdocs.client_id = settings.client_id
125
+ groupdocs.private_key = settings.private_key</pre></div></div>
126
+
127
+ </li>
128
+
129
+
130
+ <li id="section-7">
131
+ <div class="annotation">
132
+
133
+ <div class="pilwrap ">
134
+ <a class="pilcrow" href="#section-7">&#182;</a>
135
+ </div>
136
+ <p>Optionally specify API server and version</p>
137
+
138
+ </div>
139
+
140
+ <div class="content"><div class='highlight'><pre> groupdocs.api_server = base_path <span class="hljs-comment"># default is 'https://api.groupdocs.com'</span>
141
+ <span class="hljs-keyword">end</span></pre></div></div>
142
+
143
+ </li>
144
+
145
+
146
+ <li id="section-8">
147
+ <div class="annotation">
148
+
149
+ <div class="pilwrap ">
150
+ <a class="pilcrow" href="#section-8">&#182;</a>
151
+ </div>
152
+ <p>Make a request to API using client_id and private_key</p>
153
+
154
+ </div>
155
+
156
+ <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">if</span> settings.folder_name.empty? <span class="hljs-keyword">then</span> files_list = <span class="hljs-constant">GroupDocs::Storage::Folder</span>.list!(<span class="hljs-string">'/'</span>, {}) <span class="hljs-keyword">else</span> files_list = <span class="hljs-constant">GroupDocs::Storage::Folder</span>.list!(settings.folder_name + <span class="hljs-string">'/'</span>, {}) <span class="hljs-keyword">end</span></pre></div></div>
157
+
158
+ </li>
159
+
160
+
161
+ <li id="section-9">
162
+ <div class="annotation">
163
+
164
+ <div class="pilwrap ">
165
+ <a class="pilcrow" href="#section-9">&#182;</a>
166
+ </div>
167
+ <p>Construct list of files</p>
168
+
169
+ </div>
170
+
171
+ <div class="content"><div class='highlight'><pre> result = <span class="hljs-string">''</span>
172
+ files_list.each <span class="hljs-keyword">do</span> |element|
173
+ <span class="hljs-keyword">if</span> element.name == settings.file_name</pre></div></div>
174
+
175
+ </li>
176
+
177
+
178
+ <li id="section-10">
179
+ <div class="annotation">
180
+
181
+ <div class="pilwrap ">
182
+ <a class="pilcrow" href="#section-10">&#182;</a>
183
+ </div>
184
+ <p>Construct html result</p>
185
+
186
+ </div>
187
+
188
+ <div class="content"><div class='highlight'><pre> file = element.to_document.metadata!
189
+ result += <span class="hljs-string">"&lt;p&gt;Total document's info: &lt;/p&gt;"</span>
190
+ result += <span class="hljs-string">"&lt;table class='border'&gt;"</span>
191
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;&lt;font color='green'&gt;Parameter&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font color='green'&gt;Info&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"</span>
192
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;page_count&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.page_count}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
193
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;views_count&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.views_count}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
194
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;name&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.last_view.document.file.name}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
195
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;version&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.last_view.document.file.version}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
196
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;size&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.last_view.document.file.size}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
197
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;type&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.last_view.document.file.type}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
198
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;file_type_str&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.last_view.document.file.file_type}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
199
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;access&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.last_view.document.file.access}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
200
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;url&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.last_view.document.file.url}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
201
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;id&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.last_view.document.file.id}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
202
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;guid&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.last_view.document.file.guid}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
203
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;short_url&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.last_view.short_url}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
204
+ result += <span class="hljs-string">"&lt;tr&gt;&lt;td&gt;viewed_on&lt;/td&gt;&lt;td&gt;<span class="hljs-subst">#{file.last_view.viewed_on}</span>&lt;/td&gt;&lt;/tr&gt;"</span>
205
+ result += <span class="hljs-string">"&lt;tr bgcolor='#808080'&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;"</span>
206
+ result += <span class="hljs-string">'&lt;/table&gt;'</span>
207
+ <span class="hljs-keyword">end</span>
208
+ <span class="hljs-keyword">end</span>
209
+
210
+ <span class="hljs-keyword">if</span> result.empty? <span class="hljs-keyword">then</span> result = <span class="hljs-string">'File is not in this folder'</span> <span class="hljs-keyword">end</span>
211
+ <span class="hljs-keyword">rescue</span> <span class="hljs-constant">Exception</span> =&gt; e
212
+ err = e.message
213
+ <span class="hljs-keyword">end</span></pre></div></div>
214
+
215
+ </li>
216
+
217
+
218
+ <li id="section-11">
219
+ <div class="annotation">
220
+
221
+ <div class="pilwrap ">
222
+ <a class="pilcrow" href="#section-11">&#182;</a>
223
+ </div>
224
+ <p>Set variables for template</p>
225
+
226
+ </div>
227
+
228
+ <div class="content"><div class='highlight'><pre> haml <span class="hljs-symbol">:sample45</span>, <span class="hljs-symbol">:locals</span> =&gt; {<span class="hljs-symbol">:userId</span> =&gt; settings.client_id, <span class="hljs-symbol">:privateKey</span> =&gt; settings.private_key, <span class="hljs-symbol">:result</span> =&gt; result, <span class="hljs-symbol">:err</span> =&gt; err}
229
+ <span class="hljs-keyword">end</span></pre></div></div>
230
+
231
+ </li>
232
+
233
+ </ul>
234
+ </div>
235
+ </body>
236
+ </html>
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample01' do
2
+ get '/sample-1-how-to-login-to-groupdocs-using-the-api' do
3
3
  haml :sample01
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample01' do
7
+ post '/sample-1-how-to-login-to-groupdocs-using-the-api' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample02' do
2
+ get '/sample-2-how-to-list-files-within-groupdocs-storage-using-the-storage-api' do
3
3
  haml :sample02
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample02' do
7
+ post '/sample-2-how-to-list-files-within-groupdocs-storage-using-the-storage-api' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample03' do
2
+ get '/sample-3-how-to-upload-a-file-to-groupdocs-using-the-storage-api' do
3
3
  haml :sample03
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample03' do
7
+ post '/sample-3-how-to-upload-a-file-to-groupdocs-using-the-storage-api' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample04' do
2
+ get '/sample-4-how-to-download-a-file-from-groupdocs-storage-using-the-storage-api' do
3
3
  haml :sample04
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample04' do
7
+ post '/sample-4-how-to-download-a-file-from-groupdocs-storage-using-the-storage-api' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample05' do
2
+ get '/sample-5-how-to-copy-move-a-file-using-the-groupdocs-storage-api' do
3
3
  haml :sample05
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample05' do
7
+ post '/sample-5-how-to-copy-move-a-file-using-the-groupdocs-storage-api' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample06' do
2
+ get '/sample-6-how-to-add-a-signature-to-a-document-in-groupdocs-signature' do
3
3
  haml :sample06
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample06' do
7
+ post '/sample-6-how-to-add-a-signature-to-a-document-in-groupdocs-signature' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample07' do
2
+ get '/sample-7-how-to-create-a-list-of-thumbnails-for-a-document' do
3
3
  haml :sample07
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample07' do
7
+ post '/sample-7-how-to-create-a-list-of-thumbnails-for-a-document' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample08' do
2
+ get '/sample-8-how-to-return-a-url-representing-a-single-page-of-a-document' do
3
3
  haml :sample08
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample08' do
7
+ post '/sample-8-how-to-return-a-url-representing-a-single-page-of-a-document' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample09' do
2
+ get '/sample-9-how-to-generate-an-embedded-viewer-url-for-a-document' do
3
3
  haml :sample09
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample09' do
7
+ post '/sample-9-how-to-generate-an-embedded-viewer-url-for-a-document' do
8
8
  # Set variables
9
9
  set :file_id, params[:fileId]
10
10
  set :width, params[:width]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample10' do
2
+ get '/sample-10-how-to-share-a-document-to-other-users' do
3
3
  haml :sample10
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample10' do
7
+ post '/sample-10-how-to-share-a-document-to-other-users' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample11' do
2
+ get '/sample-11-how-to-programmatically-create-and-post-an-annotation-into-document' do
3
3
  haml :sample11
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample11' do
7
+ post '/sample-11-how-to-programmatically-create-and-post-an-annotation-into-document' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample12' do
2
+ get '/sample-12-how-to-list-all-annotations-from-document' do
3
3
  haml :sample12
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample12' do
7
+ post '/sample-12-how-to-list-all-annotations-from-document' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample13' do
2
+ get '/sample-13-how-to-add-collaborator-to-doc-with-annotations' do
3
3
  haml :sample13
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample13' do
7
+ post '/sample-13-how-to-add-collaborator-to-doc-with-annotations' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample14' do
2
+ get '/sample-14-how-to-check-the-list-of-shares-for-a-folder' do
3
3
  haml :sample14
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample14' do
7
+ post '/sample-14-how-to-check-the-list-of-shares-for-a-folder' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]
@@ -1,10 +1,10 @@
1
1
  #GET request
2
- get '/sample15' do
2
+ get '/sample-15-how-to-check-the-number-of-document\'s-views' do
3
3
  haml :sample15
4
4
  end
5
5
 
6
6
  #POST request
7
- post '/sample15' do
7
+ post '/sample-15-how-to-check-the-number-of-document\'s-views' do
8
8
  #Set variables
9
9
  set :client_id, params[:clientId]
10
10
  set :private_key, params[:privateKey]