groupdocs 1.5.0 → 1.5.1

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 (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,107 +1,59 @@
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
  \- Sample22
4
- .samplecontent{:style => "padding:10px;"}
4
+ .samplecontent{:style => 'padding:10px;'}
5
5
  %i This sample will show how to View Document pages as images 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
- First Name = #{(defined? first_name) ? first_name : ""}
19
+ First Name = #{(defined? first_name) ? first_name : ''}
20
20
  %p
21
- Last Name = #{(defined? last_name) ? last_name : ""}
21
+ Last Name = #{(defined? last_name) ? last_name : ''}
22
22
  %p
23
- %font{:color => "red"} #{(defined? err) ? err : ""}
23
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
24
24
  %br/
25
- #requestForm{:style => "padding:20px; border:1px solid black;"}
25
+ #requestForm{:style => 'padding:20px; border:1px solid black;'}
26
26
  %p Enter data for request and press "Make request" button
27
- %form{:action => "/sample22", :method => "post"}
28
- %label{:for => "client_id"} GroupDocs ClientID
27
+ %form{:action => '/sample22', :method => 'post'}
28
+ %label{:for => 'client_id'} GroupDocs ClientID
29
29
  %br/
30
- %input{:type=>"text", :name=>"client_id"}
30
+ %input{:type=>'text', :name=>'client_id'}
31
31
  %br/
32
- %label{:for => "private_key"} GroupDocs PrivateKey
32
+ %label{:for => 'private_key'} GroupDocs PrivateKey
33
33
  %br/
34
- %input{:type=>"text", :name=>"private_key"}
34
+ %input{:type=>'text', :name=>'private_key'}
35
35
  %br/
36
- %label{:for => "file_id"} GroupDocs FileID
36
+ %label{:for => 'file_id'} GroupDocs FileID
37
37
  %br/
38
- %input{:type=>"text", :name=>"fileId"}
38
+ %input{:type=>'text', :name=>'fileId'}
39
39
  %br/
40
- %label{:for => "email"} E-mail
40
+ %label{:for => 'email'} E-mail
41
41
  %br/
42
- %input{:type=>"text", :name=>"email"}
42
+ %input{:type=>'text', :name=>'email'}
43
43
  %br/
44
- %label{:for => "first_name"} First name
44
+ %label{:for => 'first_name'} First name
45
45
  %br/
46
- %input{:type=>"text", :name=>"first_name"}
46
+ %input{:type=>'text', :name=>'first_name'}
47
47
  %br/
48
- %label{:for => "last_name"} Last name
48
+ %label{:for => 'last_name'} Last name
49
49
  %br/
50
- %input{:type=>"text", :name=>"last_name"}
50
+ %input{:type=>'text', :name=>'last_name'}
51
51
  %br/
52
- %input{:type => "submit", :value => "Make request"}/
53
- %div{:style => "padding:20px; border:1px solid black;"}
52
+ %input{:type => 'submit', :value => 'Make request'}/
53
+ %div{:style => 'padding:20px; border:1px solid black;'}
54
54
  %p
55
55
  Results:
56
- #{(defined? message) ? message : ""}
57
- #{(defined? iframe) ? iframe : ""}
56
+ #{(defined? message) ? message : ''}
57
+ #{(defined? iframe) ? iframe : ''}
58
58
 
59
- %div{:style => "padding:10px;"}
60
- Choose another one sample:
61
- %ul
62
- %li
63
- %a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
64
- %li
65
- %a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
66
- %li
67
- %a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
68
- %li
69
- %a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
70
- %li
71
- %a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
72
- %li
73
- %a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
74
- %li
75
- %a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
76
- %li
77
- %a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
78
- %li
79
- %a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
80
- %li
81
- %a{:href => "/sample10"} Sample10 - How to share a document to other users
82
- %li
83
- %a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
84
- %li
85
- %a{:href => "/sample12"}Sample12 - How to list all annotations from document
86
- %li
87
- %a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
88
- %li
89
- %a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
90
- %li
91
- %a{:href => "/sample15"}Sample15 - How to check the number of document's views
92
- %li
93
- %a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
94
- %li
95
- %a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
96
- %li
97
- %a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
98
- %li
99
- %a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
100
- %li
101
- %a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
102
- %li
103
- %a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
104
- %li
105
- %a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
106
- %li
107
- %a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
59
+ = partial :_others_samples
@@ -0,0 +1,91 @@
1
+ %h3{:style => 'text-align:center;'}
2
+ %a{:href => '/'} GroupDocs Ruby SDK Samples
3
+ \- Sample25
4
+ .samplecontent{:style => 'padding:10px;'}
5
+ %span.description
6
+ %i
7
+ This sample will show how to use
8
+ %b Merge
9
+ and
10
+ %b Convert
11
+ method to fill the fields in Docx and Convert it to PDF by using GroupDocs Ruby SDK.
12
+ %br/
13
+ %br/
14
+ /
15
+ %span.documentation
16
+ %a{:href => '/docs/sample25.html'} Builtin documentation for this sample
17
+
18
+ %br/
19
+ %br/
20
+ %p
21
+ You entered:
22
+ %p
23
+ ClientID = #{(defined? userId) ? userId : ''}
24
+ %p
25
+ PrivateKey = #{(defined? privateKey) ? privateKey : ''}
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 => '/sample25', :enctype => 'multipart/form-data', :method => 'post'}
32
+ %label{:for => 'client_id'} GroupDocs ClientID
33
+ %br/
34
+ %input{:type=>'text', :name=>'client_id'}
35
+ %br/
36
+ %label{:for => 'private_key'} GroupDocs PrivateKey
37
+ %br/
38
+ %input{:type=>'text', :name=>'private_key'}
39
+ %br/
40
+
41
+
42
+ %div.guid_radio
43
+ %input{:type=>'radio', :name=>'source', :value=>'guid', :checked=>'checked'} File ID (GUID)
44
+ %br/
45
+ %input{:type=>'radio', :name=>'source', :value=>'local'}Upload local file
46
+ %br/
47
+ %input{:type=>'radio', :name=>'source', :value=>'url'} Upload file from URL
48
+ %br/
49
+
50
+ %div.guid_field
51
+ %label{:for=>'fileId', :id=>'guid'} File ID (GUID)
52
+ %br/
53
+ %input{:type=>'text', :name=>'fileId'}
54
+
55
+ %div.guid_field{:style=>'display:none;'}
56
+ %label{:for=>'file'} Upload local file
57
+ %br/
58
+ %input{:type=>'file', :name=>'file'}
59
+
60
+ %div.guid_field{:style=>'display:none;'}
61
+ %label{:for=>'url', :id=>'url'} Upload file from URL
62
+ %br/
63
+ %input{:type=>'text', :name=>'url'}
64
+
65
+ %br/
66
+ %br/
67
+
68
+ %input{:type => 'submit', :value => 'Make request'}
69
+
70
+ %br/
71
+ %a{:href=>'/templates/merge_feid_doc.docx'} Download sample Docx file
72
+ %br/
73
+ %br/
74
+ %div{:style => 'padding:20px; border:1px solid black;'}
75
+ %p
76
+ Results:
77
+ #{(defined? file_name) ? "<a href='/downloads/#{file_name}'>Download converted file</a>" : ''}
78
+ #{(defined? iframe) ? iframe : ''}
79
+
80
+ = partial :_others_samples
81
+
82
+ %script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
83
+ :javascript
84
+ $(function($){
85
+
86
+ $('.guid_radio input').change(function(){
87
+ var elementIndex = $(this).parent().children('input').index($(this));
88
+ $('.guid_field').hide();
89
+ $('.guid_field').eq(elementIndex).show();
90
+ });
91
+ });
@@ -1,91 +1,43 @@
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
  \- Sample3
4
- .samplecontent{:style => "padding:10px;"}
4
+ .samplecontent{:style => 'padding:10px;'}
5
5
  %i This sample will show how to use StorageApi to upload test file to GroupDocs account using Ruby SDK
6
6
  %br/
7
7
  %i You can find documentation for this sample
8
- %a{:href => "/docs/sample3.html"} here
8
+ %a{:href => '/docs/sample3.html'} here
9
9
  %br/
10
10
  %br/
11
11
  %p
12
12
  You entered:
13
13
  %p
14
- UserId = #{(defined? userId) ? userId : ""}
14
+ UserId = #{(defined? userId) ? userId : ''}
15
15
  %p
16
- PrivateKey = #{(defined? privateKey) ? privateKey : ""}
16
+ PrivateKey = #{(defined? privateKey) ? privateKey : ''}
17
17
  %p
18
- %font{:color => "red"} #{(defined? err) ? err : ""}
18
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
19
19
  %br/
20
- #requestForm{:style => "padding:20px; border:1px solid black;"}
20
+ #requestForm{:style => 'padding:20px; border:1px solid black;'}
21
21
  %p Enter data for request and press "Make request" button
22
- %form{:action => "/sample3", :enctype => "multipart/form-data", :method => "post"}
23
- %label{:for => "client_id"} GroupDocs ClientID
22
+ %form{:action => '/sample3', :enctype => 'multipart/form-data', :method => 'post'}
23
+ %label{:for => 'client_id'} GroupDocs ClientID
24
24
  %br/
25
- %input{:type=>"text", :name=>"client_id"}
25
+ %input{:type=>'text', :name=>'client_id'}
26
26
  %br/
27
- %label{:for => "private_key"} GroupDocs PrivateKey
27
+ %label{:for => 'private_key'} GroupDocs PrivateKey
28
28
  %br/
29
- %input{:type=>"text", :name=>"private_key"}
29
+ %input{:type=>'text', :name=>'private_key'}
30
30
  %br/
31
- %label{:for => "file"} File
31
+ %label{:for => 'file'} File
32
32
  %br/
33
- %input{:name => "file", :type => "file"}/
33
+ %input{:name => 'file', :type => 'file'}/
34
34
  %br/
35
35
  %br/
36
- %input{:type => "submit", :value => "Upload"}/
37
- %div{:style => "padding:20px; border:1px solid black;"}
36
+ %input{:type => 'submit', :value => 'Upload'}/
37
+ %div{:style => 'padding:20px; border:1px solid black;'}
38
38
  %p
39
39
  Results:
40
- #{(defined? massage) ? massage : ""}
41
- #{(defined? iframe) ? iframe : ""}
40
+ #{(defined? massage) ? massage : ''}
41
+ #{(defined? iframe) ? iframe : ''}
42
42
 
43
- %div{:style => "padding:10px;"}
44
- Choose another one sample:
45
- %ul
46
- %li
47
- %a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
48
- %li
49
- %a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
50
- %li
51
- %a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
52
- %li
53
- %a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
54
- %li
55
- %a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
56
- %li
57
- %a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
58
- %li
59
- %a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
60
- %li
61
- %a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
62
- %li
63
- %a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
64
- %li
65
- %a{:href => "/sample10"} Sample10 - How to share a document to other users
66
- %li
67
- %a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
68
- %li
69
- %a{:href => "/sample12"}Sample12 - How to list all annotations from document
70
- %li
71
- %a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
72
- %li
73
- %a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
74
- %li
75
- %a{:href => "/sample15"}Sample15 - How to check the number of document's views
76
- %li
77
- %a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
78
- %li
79
- %a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
80
- %li
81
- %a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
82
- %li
83
- %a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
84
- %li
85
- %a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
86
- %li
87
- %a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
88
- %li
89
- %a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
90
- %li
91
- %a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
43
+ = partial :_others_samples
@@ -1,87 +1,72 @@
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
  \- Sample4
4
- .samplecontent{:style => "padding:10px;"}
4
+ .samplecontent{:style => 'padding:10px;'}
5
5
  %i This sample will show how to download particular file from GroupDocs account using Ruby SDK
6
6
  %br/
7
7
  %i You can find documentation for this sample
8
- %a{:href => "/docs/sample4.html"} here
8
+ %a{:href => '/docs/sample4.html'} here
9
9
  %br/
10
10
  %br/
11
11
  %p
12
12
  You entered:
13
13
  %p
14
- UserId = #{(defined? userId) ? userId : ""}
14
+ UserId = #{(defined? userId) ? userId : ''}
15
15
  %p
16
- PrivateKey = #{(defined? privateKey) ? privateKey : ""}
16
+ PrivateKey = #{(defined? privateKey) ? privateKey : ''}
17
17
  %p
18
- FileId = #{(defined? file_id) ? file_id : ""}
18
+ FileId = #{(defined? file_id) ? file_id : ''}
19
19
  %p
20
- %font{:color => "red"} #{(defined? err) ? err : ""}
21
- #requestForm{:style => "padding:20px; border:1px solid black;"}
20
+ %font{:color => 'red'} #{(defined? err) ? err : ''}
21
+ #requestForm{:style => 'padding:20px; border:1px solid black;'}
22
22
  %p Enter data for request and press "Download" button
23
- %form{:action => "/sample4", :enctype => "multipart/form-data", :method => "post"}
24
- %label{:for => "client_id"} GroupDocs ClientID
23
+ %form{:action => '/sample4', :enctype => 'multipart/form-data', :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 => "private_key"} FileID
32
+
33
+ %div.guid_radio
34
+ %input{:type=>'radio', :name=>'source', :value=>'guid', :checked=>'checked'} File ID (GUID)
35
+ %br/
36
+ %input{:type=>'radio', :name=>'source', :value=>'local'}Upload local file
37
+ %br/
38
+ %input{:type=>'radio', :name=>'source', :value=>'url'} Upload file from URL
39
+ %br/
40
+
41
+ %div.guid_field
42
+ %label{:for=>'fileId', :id=>'guid'} File ID (GUID)
43
+ %br/
44
+ %input{:type=>'text', :name=>'fileId'}
45
+
46
+ %div.guid_field{:style=>'display:none;'}
47
+ %label{:for=>'file'} Upload local file
48
+ %br/
49
+ %input{:type=>'file', :name=>'file'}
50
+
51
+ %div.guid_field{:style=>'display:none;'}
52
+ %label{:for=>'url', :id=>'url'} Upload file from URL
53
+ %br/
54
+ %input{:type=>'text', :name=>'url'}
55
+
33
56
  %br/
34
- %input{:type=>"text", :name=>"file_id"}
35
- %br/
36
- %input{:type => "submit", :value => "Download"}/
37
- #{(defined? massage) ? massage : ""}
57
+ %input{:type => 'submit', :value => 'Download'}/
58
+ #{(defined? massage) ? massage : ''}
38
59
  %br/
39
- %div{:style => "padding:10px;"}
40
- Choose another one sample:
41
- %ul
42
- %li
43
- %a{:href => "/sample1"} Sample1 - How to login to GroupDocs using the API
44
- %li
45
- %a{:href => "/sample2"} Sample2 - How to list files within GroupDocs Storage using the Storage API
46
- %li
47
- %a{:href => "/sample3"} Sample3 - How to upload a file to GroupDocs using the Storage API
48
- %li
49
- %a{:href => "/sample4"} Sample4 - How to download a file from GroupDocs Storage using the Storage API
50
- %li
51
- %a{:href => "/sample5"} Sample5 - How to copy / move a file using the GroupDocs Storage API
52
- %li
53
- %a{:href => "/sample6"} Sample6 - How to add a Signature to a document in GroupDocs Signature
54
- %li
55
- %a{:href => "/sample7"} Sample7 - How to create a list of thumbnails for a document
56
- %li
57
- %a{:href => "/sample8"} Sample8 - How to return a URL representing a single page of a Document
58
- %li
59
- %a{:href => "/sample9"} Sample9 - How to generate an embedded Viewer URL for a Document
60
- %li
61
- %a{:href => "/sample10"} Sample10 - How to share a document to other users
62
- %li
63
- %a{:href => "/sample11"}Sample11 - How programmatically create and post an annotation into document. How to delete the annotation
64
- %li
65
- %a{:href => "/sample12"}Sample12 - How to list all annotations from document
66
- %li
67
- %a{:href => "/sample13"}Sample13 - How to add collaborator to doc with annotations
68
- %li
69
- %a{:href => "/sample14"}Sample14 - How to check the list of shares for a folder
70
- %li
71
- %a{:href => "/sample15"}Sample15 - How to check the number of document's views
72
- %li
73
- %a{:href => "/sample16"}Sample16 - How to insert Assembly questionary into webpage
74
- %li
75
- %a{:href => "/sample17"}Sample17 - How to upload a file into the storage and compress it into zip archive
76
- %li
77
- %a{:href => "/sample18"}Sample18 - How to convert Doc to Docx, Docx to Doc, Docx to PDF, PPT to PDF
78
- %li
79
- %a{:href => "/sample19"}Sample19 - How to Compare documents using Ruby SDK
80
- %li
81
- %a{:href => "/sample20"}Sample20 - How to Get Compare Change list for document using Ruby SDK
82
- %li
83
- %a{:href => "/sample21"}Sample21 - How to Create and Upload Envelop to GroupDocs account using Ruby SDK
84
- %li
85
- %a{:href => "/sample22"}Sample22 - How create or update user and add him to collaborators using PHP SDK
86
- %li
87
- %a{:href => "/envelope-sample"}Envelope sample - How to use envelope and signature API
60
+
61
+ = partial :_others_samples
62
+
63
+ %script{:src=>'//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'}
64
+ :javascript
65
+
66
+ $(function($){
67
+ $('.guid_radio input').change(function(){
68
+ var elementIndex = $(this).parent().children('input').index($(this));
69
+ $('.guid_field').hide();
70
+ $('.guid_field').eq(elementIndex).show();
71
+ });
72
+ });