docuseal 1.0.3 → 1.0.4
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.
- checksums.yaml +4 -4
- data/README.md +120 -56
- data/lib/docuseal/api.rb +8 -0
- data/lib/docuseal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ca5c0906e609ef75ff0f131f22da63bb906bb46fc66081f221913fa4bef43d4d
|
|
4
|
+
data.tar.gz: 7c7bc5a38feb904100cbdd1178ddf96c20256d7f62fa181d53b9372cbceef6cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c5e32bccefb205560e84c33670fad28eb03cc7fe3683158dd292ca4516bdbadd0b55ded527d9edb40af204ebcf32a076aacfc5a0f97464b56ebb2a1d26d765d
|
|
7
|
+
data.tar.gz: 7c7d65d7f00d11c4b9e8950d744296b98763699b060cada99e45bef76f2f485cd91473f0f5c473934e7bf979c53bb5ae6dfb6b836f6ef09156b4f495fc20fbf8
|
data/README.md
CHANGED
|
@@ -119,17 +119,81 @@ Docuseal.create_submission({
|
|
|
119
119
|
})
|
|
120
120
|
```
|
|
121
121
|
|
|
122
|
-
###
|
|
122
|
+
### create_submission_from_pdf(data)
|
|
123
123
|
|
|
124
|
-
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-
|
|
124
|
+
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-submission-from-pdf)
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
Provides the functionality to create one-off submission request from a PDF file. Use `{{Field Name;role=Signer1;type=date}}` text tags to define fillable fields in the document. See [https://www.docuseal.com/examples/fieldtags.pdf](https://www.docuseal.com/examples/fieldtags.pdf) for more text tag formats. Or specify the exact pixel coordinates of the document fields using `fields` param.
|
|
127
|
+
|
|
128
|
+
**Related Guides:**<br>
|
|
129
|
+
[Use embedded text field tags to create a fillable form](https://www.docuseal.com/guides/use-embedded-text-field-tags-in-the-pdf-to-create-a-fillable-form)
|
|
127
130
|
|
|
128
131
|
|
|
129
132
|
```ruby
|
|
130
|
-
Docuseal.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
+
Docuseal.create_submission_from_pdf({
|
|
134
|
+
name: "Test PDF",
|
|
135
|
+
documents: [
|
|
136
|
+
{
|
|
137
|
+
name: "string",
|
|
138
|
+
file: "base64",
|
|
139
|
+
fields: [
|
|
140
|
+
{
|
|
141
|
+
name: "string",
|
|
142
|
+
areas: [
|
|
143
|
+
{
|
|
144
|
+
x: 0,
|
|
145
|
+
y: 0,
|
|
146
|
+
w: 0,
|
|
147
|
+
h: 0,
|
|
148
|
+
page: 1
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
submitters: [
|
|
156
|
+
{
|
|
157
|
+
role: "First Party",
|
|
158
|
+
email: "john.doe@example.com"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
})
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### create_submission_from_html(data)
|
|
165
|
+
|
|
166
|
+
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-submission-from-html)
|
|
167
|
+
|
|
168
|
+
This API endpoint allows you to create a one-off submission request document using the provided HTML content, with special field tags rendered as a fillable and signable form.
|
|
169
|
+
|
|
170
|
+
**Related Guides:**<br>
|
|
171
|
+
[Create PDF document fillable form with HTML](https://www.docuseal.com/guides/create-pdf-document-fillable-form-with-html-api)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
```ruby
|
|
175
|
+
Docuseal.create_submission_from_html({
|
|
176
|
+
name: "Test PDF",
|
|
177
|
+
documents: [
|
|
178
|
+
{
|
|
179
|
+
name: "Test Document",
|
|
180
|
+
html: "<p>Lorem Ipsum is simply dummy text of the
|
|
181
|
+
<text-field
|
|
182
|
+
name=\"Industry\"
|
|
183
|
+
role=\"First Party\"
|
|
184
|
+
required=\"false\"
|
|
185
|
+
style=\"width: 80px; height: 16px; display: inline-block; margin-bottom: -4px\">
|
|
186
|
+
</text-field>
|
|
187
|
+
and typesetting industry</p>
|
|
188
|
+
"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
submitters: [
|
|
192
|
+
{
|
|
193
|
+
role: "First Party",
|
|
194
|
+
email: "john.doe@example.com"
|
|
195
|
+
}
|
|
196
|
+
]
|
|
133
197
|
})
|
|
134
198
|
```
|
|
135
199
|
|
|
@@ -159,7 +223,7 @@ Docuseal.list_submitters(limit: 10)
|
|
|
159
223
|
|
|
160
224
|
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#get-a-submitter)
|
|
161
225
|
|
|
162
|
-
Provides
|
|
226
|
+
Provides functionality to retrieve information about a submitter, along with the submitter documents and field values.
|
|
163
227
|
|
|
164
228
|
|
|
165
229
|
```ruby
|
|
@@ -210,6 +274,42 @@ Provides the functionality to retrieve information about a document template.
|
|
|
210
274
|
Docuseal.get_template(1000001)
|
|
211
275
|
```
|
|
212
276
|
|
|
277
|
+
### create_template_from_pdf(data)
|
|
278
|
+
|
|
279
|
+
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-template-from-pdf)
|
|
280
|
+
|
|
281
|
+
Provides the functionality to create a fillable document template for a PDF file. Use `{{Field Name;role=Signer1;type=date}}` text tags to define fillable fields in the document. See [https://www.docuseal.com/examples/fieldtags.pdf](https://www.docuseal.com/examples/fieldtags.pdf) for more text tag formats. Or specify the exact pixel coordinates of the document fields using `fields` param.
|
|
282
|
+
|
|
283
|
+
**Related Guides:**<br>
|
|
284
|
+
[Use embedded text field tags to create a fillable form](https://www.docuseal.com/guides/use-embedded-text-field-tags-in-the-pdf-to-create-a-fillable-form)
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
```ruby
|
|
288
|
+
Docuseal.create_template_from_pdf({
|
|
289
|
+
name: "Test PDF",
|
|
290
|
+
documents: [
|
|
291
|
+
{
|
|
292
|
+
name: "string",
|
|
293
|
+
file: "base64",
|
|
294
|
+
fields: [
|
|
295
|
+
{
|
|
296
|
+
name: "string",
|
|
297
|
+
areas: [
|
|
298
|
+
{
|
|
299
|
+
x: 0,
|
|
300
|
+
y: 0,
|
|
301
|
+
w: 0,
|
|
302
|
+
h: 0,
|
|
303
|
+
page: 1
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
})
|
|
311
|
+
```
|
|
312
|
+
|
|
213
313
|
### create_template_from_docx(data)
|
|
214
314
|
|
|
215
315
|
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-template-from-word-docx)
|
|
@@ -257,6 +357,19 @@ and typesetting industry</p>
|
|
|
257
357
|
})
|
|
258
358
|
```
|
|
259
359
|
|
|
360
|
+
### clone_template(id, data)
|
|
361
|
+
|
|
362
|
+
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#clone-a-template)
|
|
363
|
+
|
|
364
|
+
Allows you to clone existing template into a new template.
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
```ruby
|
|
368
|
+
Docuseal.clone_template(1000001, {
|
|
369
|
+
name: "Cloned Template"
|
|
370
|
+
})
|
|
371
|
+
```
|
|
372
|
+
|
|
260
373
|
### merge_templates(data)
|
|
261
374
|
|
|
262
375
|
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#merge-templates)
|
|
@@ -274,55 +387,6 @@ Docuseal.merge_templates({
|
|
|
274
387
|
})
|
|
275
388
|
```
|
|
276
389
|
|
|
277
|
-
### create_template_from_pdf(data)
|
|
278
|
-
|
|
279
|
-
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#create-a-template-from-existing-pdf)
|
|
280
|
-
|
|
281
|
-
Provides the functionality to create a fillable document template for existing PDF file. Use `{{Field Name;role=Signer1;type=date}}` text tags to define fillable fields in the document. See [https://www.docuseal.com/examples/fieldtags.pdf](https://www.docuseal.com/examples/fieldtags.pdf) for more text tag formats. Or specify the exact pixel coordinates of the document fields using `fields` param.
|
|
282
|
-
|
|
283
|
-
**Related Guides:**<br>
|
|
284
|
-
[Use embedded text field tags to create a fillable form](https://www.docuseal.com/guides/use-embedded-text-field-tags-in-the-pdf-to-create-a-fillable-form)
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
```ruby
|
|
288
|
-
Docuseal.create_template_from_pdf({
|
|
289
|
-
name: "Test PDF",
|
|
290
|
-
documents: [
|
|
291
|
-
{
|
|
292
|
-
name: "string",
|
|
293
|
-
file: "base64",
|
|
294
|
-
fields: [
|
|
295
|
-
{
|
|
296
|
-
name: "string",
|
|
297
|
-
areas: [
|
|
298
|
-
{
|
|
299
|
-
x: 0,
|
|
300
|
-
y: 0,
|
|
301
|
-
w: 0,
|
|
302
|
-
h: 0,
|
|
303
|
-
page: 1
|
|
304
|
-
}
|
|
305
|
-
]
|
|
306
|
-
}
|
|
307
|
-
]
|
|
308
|
-
}
|
|
309
|
-
]
|
|
310
|
-
})
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
### clone_template(id, data)
|
|
314
|
-
|
|
315
|
-
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#clone-a-template)
|
|
316
|
-
|
|
317
|
-
Allows you to clone existing template into a new template.
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
```ruby
|
|
321
|
-
Docuseal.clone_template(1000001, {
|
|
322
|
-
name: "Cloned Template"
|
|
323
|
-
})
|
|
324
|
-
```
|
|
325
|
-
|
|
326
390
|
### update_template(id, data)
|
|
327
391
|
|
|
328
392
|
[Documentation](https://www.docuseal.com/docs/api?lang=ruby#update-a-template)
|
data/lib/docuseal/api.rb
CHANGED
|
@@ -74,6 +74,14 @@ module Docuseal
|
|
|
74
74
|
http.post('/submissions/emails', data)
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
+
def create_submission_from_pdf(data)
|
|
78
|
+
http.post('/submissions/pdf', data)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
def create_submission_from_html(data)
|
|
82
|
+
http.post('/submissions/html', data)
|
|
83
|
+
end
|
|
84
|
+
|
|
77
85
|
def archive_submission(id)
|
|
78
86
|
http.delete("/submissions/#{id}")
|
|
79
87
|
end
|
data/lib/docuseal/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: docuseal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- DocuSeal
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-
|
|
10
|
+
date: 2025-06-07 00:00:00.000000000 Z
|
|
11
11
|
dependencies: []
|
|
12
12
|
description: DocuSeal is a document signing platform. This gem provides a Ruby interface
|
|
13
13
|
to the DocuSeal API.
|