dropbox-sign 1.6.1 → 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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +15 -5
- data/VERSION +1 -1
- data/docs/AccountResponseQuotas.md +1 -1
- data/docs/FaxApi.md +364 -0
- data/docs/FaxGetResponse.md +11 -0
- data/docs/FaxListResponse.md +11 -0
- data/docs/FaxResponse.md +19 -0
- data/docs/FaxResponseTransmission.md +13 -0
- data/docs/FaxSendRequest.md +18 -0
- data/docs/OAuthTokenRefreshRequest.md +2 -0
- data/docs/SignatureRequestApi.md +1 -1
- data/docs/SubWhiteLabelingOptions.md +12 -12
- data/docs/TemplateApi.md +3 -3
- data/docs/TemplateResponse.md +2 -1
- data/docs/TemplateResponseDocumentFormFieldBase.md +0 -1
- data/docs/TemplateResponseDocumentFormFieldCheckbox.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldDateSigned.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldDropdown.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldHyperlink.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldInitials.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldRadio.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldSignature.md +1 -0
- data/docs/TemplateResponseDocumentFormFieldText.md +1 -0
- data/examples/FaxDelete.rb +14 -0
- data/examples/FaxFiles.rb +17 -0
- data/examples/FaxGet.rb +17 -0
- data/examples/FaxList.rb +18 -0
- data/examples/FaxSend.rb +25 -0
- data/lib/dropbox-sign/api/fax_api.rb +495 -0
- data/lib/dropbox-sign/api/o_auth_api.rb +28 -0
- data/lib/dropbox-sign/api/signature_request_api.rb +2 -2
- data/lib/dropbox-sign/api/template_api.rb +2 -2
- data/lib/dropbox-sign/models/account_response_quotas.rb +1 -1
- data/lib/dropbox-sign/models/api_app_response_o_auth.rb +2 -1
- data/lib/dropbox-sign/models/fax_get_response.rb +263 -0
- data/lib/dropbox-sign/models/fax_list_response.rb +267 -0
- data/lib/dropbox-sign/models/fax_response.rb +399 -0
- data/lib/dropbox-sign/models/fax_response_transmission.rb +328 -0
- data/lib/dropbox-sign/models/fax_send_request.rb +345 -0
- data/lib/dropbox-sign/models/o_auth_token_refresh_request.rb +26 -4
- data/lib/dropbox-sign/models/sub_white_labeling_options.rb +12 -12
- data/lib/dropbox-sign/models/template_response.rb +22 -13
- data/lib/dropbox-sign/models/template_response_document.rb +1 -2
- data/lib/dropbox-sign/models/template_response_document_form_field_base.rb +4 -16
- data/lib/dropbox-sign/models/template_response_document_form_field_checkbox.rb +16 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_date_signed.rb +16 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb +16 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_hyperlink.rb +16 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_initials.rb +16 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_radio.rb +20 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_signature.rb +16 -4
- data/lib/dropbox-sign/models/template_response_document_form_field_text.rb +17 -5
- data/lib/dropbox-sign/version.rb +1 -1
- data/lib/dropbox-sign.rb +6 -0
- data/openapi-config.yaml +1 -1
- data/openapi-sdk.yaml +821 -112
- data/run-build +9 -0
- data/test_fixtures/ApiAppCreateRequest.json +10 -10
- data/test_fixtures/ApiAppGetResponse.json +18 -3
- data/test_fixtures/ApiAppListResponse.json +7 -1
- data/test_fixtures/ApiAppUpdateRequest.json +11 -11
- data/test_fixtures/FaxGetResponse.json +23 -0
- data/test_fixtures/FaxListResponse.json +31 -0
- data/test_fixtures/FaxSendRequest.json +14 -0
- data/test_fixtures/FaxSendResponse.json +16 -0
- data/test_fixtures/TeamGetResponse.json +5 -0
- data/test_fixtures/TemplateGetResponse.json +25 -478
- data/test_fixtures/TemplateListResponse.json +34 -5
- metadata +29 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4a4bf5fa059cb4f6ad1d44989afda4fe6cda83bea9692a2e73d50e8f0f8dc6c
|
4
|
+
data.tar.gz: 6c6765e5adf2e5b4734ef7d5bed6d7fe329b20881b9b9df484b0e9594dae4bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bdad2bf4c2d5e4d9d72e53d64c785140fc0e7fc4addb2187ccacb9795b29b2b1d7d6508a0fe4df705bb491dea7ce9547195490ab71a87f3315993965248f63d
|
7
|
+
data.tar.gz: 26eaf172fb40a46bee4531e40fba88c35dce1a2326bab42efc5bc47b96a83ce24c98d71971ec47ee99a020410e04f25a0d0246b27408c3e162e32616625bd19a
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -25,7 +25,7 @@ directory that corresponds to the file you want updated.
|
|
25
25
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
26
26
|
|
27
27
|
- API version: 3.0.0
|
28
|
-
- Package version: 1.
|
28
|
+
- Package version: 1.7.0
|
29
29
|
- Generator version: 7.8.0
|
30
30
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
31
31
|
|
@@ -47,15 +47,15 @@ gem build dropbox-sign.gemspec
|
|
47
47
|
Then install the gem locally:
|
48
48
|
|
49
49
|
```shell
|
50
|
-
gem install ./dropbox-sign-1.
|
50
|
+
gem install ./dropbox-sign-1.7.0.gem
|
51
51
|
```
|
52
52
|
|
53
|
-
(for development, run `gem install --dev ./dropbox-sign-1.
|
53
|
+
(for development, run `gem install --dev ./dropbox-sign-1.7.0.gem` to install the development dependencies)
|
54
54
|
|
55
55
|
|
56
56
|
Finally add this to the Gemfile:
|
57
57
|
|
58
|
-
gem 'dropbox-sign', '~> 1.
|
58
|
+
gem 'dropbox-sign', '~> 1.7.0'
|
59
59
|
|
60
60
|
### Install from Git
|
61
61
|
|
@@ -121,6 +121,11 @@ All URIs are relative to *https://api.hellosign.com/v3*
|
|
121
121
|
|*Dropbox::Sign::BulkSendJobApi* | [**bulk_send_job_list**](docs/BulkSendJobApi.md#bulk_send_job_list) | **GET** /bulk_send_job/list | List Bulk Send Jobs |
|
122
122
|
|*Dropbox::Sign::EmbeddedApi* | [**embedded_edit_url**](docs/EmbeddedApi.md#embedded_edit_url) | **POST** /embedded/edit_url/{template_id} | Get Embedded Template Edit URL |
|
123
123
|
|*Dropbox::Sign::EmbeddedApi* | [**embedded_sign_url**](docs/EmbeddedApi.md#embedded_sign_url) | **GET** /embedded/sign_url/{signature_id} | Get Embedded Sign URL |
|
124
|
+
|*Dropbox::Sign::FaxApi* | [**fax_delete**](docs/FaxApi.md#fax_delete) | **DELETE** /fax/{fax_id} | Delete Fax |
|
125
|
+
|*Dropbox::Sign::FaxApi* | [**fax_files**](docs/FaxApi.md#fax_files) | **GET** /fax/files/{fax_id} | List Fax Files |
|
126
|
+
|*Dropbox::Sign::FaxApi* | [**fax_get**](docs/FaxApi.md#fax_get) | **GET** /fax/{fax_id} | Get Fax |
|
127
|
+
|*Dropbox::Sign::FaxApi* | [**fax_list**](docs/FaxApi.md#fax_list) | **GET** /fax/list | Lists Faxes |
|
128
|
+
|*Dropbox::Sign::FaxApi* | [**fax_send**](docs/FaxApi.md#fax_send) | **POST** /fax/send | Send Fax |
|
124
129
|
|*Dropbox::Sign::FaxLineApi* | [**fax_line_add_user**](docs/FaxLineApi.md#fax_line_add_user) | **PUT** /fax_line/add_user | Add Fax Line User |
|
125
130
|
|*Dropbox::Sign::FaxLineApi* | [**fax_line_area_code_get**](docs/FaxLineApi.md#fax_line_area_code_get) | **GET** /fax_line/area_codes | Get Available Fax Line Area Codes |
|
126
131
|
|*Dropbox::Sign::FaxLineApi* | [**fax_line_create**](docs/FaxLineApi.md#fax_line_create) | **POST** /fax_line/create | Purchase Fax Line |
|
@@ -158,7 +163,7 @@ All URIs are relative to *https://api.hellosign.com/v3*
|
|
158
163
|
|*Dropbox::Sign::TeamApi* | [**team_sub_teams**](docs/TeamApi.md#team_sub_teams) | **GET** /team/sub_teams/{team_id} | List Sub Teams |
|
159
164
|
|*Dropbox::Sign::TeamApi* | [**team_update**](docs/TeamApi.md#team_update) | **PUT** /team | Update Team |
|
160
165
|
|*Dropbox::Sign::TemplateApi* | [**template_add_user**](docs/TemplateApi.md#template_add_user) | **POST** /template/add_user/{template_id} | Add User to Template |
|
161
|
-
|*Dropbox::Sign::TemplateApi* | [**template_create**](docs/TemplateApi.md#template_create) | **POST** /template/create | Create
|
166
|
+
|*Dropbox::Sign::TemplateApi* | [**template_create**](docs/TemplateApi.md#template_create) | **POST** /template/create | Create Template |
|
162
167
|
|*Dropbox::Sign::TemplateApi* | [**template_create_embedded_draft**](docs/TemplateApi.md#template_create_embedded_draft) | **POST** /template/create_embedded_draft | Create Embedded Template Draft |
|
163
168
|
|*Dropbox::Sign::TemplateApi* | [**template_delete**](docs/TemplateApi.md#template_delete) | **POST** /template/delete/{template_id} | Delete Template |
|
164
169
|
|*Dropbox::Sign::TemplateApi* | [**template_files**](docs/TemplateApi.md#template_files) | **GET** /template/files/{template_id} | Get Template Files |
|
@@ -210,6 +215,7 @@ All URIs are relative to *https://api.hellosign.com/v3*
|
|
210
215
|
- [Dropbox::Sign::EventCallbackRequest](docs/EventCallbackRequest.md)
|
211
216
|
- [Dropbox::Sign::EventCallbackRequestEvent](docs/EventCallbackRequestEvent.md)
|
212
217
|
- [Dropbox::Sign::EventCallbackRequestEventMetadata](docs/EventCallbackRequestEventMetadata.md)
|
218
|
+
- [Dropbox::Sign::FaxGetResponse](docs/FaxGetResponse.md)
|
213
219
|
- [Dropbox::Sign::FaxLineAddUserRequest](docs/FaxLineAddUserRequest.md)
|
214
220
|
- [Dropbox::Sign::FaxLineAreaCodeGetCountryEnum](docs/FaxLineAreaCodeGetCountryEnum.md)
|
215
221
|
- [Dropbox::Sign::FaxLineAreaCodeGetProvinceEnum](docs/FaxLineAreaCodeGetProvinceEnum.md)
|
@@ -221,6 +227,10 @@ All URIs are relative to *https://api.hellosign.com/v3*
|
|
221
227
|
- [Dropbox::Sign::FaxLineRemoveUserRequest](docs/FaxLineRemoveUserRequest.md)
|
222
228
|
- [Dropbox::Sign::FaxLineResponse](docs/FaxLineResponse.md)
|
223
229
|
- [Dropbox::Sign::FaxLineResponseFaxLine](docs/FaxLineResponseFaxLine.md)
|
230
|
+
- [Dropbox::Sign::FaxListResponse](docs/FaxListResponse.md)
|
231
|
+
- [Dropbox::Sign::FaxResponse](docs/FaxResponse.md)
|
232
|
+
- [Dropbox::Sign::FaxResponseTransmission](docs/FaxResponseTransmission.md)
|
233
|
+
- [Dropbox::Sign::FaxSendRequest](docs/FaxSendRequest.md)
|
224
234
|
- [Dropbox::Sign::FileResponse](docs/FileResponse.md)
|
225
235
|
- [Dropbox::Sign::FileResponseDataUri](docs/FileResponseDataUri.md)
|
226
236
|
- [Dropbox::Sign::ListInfoResponse](docs/ListInfoResponse.md)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.7.0
|
@@ -10,6 +10,6 @@ Details concerning remaining monthly quotas.
|
|
10
10
|
| `documents_left` | ```Integer``` | Signature requests remaining. | |
|
11
11
|
| `templates_total` | ```Integer``` | Total API templates allowed. | |
|
12
12
|
| `templates_left` | ```Integer``` | API templates remaining. | |
|
13
|
-
| `sms_verifications_left` | ```Integer``` | SMS verifications
|
13
|
+
| `sms_verifications_left` | ```Integer``` | SMS verifications remaining. | |
|
14
14
|
| `num_fax_pages_left` | ```Integer``` | Number of fax pages left | |
|
15
15
|
|
data/docs/FaxApi.md
ADDED
@@ -0,0 +1,364 @@
|
|
1
|
+
# Dropbox::Sign::FaxApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.hellosign.com/v3*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [`fax_delete`](FaxApi.md#fax_delete) | **DELETE** `/fax/{fax_id}` | Delete Fax |
|
8
|
+
| [`fax_files`](FaxApi.md#fax_files) | **GET** `/fax/files/{fax_id}` | List Fax Files |
|
9
|
+
| [`fax_get`](FaxApi.md#fax_get) | **GET** `/fax/{fax_id}` | Get Fax |
|
10
|
+
| [`fax_list`](FaxApi.md#fax_list) | **GET** `/fax/list` | Lists Faxes |
|
11
|
+
| [`fax_send`](FaxApi.md#fax_send) | **POST** `/fax/send` | Send Fax |
|
12
|
+
|
13
|
+
|
14
|
+
## `fax_delete`
|
15
|
+
|
16
|
+
> `fax_delete(fax_id)`
|
17
|
+
|
18
|
+
Delete Fax
|
19
|
+
|
20
|
+
Deletes the specified Fax from the system.
|
21
|
+
|
22
|
+
### Examples
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require "dropbox-sign"
|
26
|
+
|
27
|
+
Dropbox::Sign.configure do |config|
|
28
|
+
# Configure HTTP basic authorization: api_key
|
29
|
+
config.username = "YOUR_API_KEY"
|
30
|
+
end
|
31
|
+
|
32
|
+
fax_api = Dropbox::Sign::FaxApi.new
|
33
|
+
|
34
|
+
begin
|
35
|
+
fax_api.fax_delete("fa5c8a0b0f492d768749333ad6fcc214c111e967")
|
36
|
+
rescue Dropbox::Sign::ApiError => e
|
37
|
+
puts "Exception when calling Dropbox Sign API: #{e}"
|
38
|
+
end
|
39
|
+
|
40
|
+
```
|
41
|
+
|
42
|
+
#### Using the `fax_delete_with_http_info` variant
|
43
|
+
|
44
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
45
|
+
|
46
|
+
> `<Array(nil, Integer, Hash)> fax_delete_with_http_info(fax_id)`
|
47
|
+
|
48
|
+
```ruby
|
49
|
+
begin
|
50
|
+
# Delete Fax
|
51
|
+
data, status_code, headers = api_instance.fax_delete_with_http_info(fax_id)
|
52
|
+
p status_code # => 2xx
|
53
|
+
p headers # => { ... }
|
54
|
+
p data # => nil
|
55
|
+
rescue Dropbox::Sign::ApiError => e
|
56
|
+
puts "Error when calling FaxApi->fax_delete_with_http_info: #{e}"
|
57
|
+
end
|
58
|
+
```
|
59
|
+
|
60
|
+
### Parameters
|
61
|
+
|
62
|
+
| Name | Type | Description | Notes |
|
63
|
+
| ---- | ---- | ----------- | ----- |
|
64
|
+
| `fax_id` | **String** | Fax ID | |
|
65
|
+
|
66
|
+
### Return type
|
67
|
+
|
68
|
+
nil (empty response body)
|
69
|
+
|
70
|
+
### Authorization
|
71
|
+
|
72
|
+
[api_key](../README.md#api_key)
|
73
|
+
|
74
|
+
### HTTP request headers
|
75
|
+
|
76
|
+
- **Content-Type**: Not defined
|
77
|
+
- **Accept**: application/json
|
78
|
+
|
79
|
+
|
80
|
+
## `fax_files`
|
81
|
+
|
82
|
+
> `File fax_files(fax_id)`
|
83
|
+
|
84
|
+
List Fax Files
|
85
|
+
|
86
|
+
Returns list of fax files
|
87
|
+
|
88
|
+
### Examples
|
89
|
+
|
90
|
+
```ruby
|
91
|
+
require "dropbox-sign"
|
92
|
+
|
93
|
+
Dropbox::Sign.configure do |config|
|
94
|
+
# Configure HTTP basic authorization: api_key
|
95
|
+
config.username = "YOUR_API_KEY"
|
96
|
+
end
|
97
|
+
|
98
|
+
fax_api = Dropbox::Sign::FaxApi.new
|
99
|
+
|
100
|
+
faxId = "fa5c8a0b0f492d768749333ad6fcc214c111e967"
|
101
|
+
|
102
|
+
begin
|
103
|
+
file_bin = fax_api.fax_files(data)
|
104
|
+
FileUtils.cp(file_bin.path, "path/to/file.pdf")
|
105
|
+
rescue Dropbox::Sign::ApiError => e
|
106
|
+
puts "Exception when calling Dropbox Sign API: #{e}"
|
107
|
+
end
|
108
|
+
|
109
|
+
```
|
110
|
+
|
111
|
+
#### Using the `fax_files_with_http_info` variant
|
112
|
+
|
113
|
+
This returns an Array which contains the response data, status code and headers.
|
114
|
+
|
115
|
+
> `<Array(File, Integer, Hash)> fax_files_with_http_info(fax_id)`
|
116
|
+
|
117
|
+
```ruby
|
118
|
+
begin
|
119
|
+
# List Fax Files
|
120
|
+
data, status_code, headers = api_instance.fax_files_with_http_info(fax_id)
|
121
|
+
p status_code # => 2xx
|
122
|
+
p headers # => { ... }
|
123
|
+
p data # => File
|
124
|
+
rescue Dropbox::Sign::ApiError => e
|
125
|
+
puts "Error when calling FaxApi->fax_files_with_http_info: #{e}"
|
126
|
+
end
|
127
|
+
```
|
128
|
+
|
129
|
+
### Parameters
|
130
|
+
|
131
|
+
| Name | Type | Description | Notes |
|
132
|
+
| ---- | ---- | ----------- | ----- |
|
133
|
+
| `fax_id` | **String** | Fax ID | |
|
134
|
+
|
135
|
+
### Return type
|
136
|
+
|
137
|
+
**File**
|
138
|
+
|
139
|
+
### Authorization
|
140
|
+
|
141
|
+
[api_key](../README.md#api_key)
|
142
|
+
|
143
|
+
### HTTP request headers
|
144
|
+
|
145
|
+
- **Content-Type**: Not defined
|
146
|
+
- **Accept**: application/pdf, application/json
|
147
|
+
|
148
|
+
|
149
|
+
## `fax_get`
|
150
|
+
|
151
|
+
> `<FaxGetResponse> fax_get(fax_id)`
|
152
|
+
|
153
|
+
Get Fax
|
154
|
+
|
155
|
+
Returns information about fax
|
156
|
+
|
157
|
+
### Examples
|
158
|
+
|
159
|
+
```ruby
|
160
|
+
require "dropbox-sign"
|
161
|
+
|
162
|
+
Dropbox::Sign.configure do |config|
|
163
|
+
# Configure HTTP basic authorization: api_key
|
164
|
+
config.username = "YOUR_API_KEY"
|
165
|
+
end
|
166
|
+
|
167
|
+
fax_api = Dropbox::Sign::FaxApi.new
|
168
|
+
|
169
|
+
fax_id = "fa5c8a0b0f492d768749333ad6fcc214c111e967"
|
170
|
+
|
171
|
+
begin
|
172
|
+
result = fax_api.fax_get(fax_id)
|
173
|
+
p result
|
174
|
+
rescue Dropbox::Sign::ApiError => e
|
175
|
+
puts "Exception when calling Dropbox Sign API: #{e}"
|
176
|
+
end
|
177
|
+
|
178
|
+
```
|
179
|
+
|
180
|
+
#### Using the `fax_get_with_http_info` variant
|
181
|
+
|
182
|
+
This returns an Array which contains the response data, status code and headers.
|
183
|
+
|
184
|
+
> `<Array(<FaxGetResponse>, Integer, Hash)> fax_get_with_http_info(fax_id)`
|
185
|
+
|
186
|
+
```ruby
|
187
|
+
begin
|
188
|
+
# Get Fax
|
189
|
+
data, status_code, headers = api_instance.fax_get_with_http_info(fax_id)
|
190
|
+
p status_code # => 2xx
|
191
|
+
p headers # => { ... }
|
192
|
+
p data # => <FaxGetResponse>
|
193
|
+
rescue Dropbox::Sign::ApiError => e
|
194
|
+
puts "Error when calling FaxApi->fax_get_with_http_info: #{e}"
|
195
|
+
end
|
196
|
+
```
|
197
|
+
|
198
|
+
### Parameters
|
199
|
+
|
200
|
+
| Name | Type | Description | Notes |
|
201
|
+
| ---- | ---- | ----------- | ----- |
|
202
|
+
| `fax_id` | **String** | Fax ID | |
|
203
|
+
|
204
|
+
### Return type
|
205
|
+
|
206
|
+
[**FaxGetResponse**](FaxGetResponse.md)
|
207
|
+
|
208
|
+
### Authorization
|
209
|
+
|
210
|
+
[api_key](../README.md#api_key)
|
211
|
+
|
212
|
+
### HTTP request headers
|
213
|
+
|
214
|
+
- **Content-Type**: Not defined
|
215
|
+
- **Accept**: application/json
|
216
|
+
|
217
|
+
|
218
|
+
## `fax_list`
|
219
|
+
|
220
|
+
> `<FaxListResponse> fax_list(opts)`
|
221
|
+
|
222
|
+
Lists Faxes
|
223
|
+
|
224
|
+
Returns properties of multiple faxes
|
225
|
+
|
226
|
+
### Examples
|
227
|
+
|
228
|
+
```ruby
|
229
|
+
require "dropbox-sign"
|
230
|
+
|
231
|
+
Dropbox::Sign.configure do |config|
|
232
|
+
# Configure HTTP basic authorization: api_key
|
233
|
+
config.username = "YOUR_API_KEY"
|
234
|
+
end
|
235
|
+
|
236
|
+
fax_api = Dropbox::Sign::FaxApi.new
|
237
|
+
|
238
|
+
page = 1
|
239
|
+
page_size = 2
|
240
|
+
|
241
|
+
begin
|
242
|
+
result = fax_api.fax_list({ page: page, page_size: page_size })
|
243
|
+
p result
|
244
|
+
rescue Dropbox::Sign::ApiError => e
|
245
|
+
puts "Exception when calling Dropbox Sign API: #{e}"
|
246
|
+
end
|
247
|
+
|
248
|
+
```
|
249
|
+
|
250
|
+
#### Using the `fax_list_with_http_info` variant
|
251
|
+
|
252
|
+
This returns an Array which contains the response data, status code and headers.
|
253
|
+
|
254
|
+
> `<Array(<FaxListResponse>, Integer, Hash)> fax_list_with_http_info(opts)`
|
255
|
+
|
256
|
+
```ruby
|
257
|
+
begin
|
258
|
+
# Lists Faxes
|
259
|
+
data, status_code, headers = api_instance.fax_list_with_http_info(opts)
|
260
|
+
p status_code # => 2xx
|
261
|
+
p headers # => { ... }
|
262
|
+
p data # => <FaxListResponse>
|
263
|
+
rescue Dropbox::Sign::ApiError => e
|
264
|
+
puts "Error when calling FaxApi->fax_list_with_http_info: #{e}"
|
265
|
+
end
|
266
|
+
```
|
267
|
+
|
268
|
+
### Parameters
|
269
|
+
|
270
|
+
| Name | Type | Description | Notes |
|
271
|
+
| ---- | ---- | ----------- | ----- |
|
272
|
+
| `page` | **Integer** | Page | [optional][default to 1] |
|
273
|
+
| `page_size` | **Integer** | Page size | [optional][default to 20] |
|
274
|
+
|
275
|
+
### Return type
|
276
|
+
|
277
|
+
[**FaxListResponse**](FaxListResponse.md)
|
278
|
+
|
279
|
+
### Authorization
|
280
|
+
|
281
|
+
[api_key](../README.md#api_key)
|
282
|
+
|
283
|
+
### HTTP request headers
|
284
|
+
|
285
|
+
- **Content-Type**: Not defined
|
286
|
+
- **Accept**: application/json
|
287
|
+
|
288
|
+
|
289
|
+
## `fax_send`
|
290
|
+
|
291
|
+
> `<FaxGetResponse> fax_send(fax_send_request)`
|
292
|
+
|
293
|
+
Send Fax
|
294
|
+
|
295
|
+
Action to prepare and send a fax
|
296
|
+
|
297
|
+
### Examples
|
298
|
+
|
299
|
+
```ruby
|
300
|
+
require "dropbox-sign"
|
301
|
+
|
302
|
+
Dropbox::Sign.configure do |config|
|
303
|
+
# Configure HTTP basic authorization: api_key
|
304
|
+
config.username = "YOUR_API_KEY"
|
305
|
+
end
|
306
|
+
|
307
|
+
fax_api = Dropbox::Sign::FaxApi.new
|
308
|
+
|
309
|
+
data = Dropbox::Sign::FaxSendRequest.new
|
310
|
+
data.files = [File.new("example_signature_request.pdf", "r")]
|
311
|
+
data.test_mode = true
|
312
|
+
data.recipient = "16690000001"
|
313
|
+
data.sender = "16690000000"
|
314
|
+
data.cover_page_to = "Jill Fax"
|
315
|
+
data.cover_page_message = "I'm sending you a fax!"
|
316
|
+
data.cover_page_from = "Faxer Faxerson"
|
317
|
+
data.title = "This is what the fax is about!"
|
318
|
+
|
319
|
+
begin
|
320
|
+
result = fax_api.fax_send(data)
|
321
|
+
p result
|
322
|
+
rescue Dropbox::Sign::ApiError => e
|
323
|
+
puts "Exception when calling Dropbox Sign API: #{e}"
|
324
|
+
end
|
325
|
+
|
326
|
+
```
|
327
|
+
|
328
|
+
#### Using the `fax_send_with_http_info` variant
|
329
|
+
|
330
|
+
This returns an Array which contains the response data, status code and headers.
|
331
|
+
|
332
|
+
> `<Array(<FaxGetResponse>, Integer, Hash)> fax_send_with_http_info(fax_send_request)`
|
333
|
+
|
334
|
+
```ruby
|
335
|
+
begin
|
336
|
+
# Send Fax
|
337
|
+
data, status_code, headers = api_instance.fax_send_with_http_info(fax_send_request)
|
338
|
+
p status_code # => 2xx
|
339
|
+
p headers # => { ... }
|
340
|
+
p data # => <FaxGetResponse>
|
341
|
+
rescue Dropbox::Sign::ApiError => e
|
342
|
+
puts "Error when calling FaxApi->fax_send_with_http_info: #{e}"
|
343
|
+
end
|
344
|
+
```
|
345
|
+
|
346
|
+
### Parameters
|
347
|
+
|
348
|
+
| Name | Type | Description | Notes |
|
349
|
+
| ---- | ---- | ----------- | ----- |
|
350
|
+
| `fax_send_request` | [**FaxSendRequest**](FaxSendRequest.md) | | |
|
351
|
+
|
352
|
+
### Return type
|
353
|
+
|
354
|
+
[**FaxGetResponse**](FaxGetResponse.md)
|
355
|
+
|
356
|
+
### Authorization
|
357
|
+
|
358
|
+
[api_key](../README.md#api_key)
|
359
|
+
|
360
|
+
### HTTP request headers
|
361
|
+
|
362
|
+
- **Content-Type**: application/json, multipart/form-data
|
363
|
+
- **Accept**: application/json
|
364
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Dropbox::Sign::FaxGetResponse
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
## Properties
|
6
|
+
|
7
|
+
| Name | Type | Description | Notes |
|
8
|
+
| ---- | ---- | ----------- | ----- |
|
9
|
+
| `fax`<sup>*_required_</sup> | [```FaxResponse```](FaxResponse.md) | | |
|
10
|
+
| `warnings` | [```Array<WarningResponse>```](WarningResponse.md) | A list of warnings. | |
|
11
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Dropbox::Sign::FaxListResponse
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
## Properties
|
6
|
+
|
7
|
+
| Name | Type | Description | Notes |
|
8
|
+
| ---- | ---- | ----------- | ----- |
|
9
|
+
| `faxes`<sup>*_required_</sup> | [```Array<FaxResponse>```](FaxResponse.md) | | |
|
10
|
+
| `list_info`<sup>*_required_</sup> | [```ListInfoResponse```](ListInfoResponse.md) | | |
|
11
|
+
|
data/docs/FaxResponse.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# Dropbox::Sign::FaxResponse
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
## Properties
|
6
|
+
|
7
|
+
| Name | Type | Description | Notes |
|
8
|
+
| ---- | ---- | ----------- | ----- |
|
9
|
+
| `fax_id`<sup>*_required_</sup> | ```String``` | Fax ID | |
|
10
|
+
| `title`<sup>*_required_</sup> | ```String``` | Fax Title | |
|
11
|
+
| `original_title`<sup>*_required_</sup> | ```String``` | Fax Original Title | |
|
12
|
+
| `subject`<sup>*_required_</sup> | ```String``` | Fax Subject | |
|
13
|
+
| `message`<sup>*_required_</sup> | ```String``` | Fax Message | |
|
14
|
+
| `metadata`<sup>*_required_</sup> | ```Hash<String, Object>``` | Fax Metadata | |
|
15
|
+
| `created_at`<sup>*_required_</sup> | ```Integer``` | Fax Created At Timestamp | |
|
16
|
+
| `sender`<sup>*_required_</sup> | ```String``` | Fax Sender Email | |
|
17
|
+
| `transmissions`<sup>*_required_</sup> | [```Array<FaxResponseTransmission>```](FaxResponseTransmission.md) | Fax Transmissions List | |
|
18
|
+
| `files_url`<sup>*_required_</sup> | ```String``` | Fax Files URL | |
|
19
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# Dropbox::Sign::FaxResponseTransmission
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
## Properties
|
6
|
+
|
7
|
+
| Name | Type | Description | Notes |
|
8
|
+
| ---- | ---- | ----------- | ----- |
|
9
|
+
| `recipient`<sup>*_required_</sup> | ```String``` | Fax Transmission Recipient | |
|
10
|
+
| `sender`<sup>*_required_</sup> | ```String``` | Fax Transmission Sender | |
|
11
|
+
| `status_code`<sup>*_required_</sup> | ```String``` | Fax Transmission Status Code | |
|
12
|
+
| `sent_at` | ```Integer``` | Fax Transmission Sent Timestamp | |
|
13
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Dropbox::Sign::FaxSendRequest
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
## Properties
|
6
|
+
|
7
|
+
| Name | Type | Description | Notes |
|
8
|
+
| ---- | ---- | ----------- | ----- |
|
9
|
+
| `recipient`<sup>*_required_</sup> | ```String``` | Fax Send To Recipient | |
|
10
|
+
| `sender` | ```String``` | Fax Send From Sender (used only with fax number) | |
|
11
|
+
| `files` | ```Array<File>``` | Fax File to Send | |
|
12
|
+
| `file_urls` | ```Array<String>``` | Fax File URL to Send | |
|
13
|
+
| `test_mode` | ```Boolean``` | API Test Mode Setting | [default to false] |
|
14
|
+
| `cover_page_to` | ```String``` | Fax Cover Page for Recipient | |
|
15
|
+
| `cover_page_from` | ```String``` | Fax Cover Page for Sender | |
|
16
|
+
| `cover_page_message` | ```String``` | Fax Cover Page Message | |
|
17
|
+
| `title` | ```String``` | Fax Title | |
|
18
|
+
|
@@ -8,4 +8,6 @@
|
|
8
8
|
| ---- | ---- | ----------- | ----- |
|
9
9
|
| `grant_type`<sup>*_required_</sup> | ```String``` | When refreshing an existing token use `refresh_token`. | [default to 'refresh_token'] |
|
10
10
|
| `refresh_token`<sup>*_required_</sup> | ```String``` | The token provided when you got the expired access token. | |
|
11
|
+
| `client_id` | ```String``` | The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled. | |
|
12
|
+
| `client_secret` | ```String``` | The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled. | |
|
11
13
|
|
data/docs/SignatureRequestApi.md
CHANGED
@@ -249,7 +249,7 @@ end
|
|
249
249
|
|
250
250
|
Cancel Incomplete Signature Request
|
251
251
|
|
252
|
-
Cancels an incomplete signature request. This action is **not reversible**. The request will be canceled and signers will no longer be able to sign. If they try to access the signature request they will receive a HTTP 410 status code indicating that the resource has been deleted. Cancelation is asynchronous and a successful call to this endpoint will return an empty 200 OK response if the signature request is eligible to be canceled and has been successfully queued. This 200 OK response does not indicate a successful cancelation of the signature request itself. The cancelation is confirmed via the `signature_request_canceled` event. It is recommended that a
|
252
|
+
Cancels an incomplete signature request. This action is **not reversible**. The request will be canceled and signers will no longer be able to sign. If they try to access the signature request they will receive a HTTP 410 status code indicating that the resource has been deleted. Cancelation is asynchronous and a successful call to this endpoint will return an empty 200 OK response if the signature request is eligible to be canceled and has been successfully queued. This 200 OK response does not indicate a successful cancelation of the signature request itself. The cancelation is confirmed via the `signature_request_canceled` event. It is recommended that a [callback handler](/api/reference/tag/Callbacks-and-Events) be implemented to listen for the `signature_request_canceled` event. This callback will be sent only when the cancelation has completed successfully. If a callback handler has been configured and the event has not been received within 60 minutes of making the call, check the status of the request in the [API Dashboard](https://app.hellosign.com/apidashboard) and retry the cancelation if necessary. To be eligible for cancelation, a signature request must have been sent successfully, must not yet have been signed by all signers, and you must either be the sender or own the API app under which it was sent. A partially signed signature request can be canceled. **NOTE:** To remove your access to a completed signature request, use the endpoint: `POST /signature_request/remove/[:signature_request_id]`.
|
253
253
|
|
254
254
|
### Examples
|
255
255
|
|
@@ -8,19 +8,19 @@ Take a look at our [white labeling guide](https://developers.hellosign.com/api/r
|
|
8
8
|
|
9
9
|
| Name | Type | Description | Notes |
|
10
10
|
| ---- | ---- | ----------- | ----- |
|
11
|
-
| `header_background_color` | ```String``` | | [default to '#
|
11
|
+
| `header_background_color` | ```String``` | | [default to '#1a1a1a'] |
|
12
12
|
| `legal_version` | ```String``` | | [default to 'terms1'] |
|
13
|
-
| `link_color` | ```String``` | | [default to '#
|
14
|
-
| `page_background_color` | ```String``` | | [default to '#
|
15
|
-
| `primary_button_color` | ```String``` | | [default to '#
|
16
|
-
| `primary_button_color_hover` | ```String``` | | [default to '#
|
17
|
-
| `primary_button_text_color` | ```String``` | | [default to '#
|
18
|
-
| `primary_button_text_color_hover` | ```String``` | | [default to '#
|
19
|
-
| `secondary_button_color` | ```String``` | | [default to '#
|
20
|
-
| `secondary_button_color_hover` | ```String``` | | [default to '#
|
21
|
-
| `secondary_button_text_color` | ```String``` | | [default to '#
|
22
|
-
| `secondary_button_text_color_hover` | ```String``` | | [default to '#
|
13
|
+
| `link_color` | ```String``` | | [default to '#0061FE'] |
|
14
|
+
| `page_background_color` | ```String``` | | [default to '#f7f8f9'] |
|
15
|
+
| `primary_button_color` | ```String``` | | [default to '#0061FE'] |
|
16
|
+
| `primary_button_color_hover` | ```String``` | | [default to '#0061FE'] |
|
17
|
+
| `primary_button_text_color` | ```String``` | | [default to '#ffffff'] |
|
18
|
+
| `primary_button_text_color_hover` | ```String``` | | [default to '#ffffff'] |
|
19
|
+
| `secondary_button_color` | ```String``` | | [default to '#ffffff'] |
|
20
|
+
| `secondary_button_color_hover` | ```String``` | | [default to '#ffffff'] |
|
21
|
+
| `secondary_button_text_color` | ```String``` | | [default to '#0061FE'] |
|
22
|
+
| `secondary_button_text_color_hover` | ```String``` | | [default to '#0061FE'] |
|
23
23
|
| `text_color1` | ```String``` | | [default to '#808080'] |
|
24
|
-
| `text_color2` | ```String``` | | [default to '#
|
24
|
+
| `text_color2` | ```String``` | | [default to '#ffffff'] |
|
25
25
|
| `reset_to_default` | ```Boolean``` | Resets white labeling options to defaults. Only useful when updating an API App. | |
|
26
26
|
|
data/docs/TemplateApi.md
CHANGED
@@ -5,7 +5,7 @@ All URIs are relative to *https://api.hellosign.com/v3*
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [`template_add_user`](TemplateApi.md#template_add_user) | **POST** `/template/add_user/{template_id}` | Add User to Template |
|
8
|
-
| [`template_create`](TemplateApi.md#template_create) | **POST** `/template/create` | Create
|
8
|
+
| [`template_create`](TemplateApi.md#template_create) | **POST** `/template/create` | Create Template |
|
9
9
|
| [`template_create_embedded_draft`](TemplateApi.md#template_create_embedded_draft) | **POST** `/template/create_embedded_draft` | Create Embedded Template Draft |
|
10
10
|
| [`template_delete`](TemplateApi.md#template_delete) | **POST** `/template/delete/{template_id}` | Delete Template |
|
11
11
|
| [`template_files`](TemplateApi.md#template_files) | **GET** `/template/files/{template_id}` | Get Template Files |
|
@@ -97,7 +97,7 @@ end
|
|
97
97
|
|
98
98
|
> `<TemplateCreateResponse> template_create(template_create_request)`
|
99
99
|
|
100
|
-
Create
|
100
|
+
Create Template
|
101
101
|
|
102
102
|
Creates a template that can then be used.
|
103
103
|
|
@@ -164,7 +164,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
164
164
|
|
165
165
|
```ruby
|
166
166
|
begin
|
167
|
-
# Create
|
167
|
+
# Create Template
|
168
168
|
data, status_code, headers = api_instance.template_create_with_http_info(template_create_request)
|
169
169
|
p status_code # => 2xx
|
170
170
|
p headers # => { ... }
|
data/docs/TemplateResponse.md
CHANGED
@@ -10,7 +10,7 @@ Contains information about the templates you and your team have created.
|
|
10
10
|
| `title` | ```String``` | The title of the Template. This will also be the default subject of the message sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. | |
|
11
11
|
| `message` | ```String``` | The default message that will be sent to signers when using this Template to send a SignatureRequest. This can be overridden when sending the SignatureRequest. | |
|
12
12
|
| `updated_at` | ```Integer``` | Time the template was last updated. | |
|
13
|
-
| `is_embedded` | ```Boolean``` | `true` if this template was created using an embedded flow, `false` if it was created on our website. | |
|
13
|
+
| `is_embedded` | ```Boolean``` | `true` if this template was created using an embedded flow, `false` if it was created on our website. Will be `null` when you are not the creator of the Template. | |
|
14
14
|
| `is_creator` | ```Boolean``` | `true` if you are the owner of this template, `false` if it's been shared with you by a team member. | |
|
15
15
|
| `can_edit` | ```Boolean``` | Indicates whether edit rights have been granted to you by the owner (always `true` if that's you). | |
|
16
16
|
| `is_locked` | ```Boolean``` | Indicates whether the template is locked. If `true`, then the template was created outside your quota and can only be used in `test_mode`. If `false`, then the template is within your quota and can be used to create signature requests. | |
|
@@ -21,4 +21,5 @@ Contains information about the templates you and your team have created.
|
|
21
21
|
| `custom_fields` | [```Array<TemplateResponseDocumentCustomFieldBase>```](TemplateResponseDocumentCustomFieldBase.md) | Deprecated. Use `custom_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | |
|
22
22
|
| `named_form_fields` | [```Array<TemplateResponseDocumentFormFieldBase>```](TemplateResponseDocumentFormFieldBase.md) | Deprecated. Use `form_fields` inside the [documents](https://developers.hellosign.com/api/reference/operation/templateGet/#!c=200&path=template/documents&t=response) array instead. | |
|
23
23
|
| `accounts` | [```Array<TemplateResponseAccount>```](TemplateResponseAccount.md) | An array of the Accounts that can use this Template. | |
|
24
|
+
| `attachments` | [```Array<SignatureRequestResponseAttachment>```](SignatureRequestResponseAttachment.md) | Signer attachments. | |
|
24
25
|
|
@@ -15,5 +15,4 @@ An array of Form Field objects containing the name and type of each named field.
|
|
15
15
|
| `width` | ```Integer``` | The width in pixels of this form field. | |
|
16
16
|
| `height` | ```Integer``` | The height in pixels of this form field. | |
|
17
17
|
| `required` | ```Boolean``` | Boolean showing whether or not this field is required. | |
|
18
|
-
| `group` | ```String``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
|
19
18
|
|
@@ -7,4 +7,5 @@ This class extends `TemplateResponseDocumentFormFieldBase`
|
|
7
7
|
| Name | Type | Description | Notes |
|
8
8
|
| ---- | ---- | ----------- | ----- |
|
9
9
|
| `type`<sup>*_required_</sup> | ```String``` | The type of this form field. See [field types](/api/reference/constants/#field-types).<br><br>* Text Field uses `TemplateResponseDocumentFormFieldText`<br>* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`<br>* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`<br>* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`<br>* Radio Field uses `TemplateResponseDocumentFormFieldRadio`<br>* Signature Field uses `TemplateResponseDocumentFormFieldSignature`<br>* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`<br>* Initials Field uses `TemplateResponseDocumentFormFieldInitials` | [default to 'checkbox'] |
|
10
|
+
| `group` | ```String``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
|
10
11
|
|
@@ -7,4 +7,5 @@ This class extends `TemplateResponseDocumentFormFieldBase`
|
|
7
7
|
| Name | Type | Description | Notes |
|
8
8
|
| ---- | ---- | ----------- | ----- |
|
9
9
|
| `type`<sup>*_required_</sup> | ```String``` | The type of this form field. See [field types](/api/reference/constants/#field-types).<br><br>* Text Field uses `TemplateResponseDocumentFormFieldText`<br>* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`<br>* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`<br>* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`<br>* Radio Field uses `TemplateResponseDocumentFormFieldRadio`<br>* Signature Field uses `TemplateResponseDocumentFormFieldSignature`<br>* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`<br>* Initials Field uses `TemplateResponseDocumentFormFieldInitials` | [default to 'date_signed'] |
|
10
|
+
| `group` | ```String``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
|
10
11
|
|