From 6377c2287eda2e037a0836bc03ac29f36e1dff5b Mon Sep 17 00:00:00 2001 From: Andrzej Danilowski Date: Tue, 12 May 2026 15:15:51 +0200 Subject: [PATCH 1/3] Release 1.11.0 --- .travis.yml | 2 +- Gemfile.lock | 2 +- README.md | 10 +- VERSION | 2 +- docs/AccountResponse.md | 1 + docs/AccountResponseSettings.md | 12 + docs/SignatureRequestApi.md | 4 + docs/SignatureRequestEditRequest.md | 2 +- ...SignatureRequestEditWithTemplateRequest.md | 2 +- docs/SignatureRequestSendRequest.md | 2 +- ...SignatureRequestSendWithTemplateRequest.md | 2 +- docs/SubSigningOptions.md | 5 +- docs/TemplateApi.md | 2 +- docs/TemplateEditResponse.md | 10 - examples/AccountCreateExample.rb | 14 +- examples/AccountCreateOauthExample.rb | 14 +- examples/AccountGetExample.rb | 10 +- examples/AccountUpdateExample.rb | 14 +- examples/AccountVerifyExample.rb | 14 +- examples/ApiAppCreateExample.rb | 14 +- examples/ApiAppDeleteExample.rb | 12 +- examples/ApiAppGetExample.rb | 14 +- examples/ApiAppListExample.rb | 20 +- examples/ApiAppUpdateExample.rb | 16 +- examples/BulkSendJobGetExample.rb | 22 +- examples/BulkSendJobListExample.rb | 20 +- examples/EmbeddedEditUrlExample.rb | 16 +- examples/EmbeddedSignUrlExample.rb | 14 +- examples/FaxDeleteExample.rb | 10 +- examples/FaxFilesExample.rb | 12 +- examples/FaxGetExample.rb | 12 +- examples/FaxLineAddUserExample.rb | 12 +- examples/FaxLineAreaCodeGetExample.rb | 12 +- examples/FaxLineCreateExample.rb | 12 +- examples/FaxLineDeleteExample.rb | 10 +- examples/FaxLineGetExample.rb | 12 +- examples/FaxLineListExample.rb | 22 +- examples/FaxLineRemoveUserExample.rb | 12 +- examples/FaxListExample.rb | 18 +- examples/FaxSendExample.rb | 12 +- examples/OauthTokenGenerateExample.rb | 10 +- examples/OauthTokenRefreshExample.rb | 10 +- examples/ReportCreateExample.rb | 12 +- ...stBulkCreateEmbeddedWithTemplateExample.rb | 12 +- ...atureRequestBulkSendWithTemplateExample.rb | 14 +- examples/SignatureRequestCancelExample.rb | 12 +- .../SignatureRequestCreateEmbeddedExample.rb | 15 +- ...uestCreateEmbeddedGroupedSignersExample.rb | 14 +- ...equestCreateEmbeddedWithTemplateExample.rb | 15 +- .../SignatureRequestEditEmbeddedExample.rb | 16 +- ...equestEditEmbeddedGroupedSignersExample.rb | 16 +- ...eRequestEditEmbeddedWithTemplateExample.rb | 16 +- examples/SignatureRequestEditExample.rb | 16 +- ...gnatureRequestEditGroupedSignersExample.rb | 16 +- ...SignatureRequestEditWithTemplateExample.rb | 16 +- .../SignatureRequestFilesAsDataUriExample.rb | 14 +- .../SignatureRequestFilesAsFileUrlExample.rb | 20 +- examples/SignatureRequestFilesExample.rb | 20 +- examples/SignatureRequestGetExample.rb | 14 +- examples/SignatureRequestListExample.rb | 24 +- .../SignatureRequestReleaseHoldExample.rb | 14 +- examples/SignatureRequestRemindExample.rb | 16 +- examples/SignatureRequestRemoveExample.rb | 10 +- examples/SignatureRequestSendExample.rb | 15 +- ...gnatureRequestSendGroupedSignersExample.rb | 14 +- ...SignatureRequestSendWithTemplateExample.rb | 15 +- examples/SignatureRequestUpdateExample.rb | 16 +- examples/TeamAddMemberAccountIdExample.rb | 20 +- examples/TeamAddMemberExample.rb | 20 +- examples/TeamCreateExample.rb | 14 +- examples/TeamDeleteExample.rb | 8 +- examples/TeamGetExample.rb | 10 +- examples/TeamInfoExample.rb | 18 +- examples/TeamInvitesExample.rb | 10 +- examples/TeamMembersExample.rb | 22 +- examples/TeamRemoveMemberAccountIdExample.rb | 14 +- examples/TeamRemoveMemberExample.rb | 14 +- examples/TeamSubTeamsExample.rb | 22 +- examples/TeamUpdateExample.rb | 14 +- examples/TemplateAddUserExample.rb | 16 +- .../TemplateCreateEmbeddedDraftExample.rb | 14 +- ...eateEmbeddedDraftFormFieldGroupsExample.rb | 14 +- ...reateEmbeddedDraftFormFieldRulesExample.rb | 14 +- ...beddedDraftFormFieldsPerDocumentExample.rb | 14 +- examples/TemplateCreateExample.rb | 14 +- .../TemplateCreateFormFieldGroupsExample.rb | 14 +- .../TemplateCreateFormFieldRulesExample.rb | 14 +- ...plateCreateFormFieldsPerDocumentExample.rb | 14 +- examples/TemplateDeleteExample.rb | 12 +- examples/TemplateFilesAsDataUriExample.rb | 14 +- examples/TemplateFilesAsFileUrlExample.rb | 20 +- examples/TemplateFilesExample.rb | 14 +- examples/TemplateGetExample.rb | 14 +- examples/TemplateListExample.rb | 24 +- examples/TemplateRemoveUserExample.rb | 16 +- examples/TemplateUpdateFilesExample.rb | 16 +- .../UnclaimedDraftCreateEmbeddedExample.rb | 14 +- ...aftCreateEmbeddedFormFieldGroupsExample.rb | 14 +- ...raftCreateEmbeddedFormFieldRulesExample.rb | 14 +- ...ateEmbeddedFormFieldsPerDocumentExample.rb | 14 +- ...dDraftCreateEmbeddedWithTemplateExample.rb | 14 +- examples/UnclaimedDraftCreateExample.rb | 14 +- ...laimedDraftCreateFormFieldGroupsExample.rb | 14 +- ...claimedDraftCreateFormFieldRulesExample.rb | 14 +- ...DraftCreateFormFieldsPerDocumentExample.rb | 14 +- .../UnclaimedDraftEditAndResendExample.rb | 16 +- lib/dropbox-sign.rb | 2 +- lib/dropbox-sign/api/template_api.rb | 4 +- lib/dropbox-sign/api_client.rb | 16 ++ lib/dropbox-sign/models/account_response.rb | 18 +- ...sponse.rb => account_response_settings.rb} | 68 ++--- .../models/signature_request_edit_request.rb | 2 +- ...ture_request_edit_with_template_request.rb | 2 +- .../models/signature_request_send_request.rb | 2 +- ...ture_request_send_with_template_request.rb | 2 +- .../models/sub_signing_options.rb | 23 +- lib/dropbox-sign/version.rb | 2 +- openapi-config.yaml | 2 +- openapi-sdk.yaml | 253 +++++++++++++----- .../api_client_typhoeus_partial.mustache | 16 ++ ...SignatureRequestCreateEmbeddedRequest.json | 6 +- ...uestCreateEmbeddedWithTemplateRequest.json | 3 +- .../SignatureRequestSendRequest.json | 6 +- ...gnatureRequestSendWithTemplateRequest.json | 3 +- test_fixtures/TemplateUpdateRequest.json | 18 ++ .../UnclaimedDraftCreateEmbeddedRequest.json | 3 +- ...raftCreateEmbeddedWithTemplateRequest.json | 3 +- .../UnclaimedDraftCreateRequest.json | 3 +- 128 files changed, 1041 insertions(+), 832 deletions(-) create mode 100644 docs/AccountResponseSettings.md delete mode 100644 docs/TemplateEditResponse.md rename lib/dropbox-sign/models/{template_edit_response.rb => account_response_settings.rb} (78%) create mode 100644 test_fixtures/TemplateUpdateRequest.json diff --git a/.travis.yml b/.travis.yml index 748f026..2ab25bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,4 +8,4 @@ script: - bundle install --path vendor/bundle - bundle exec rspec - gem build dropbox-sign.gemspec - - gem install ./dropbox-sign-1.10.0.gem + - gem install ./dropbox-sign-1.11.0.gem diff --git a/Gemfile.lock b/Gemfile.lock index 5b520e4..46c90d6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dropbox-sign (1.10.0) + dropbox-sign (1.11.0) typhoeus (~> 1.0, >= 1.0.1) GEM diff --git a/README.md b/README.md index 370dd5a..0b9f467 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ directory that corresponds to the file you want updated. This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 3.0.0 -- Package version: 1.10.0 +- Package version: 1.11.0 - Generator version: 7.12.0 - Build package: org.openapitools.codegen.languages.RubyClientCodegen @@ -47,15 +47,15 @@ gem build dropbox-sign.gemspec Then install the gem locally: ```shell -gem install ./dropbox-sign-1.10.0.gem +gem install ./dropbox-sign-1.11.0.gem ``` -(for development, run `gem install --dev ./dropbox-sign-1.10.0.gem` to install the development dependencies) +(for development, run `gem install --dev ./dropbox-sign-1.11.0.gem` to install the development dependencies) Finally add this to the Gemfile: - gem 'dropbox-sign', '~> 1.10.0' + gem 'dropbox-sign', '~> 1.11.0' ### Install from Git @@ -189,6 +189,7 @@ All URIs are relative to *https://api.hellosign.com/v3* - [Dropbox::Sign::AccountGetResponse](docs/AccountGetResponse.md) - [Dropbox::Sign::AccountResponse](docs/AccountResponse.md) - [Dropbox::Sign::AccountResponseQuotas](docs/AccountResponseQuotas.md) + - [Dropbox::Sign::AccountResponseSettings](docs/AccountResponseSettings.md) - [Dropbox::Sign::AccountResponseUsage](docs/AccountResponseUsage.md) - [Dropbox::Sign::AccountUpdateRequest](docs/AccountUpdateRequest.md) - [Dropbox::Sign::AccountVerifyRequest](docs/AccountVerifyRequest.md) @@ -332,7 +333,6 @@ All URIs are relative to *https://api.hellosign.com/v3* - [Dropbox::Sign::TemplateCreateRequest](docs/TemplateCreateRequest.md) - [Dropbox::Sign::TemplateCreateResponse](docs/TemplateCreateResponse.md) - [Dropbox::Sign::TemplateCreateResponseTemplate](docs/TemplateCreateResponseTemplate.md) - - [Dropbox::Sign::TemplateEditResponse](docs/TemplateEditResponse.md) - [Dropbox::Sign::TemplateGetResponse](docs/TemplateGetResponse.md) - [Dropbox::Sign::TemplateListResponse](docs/TemplateListResponse.md) - [Dropbox::Sign::TemplateRemoveUserRequest](docs/TemplateRemoveUserRequest.md) diff --git a/VERSION b/VERSION index 81c871d..1cac385 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.10.0 +1.11.0 diff --git a/docs/AccountResponse.md b/docs/AccountResponse.md index 294f294..aeb1b38 100644 --- a/docs/AccountResponse.md +++ b/docs/AccountResponse.md @@ -17,4 +17,5 @@ | `team_id` | ```String``` | The id of the team account belongs to. | | | `locale` | ```String``` | The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. | | | `usage` | [```AccountResponseUsage```](AccountResponseUsage.md) | | | +| `settings` | [```AccountResponseSettings```](AccountResponseSettings.md) | | | diff --git a/docs/AccountResponseSettings.md b/docs/AccountResponseSettings.md new file mode 100644 index 0000000..642280e --- /dev/null +++ b/docs/AccountResponseSettings.md @@ -0,0 +1,12 @@ +# Dropbox::Sign::AccountResponseSettings + +Subset of configured settings + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| `signer_access_codes` | ```Boolean``` | Returns `true` if _Custom access codes_ is enabled in Admin Console. [Read more](https://developers.hellosign.com/docs/sms-tools/walkthrough). | | +| `sms_delivery` | ```Boolean``` | Returns `true` if _Text message_ is enabled in Admin Console. [Read more](https://developers.hellosign.com/docs/sms-tools/walkthrough). | | +| `sms_authentication` | ```Boolean``` | Returns `true` if _Signer authentication_ is enabled in Admin Console. [Read more](https://developers.hellosign.com/docs/sms-tools/walkthrough). | | + diff --git a/docs/SignatureRequestApi.md b/docs/SignatureRequestApi.md index 964273c..e3f4b36 100644 --- a/docs/SignatureRequestApi.md +++ b/docs/SignatureRequestApi.md @@ -390,6 +390,7 @@ signing_options.draw = true signing_options.phone = false signing_options.type = true signing_options.upload = true +signing_options.force_advanced_signature_details = false signers_1 = Dropbox::Sign::SubSignatureRequestSigner.new signers_1.name = "Jack" @@ -497,6 +498,7 @@ signing_options.draw = true signing_options.phone = false signing_options.type = true signing_options.upload = true +signing_options.force_advanced_signature_details = false signers_1 = Dropbox::Sign::SubSignatureRequestTemplateSigner.new signers_1.role = "Client" @@ -1609,6 +1611,7 @@ signing_options.draw = true signing_options.phone = false signing_options.type = true signing_options.upload = true +signing_options.force_advanced_signature_details = false signers_1 = Dropbox::Sign::SubSignatureRequestSigner.new signers_1.name = "Jack" @@ -1723,6 +1726,7 @@ signing_options.draw = true signing_options.phone = false signing_options.type = true signing_options.upload = true +signing_options.force_advanced_signature_details = false signers_1 = Dropbox::Sign::SubSignatureRequestTemplateSigner.new signers_1.role = "Client" diff --git a/docs/SignatureRequestEditRequest.md b/docs/SignatureRequestEditRequest.md index 39d575a..ce53250 100644 --- a/docs/SignatureRequestEditRequest.md +++ b/docs/SignatureRequestEditRequest.md @@ -21,7 +21,7 @@ | `form_field_rules` | [```Array```](SubFormFieldRule.md) | Conditional Logic rules for fields defined in `form_fields_per_document`. | | | `form_fields_per_document` | [```Array```](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | | | `hide_text_tags` | ```Boolean``` | Enables automatic Text Tag removal when set to true.

**NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. | [default to false] | -| `is_eid` | ```Boolean``` | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. | [default to false] | +| `is_eid` | ```Boolean``` | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** You need the eID add-on to use this feature. Please [contact sales](https://sign.dropbox.com/form/contact-sales) for more information. Cannot be used in `test_mode`. Only works on requests with one signer. | [default to false] | | `message` | ```String``` | The custom message in the email that will be sent to the signers. | | | `metadata` | ```Hash``` | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | | | `signing_options` | [```SubSigningOptions```](SubSigningOptions.md) | | | diff --git a/docs/SignatureRequestEditWithTemplateRequest.md b/docs/SignatureRequestEditWithTemplateRequest.md index 12b4bee..f4391eb 100644 --- a/docs/SignatureRequestEditWithTemplateRequest.md +++ b/docs/SignatureRequestEditWithTemplateRequest.md @@ -14,7 +14,7 @@ | `custom_fields` | [```Array```](SubCustomField.md) | An array defining values and options for custom fields. Required when a custom field exists in the Template. | | | `files` | ```Array``` | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | | | `file_urls` | ```Array``` | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | | -| `is_eid` | ```Boolean``` | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. | [default to false] | +| `is_eid` | ```Boolean``` | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** You need the eID add-on to use this feature. Please [contact sales](https://sign.dropbox.com/form/contact-sales) for more information. Cannot be used in `test_mode`. Only works on requests with one signer. | [default to false] | | `message` | ```String``` | The custom message in the email that will be sent to the signers. | | | `metadata` | ```Hash``` | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | | | `signing_options` | [```SubSigningOptions```](SubSigningOptions.md) | | | diff --git a/docs/SignatureRequestSendRequest.md b/docs/SignatureRequestSendRequest.md index 683075e..ca6f167 100644 --- a/docs/SignatureRequestSendRequest.md +++ b/docs/SignatureRequestSendRequest.md @@ -22,7 +22,7 @@ | `form_fields_per_document` | [```Array```](SubFormFieldsPerDocumentBase.md) | The fields that should appear on the document, expressed as an array of objects. (For more details you can read about it here: [Using Form Fields per Document](/docs/openapi/form-fields-per-document).)

**NOTE:** Fields like **text**, **dropdown**, **checkbox**, **radio**, and **hyperlink** have additional required and optional parameters. Check out the list of [additional parameters](/api/reference/constants/#form-fields-per-document) for these field types.

* Text Field use `SubFormFieldsPerDocumentText`
* Dropdown Field use `SubFormFieldsPerDocumentDropdown`
* Hyperlink Field use `SubFormFieldsPerDocumentHyperlink`
* Checkbox Field use `SubFormFieldsPerDocumentCheckbox`
* Radio Field use `SubFormFieldsPerDocumentRadio`
* Signature Field use `SubFormFieldsPerDocumentSignature`
* Date Signed Field use `SubFormFieldsPerDocumentDateSigned`
* Initials Field use `SubFormFieldsPerDocumentInitials`
* Text Merge Field use `SubFormFieldsPerDocumentTextMerge`
* Checkbox Merge Field use `SubFormFieldsPerDocumentCheckboxMerge` | | | `hide_text_tags` | ```Boolean``` | Enables automatic Text Tag removal when set to true.

**NOTE:** Removing text tags this way can cause unwanted clipping. We recommend leaving this setting on `false` and instead hiding your text tags using white text or a similar approach. See the [Text Tags Walkthrough](https://app.hellosign.com/api/textTagsWalkthrough#TextTagIntro) for more information. | [default to false] | | `is_qualified_signature` | ```Boolean``` | Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br>
**NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. | [default to false] | -| `is_eid` | ```Boolean``` | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. | [default to false] | +| `is_eid` | ```Boolean``` | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** You need the eID add-on to use this feature. Please [contact sales](https://sign.dropbox.com/form/contact-sales) for more information. Cannot be used in `test_mode`. Only works on requests with one signer. | [default to false] | | `message` | ```String``` | The custom message in the email that will be sent to the signers. | | | `metadata` | ```Hash``` | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | | | `signing_options` | [```SubSigningOptions```](SubSigningOptions.md) | | | diff --git a/docs/SignatureRequestSendWithTemplateRequest.md b/docs/SignatureRequestSendWithTemplateRequest.md index 94e17b8..39b1652 100644 --- a/docs/SignatureRequestSendWithTemplateRequest.md +++ b/docs/SignatureRequestSendWithTemplateRequest.md @@ -15,7 +15,7 @@ | `files` | ```Array``` | Use `files[]` to indicate the uploaded file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | | | `file_urls` | ```Array``` | Use `file_urls[]` to have Dropbox Sign download the file(s) to send for signature.

This endpoint requires either **files** or **file_urls[]**, but not both. | | | `is_qualified_signature` | ```Boolean``` | Send with a value of `true` if you wish to enable [Qualified Electronic Signatures](https://www.hellosign.com/features/qualified-electronic-signatures) (QES), which requires a face-to-face call to verify the signer's identity.<br>
**NOTE:** QES is only available on the Premium API plan as an add-on purchase. Cannot be used in `test_mode`. Only works on requests with one signer. | [default to false] | -| `is_eid` | ```Boolean``` | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. | [default to false] | +| `is_eid` | ```Boolean``` | Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.<br>
**NOTE:** You need the eID add-on to use this feature. Please [contact sales](https://sign.dropbox.com/form/contact-sales) for more information. Cannot be used in `test_mode`. Only works on requests with one signer. | [default to false] | | `message` | ```String``` | The custom message in the email that will be sent to the signers. | | | `metadata` | ```Hash``` | Key-value data that should be attached to the signature request. This metadata is included in all API responses and events involving the signature request. For example, use the metadata field to store a signer's order number for look up when receiving events for the signature request.

Each request can include up to 10 metadata keys (or 50 nested metadata keys), with key names up to 40 characters long and values up to 1000 characters long. | | | `signing_options` | [```SubSigningOptions```](SubSigningOptions.md) | | | diff --git a/docs/SubSigningOptions.md b/docs/SubSigningOptions.md index d2eb449..026659a 100644 --- a/docs/SubSigningOptions.md +++ b/docs/SubSigningOptions.md @@ -1,9 +1,11 @@ # Dropbox::Sign::SubSigningOptions -This allows the requester to specify the types allowed for creating a signature. +This allows the requester to specify the types allowed for creating a signature and specify another signing options. **NOTE:** If `signing_options` are not defined in the request, the allowed types will default to those specified in the account settings. +**NOTE:** If `force_advanced_signature_details` is set, allowed types has to be defined too. + ## Properties | Name | Type | Description | Notes | @@ -13,4 +15,5 @@ This allows the requester to specify the types allowed for creating a signature. | `phone` | ```Boolean``` | Allows using a smartphone to email the signature | [default to false] | | `type` | ```Boolean``` | Allows typing the signature | [default to false] | | `upload` | ```Boolean``` | Allows uploading the signature | [default to false] | +| `force_advanced_signature_details` | ```Boolean``` | Turning on advanced signature details for the signature request | [default to false] | diff --git a/docs/TemplateApi.md b/docs/TemplateApi.md index 315ced9..ffd6ec0 100644 --- a/docs/TemplateApi.md +++ b/docs/TemplateApi.md @@ -97,7 +97,7 @@ end Create Template -Creates a template that can then be used. +Creates a template that can be used in future signature requests. If `client_id` is provided, the template will be created as an embedded template. Embedded templates can be used for embedded signature requests and can be edited later by generating a new `edit_url` with [/embedded/edit_url/{template_id}](/api/reference/operation/embeddedEditUrl/). Template creation may complete asynchronously after the initial request is accepted. It is recommended that a callback be implemented to listen for the callback event. A `template_created` event indicates the template is ready to use, while a `template_error` event indicates there was a problem while creating the template. 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 and retry the request if necessary. ### Examples diff --git a/docs/TemplateEditResponse.md b/docs/TemplateEditResponse.md deleted file mode 100644 index 5b46080..0000000 --- a/docs/TemplateEditResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Dropbox::Sign::TemplateEditResponse - - - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| `template_id`*_required_ | ```String``` | The id of the Template. | | - diff --git a/examples/AccountCreateExample.rb b/examples/AccountCreateExample.rb index 0eddffa..6ce6db2 100644 --- a/examples/AccountCreateExample.rb +++ b/examples/AccountCreateExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end account_create_request = Dropbox::Sign::AccountCreateRequest.new account_create_request.email_address = "newuser@dropboxsign.com" begin - response = Dropbox::Sign::AccountApi.new.account_create( - account_create_request, - ) + response = Dropbox::Sign::AccountApi.new.account_create( + account_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling AccountApi#account_create: #{e}" + puts "Exception when calling AccountApi#account_create: #{e}" end diff --git a/examples/AccountCreateOauthExample.rb b/examples/AccountCreateOauthExample.rb index 21255a6..26ebdc7 100644 --- a/examples/AccountCreateOauthExample.rb +++ b/examples/AccountCreateOauthExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end account_create_request = Dropbox::Sign::AccountCreateRequest.new @@ -12,11 +12,11 @@ account_create_request.client_secret = "1d14434088507ffa390e6f5528465" begin - response = Dropbox::Sign::AccountApi.new.account_create( - account_create_request, - ) + response = Dropbox::Sign::AccountApi.new.account_create( + account_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling AccountApi#account_create: #{e}" + puts "Exception when calling AccountApi#account_create: #{e}" end diff --git a/examples/AccountGetExample.rb b/examples/AccountGetExample.rb index ee63869..3b8fb5d 100644 --- a/examples/AccountGetExample.rb +++ b/examples/AccountGetExample.rb @@ -2,14 +2,14 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::AccountApi.new.account_get + response = Dropbox::Sign::AccountApi.new.account_get - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling AccountApi#account_get: #{e}" + puts "Exception when calling AccountApi#account_get: #{e}" end diff --git a/examples/AccountUpdateExample.rb b/examples/AccountUpdateExample.rb index 4a8d4de..f8d7f1b 100644 --- a/examples/AccountUpdateExample.rb +++ b/examples/AccountUpdateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end account_update_request = Dropbox::Sign::AccountUpdateRequest.new @@ -11,11 +11,11 @@ account_update_request.locale = "en-US" begin - response = Dropbox::Sign::AccountApi.new.account_update( - account_update_request, - ) + response = Dropbox::Sign::AccountApi.new.account_update( + account_update_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling AccountApi#account_update: #{e}" + puts "Exception when calling AccountApi#account_update: #{e}" end diff --git a/examples/AccountVerifyExample.rb b/examples/AccountVerifyExample.rb index 01ef2e9..8e57aff 100644 --- a/examples/AccountVerifyExample.rb +++ b/examples/AccountVerifyExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end account_verify_request = Dropbox::Sign::AccountVerifyRequest.new account_verify_request.email_address = "some_user@dropboxsign.com" begin - response = Dropbox::Sign::AccountApi.new.account_verify( - account_verify_request, - ) + response = Dropbox::Sign::AccountApi.new.account_verify( + account_verify_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling AccountApi#account_verify: #{e}" + puts "Exception when calling AccountApi#account_verify: #{e}" end diff --git a/examples/ApiAppCreateExample.rb b/examples/ApiAppCreateExample.rb index 479de3b..d2b9597 100644 --- a/examples/ApiAppCreateExample.rb +++ b/examples/ApiAppCreateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end oauth = Dropbox::Sign::SubOAuth.new @@ -27,11 +27,11 @@ api_app_create_request.white_labeling_options = white_labeling_options begin - response = Dropbox::Sign::ApiAppApi.new.api_app_create( - api_app_create_request, - ) + response = Dropbox::Sign::ApiAppApi.new.api_app_create( + api_app_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling ApiAppApi#api_app_create: #{e}" + puts "Exception when calling ApiAppApi#api_app_create: #{e}" end diff --git a/examples/ApiAppDeleteExample.rb b/examples/ApiAppDeleteExample.rb index e6f97a9..def7fb6 100644 --- a/examples/ApiAppDeleteExample.rb +++ b/examples/ApiAppDeleteExample.rb @@ -2,14 +2,14 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - Dropbox::Sign::ApiAppApi.new.api_app_delete( - "0dd3b823a682527788c4e40cb7b6f7e9", # client_id - ) + Dropbox::Sign::ApiAppApi.new.api_app_delete( + "0dd3b823a682527788c4e40cb7b6f7e9", # client_id + ) rescue Dropbox::Sign::ApiError => e - puts "Exception when calling ApiAppApi#api_app_delete: #{e}" + puts "Exception when calling ApiAppApi#api_app_delete: #{e}" end diff --git a/examples/ApiAppGetExample.rb b/examples/ApiAppGetExample.rb index cc708c1..f40c92b 100644 --- a/examples/ApiAppGetExample.rb +++ b/examples/ApiAppGetExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::ApiAppApi.new.api_app_get( - "0dd3b823a682527788c4e40cb7b6f7e9", # client_id - ) + response = Dropbox::Sign::ApiAppApi.new.api_app_get( + "0dd3b823a682527788c4e40cb7b6f7e9", # client_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling ApiAppApi#api_app_get: #{e}" + puts "Exception when calling ApiAppApi#api_app_get: #{e}" end diff --git a/examples/ApiAppListExample.rb b/examples/ApiAppListExample.rb index b70253e..3e776c6 100644 --- a/examples/ApiAppListExample.rb +++ b/examples/ApiAppListExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::ApiAppApi.new.api_app_list( - { - page: 1, - page_size: 20, - }, - ) + response = Dropbox::Sign::ApiAppApi.new.api_app_list( + { + page: 1, + page_size: 20, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling ApiAppApi#api_app_list: #{e}" + puts "Exception when calling ApiAppApi#api_app_list: #{e}" end diff --git a/examples/ApiAppUpdateExample.rb b/examples/ApiAppUpdateExample.rb index 3f4a947..e973b35 100644 --- a/examples/ApiAppUpdateExample.rb +++ b/examples/ApiAppUpdateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end oauth = Dropbox::Sign::SubOAuth.new @@ -28,12 +28,12 @@ api_app_update_request.white_labeling_options = white_labeling_options begin - response = Dropbox::Sign::ApiAppApi.new.api_app_update( - "0dd3b823a682527788c4e40cb7b6f7e9", # client_id - api_app_update_request, - ) + response = Dropbox::Sign::ApiAppApi.new.api_app_update( + "0dd3b823a682527788c4e40cb7b6f7e9", # client_id + api_app_update_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling ApiAppApi#api_app_update: #{e}" + puts "Exception when calling ApiAppApi#api_app_update: #{e}" end diff --git a/examples/BulkSendJobGetExample.rb b/examples/BulkSendJobGetExample.rb index 54f0d44..bf4b585 100644 --- a/examples/BulkSendJobGetExample.rb +++ b/examples/BulkSendJobGetExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::BulkSendJobApi.new.bulk_send_job_get( - "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174", # bulk_send_job_id - { - page: 1, - page_size: 20, - }, - ) + response = Dropbox::Sign::BulkSendJobApi.new.bulk_send_job_get( + "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174", # bulk_send_job_id + { + page: 1, + page_size: 20, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling BulkSendJobApi#bulk_send_job_get: #{e}" + puts "Exception when calling BulkSendJobApi#bulk_send_job_get: #{e}" end diff --git a/examples/BulkSendJobListExample.rb b/examples/BulkSendJobListExample.rb index efbdc90..60e8c1b 100644 --- a/examples/BulkSendJobListExample.rb +++ b/examples/BulkSendJobListExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::BulkSendJobApi.new.bulk_send_job_list( - { - page: 1, - page_size: 20, - }, - ) + response = Dropbox::Sign::BulkSendJobApi.new.bulk_send_job_list( + { + page: 1, + page_size: 20, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling BulkSendJobApi#bulk_send_job_list: #{e}" + puts "Exception when calling BulkSendJobApi#bulk_send_job_list: #{e}" end diff --git a/examples/EmbeddedEditUrlExample.rb b/examples/EmbeddedEditUrlExample.rb index 90803f5..8c110f6 100644 --- a/examples/EmbeddedEditUrlExample.rb +++ b/examples/EmbeddedEditUrlExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end merge_fields = [ @@ -16,12 +16,12 @@ embedded_edit_url_request.merge_fields = merge_fields begin - response = Dropbox::Sign::EmbeddedApi.new.embedded_edit_url( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - embedded_edit_url_request, - ) + response = Dropbox::Sign::EmbeddedApi.new.embedded_edit_url( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + embedded_edit_url_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling EmbeddedApi#embedded_edit_url: #{e}" + puts "Exception when calling EmbeddedApi#embedded_edit_url: #{e}" end diff --git a/examples/EmbeddedSignUrlExample.rb b/examples/EmbeddedSignUrlExample.rb index 3d3967d..dd08e5a 100644 --- a/examples/EmbeddedSignUrlExample.rb +++ b/examples/EmbeddedSignUrlExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::EmbeddedApi.new.embedded_sign_url( - "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b", # signature_id - ) + response = Dropbox::Sign::EmbeddedApi.new.embedded_sign_url( + "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b", # signature_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling EmbeddedApi#embedded_sign_url: #{e}" + puts "Exception when calling EmbeddedApi#embedded_sign_url: #{e}" end diff --git a/examples/FaxDeleteExample.rb b/examples/FaxDeleteExample.rb index ba55cc3..6caa9d6 100644 --- a/examples/FaxDeleteExample.rb +++ b/examples/FaxDeleteExample.rb @@ -2,13 +2,13 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - Dropbox::Sign::FaxApi.new.fax_delete( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id - ) + Dropbox::Sign::FaxApi.new.fax_delete( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id + ) rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxApi#fax_delete: #{e}" + puts "Exception when calling FaxApi#fax_delete: #{e}" end diff --git a/examples/FaxFilesExample.rb b/examples/FaxFilesExample.rb index c8364b9..b44d604 100644 --- a/examples/FaxFilesExample.rb +++ b/examples/FaxFilesExample.rb @@ -2,15 +2,15 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - response = Dropbox::Sign::FaxApi.new.fax_files( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id - ) + response = Dropbox::Sign::FaxApi.new.fax_files( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id + ) - FileUtils.cp(response.path, "./file_response") + FileUtils.cp(response.path, "./file_response") rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxApi#fax_files: #{e}" + puts "Exception when calling FaxApi#fax_files: #{e}" end diff --git a/examples/FaxGetExample.rb b/examples/FaxGetExample.rb index 6f2a651..692ae1c 100644 --- a/examples/FaxGetExample.rb +++ b/examples/FaxGetExample.rb @@ -2,15 +2,15 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - response = Dropbox::Sign::FaxApi.new.fax_get( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id - ) + response = Dropbox::Sign::FaxApi.new.fax_get( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxApi#fax_get: #{e}" + puts "Exception when calling FaxApi#fax_get: #{e}" end diff --git a/examples/FaxLineAddUserExample.rb b/examples/FaxLineAddUserExample.rb index 2d3f74b..4d7f568 100644 --- a/examples/FaxLineAddUserExample.rb +++ b/examples/FaxLineAddUserExample.rb @@ -2,7 +2,7 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end fax_line_add_user_request = Dropbox::Sign::FaxLineAddUserRequest.new @@ -10,11 +10,11 @@ fax_line_add_user_request.email_address = "member@dropboxsign.com" begin - response = Dropbox::Sign::FaxLineApi.new.fax_line_add_user( - fax_line_add_user_request, - ) + response = Dropbox::Sign::FaxLineApi.new.fax_line_add_user( + fax_line_add_user_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_add_user: #{e}" + puts "Exception when calling FaxLineApi#fax_line_add_user: #{e}" end diff --git a/examples/FaxLineAreaCodeGetExample.rb b/examples/FaxLineAreaCodeGetExample.rb index 50e6e95..75c3a3c 100644 --- a/examples/FaxLineAreaCodeGetExample.rb +++ b/examples/FaxLineAreaCodeGetExample.rb @@ -2,15 +2,15 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - response = Dropbox::Sign::FaxLineApi.new.fax_line_area_code_get( - "US", # country - ) + response = Dropbox::Sign::FaxLineApi.new.fax_line_area_code_get( + "US", # country + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_area_code_get: #{e}" + puts "Exception when calling FaxLineApi#fax_line_area_code_get: #{e}" end diff --git a/examples/FaxLineCreateExample.rb b/examples/FaxLineCreateExample.rb index 22b0b08..5342e5c 100644 --- a/examples/FaxLineCreateExample.rb +++ b/examples/FaxLineCreateExample.rb @@ -2,7 +2,7 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end fax_line_create_request = Dropbox::Sign::FaxLineCreateRequest.new @@ -10,11 +10,11 @@ fax_line_create_request.country = "US" begin - response = Dropbox::Sign::FaxLineApi.new.fax_line_create( - fax_line_create_request, - ) + response = Dropbox::Sign::FaxLineApi.new.fax_line_create( + fax_line_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_create: #{e}" + puts "Exception when calling FaxLineApi#fax_line_create: #{e}" end diff --git a/examples/FaxLineDeleteExample.rb b/examples/FaxLineDeleteExample.rb index c81fc27..c54da52 100644 --- a/examples/FaxLineDeleteExample.rb +++ b/examples/FaxLineDeleteExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end fax_line_delete_request = Dropbox::Sign::FaxLineDeleteRequest.new fax_line_delete_request.number = "[FAX_NUMBER]" begin - Dropbox::Sign::FaxLineApi.new.fax_line_delete( - fax_line_delete_request, - ) + Dropbox::Sign::FaxLineApi.new.fax_line_delete( + fax_line_delete_request, + ) rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_delete: #{e}" + puts "Exception when calling FaxLineApi#fax_line_delete: #{e}" end diff --git a/examples/FaxLineGetExample.rb b/examples/FaxLineGetExample.rb index 2215bc6..d4a749b 100644 --- a/examples/FaxLineGetExample.rb +++ b/examples/FaxLineGetExample.rb @@ -2,15 +2,15 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - response = Dropbox::Sign::FaxLineApi.new.fax_line_get( - "123-123-1234", # number - ) + response = Dropbox::Sign::FaxLineApi.new.fax_line_get( + "123-123-1234", # number + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_get: #{e}" + puts "Exception when calling FaxLineApi#fax_line_get: #{e}" end diff --git a/examples/FaxLineListExample.rb b/examples/FaxLineListExample.rb index 9bae085..0da5a39 100644 --- a/examples/FaxLineListExample.rb +++ b/examples/FaxLineListExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - response = Dropbox::Sign::FaxLineApi.new.fax_line_list( - { - account_id: "ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97", - page: 1, - page_size: 20, - show_team_lines: nil, - }, - ) + response = Dropbox::Sign::FaxLineApi.new.fax_line_list( + { + account_id: "ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97", + page: 1, + page_size: 20, + show_team_lines: nil, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_list: #{e}" + puts "Exception when calling FaxLineApi#fax_line_list: #{e}" end diff --git a/examples/FaxLineRemoveUserExample.rb b/examples/FaxLineRemoveUserExample.rb index a8b2816..4f67f7e 100644 --- a/examples/FaxLineRemoveUserExample.rb +++ b/examples/FaxLineRemoveUserExample.rb @@ -2,7 +2,7 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end fax_line_remove_user_request = Dropbox::Sign::FaxLineRemoveUserRequest.new @@ -10,11 +10,11 @@ fax_line_remove_user_request.email_address = "member@dropboxsign.com" begin - response = Dropbox::Sign::FaxLineApi.new.fax_line_remove_user( - fax_line_remove_user_request, - ) + response = Dropbox::Sign::FaxLineApi.new.fax_line_remove_user( + fax_line_remove_user_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_remove_user: #{e}" + puts "Exception when calling FaxLineApi#fax_line_remove_user: #{e}" end diff --git a/examples/FaxListExample.rb b/examples/FaxListExample.rb index 1155ce1..519e04d 100644 --- a/examples/FaxListExample.rb +++ b/examples/FaxListExample.rb @@ -2,18 +2,18 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - response = Dropbox::Sign::FaxApi.new.fax_list( - { - page: 1, - page_size: 20, - }, - ) + response = Dropbox::Sign::FaxApi.new.fax_list( + { + page: 1, + page_size: 20, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxApi#fax_list: #{e}" + puts "Exception when calling FaxApi#fax_list: #{e}" end diff --git a/examples/FaxSendExample.rb b/examples/FaxSendExample.rb index b5de600..4faeaa7 100644 --- a/examples/FaxSendExample.rb +++ b/examples/FaxSendExample.rb @@ -2,7 +2,7 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end fax_send_request = Dropbox::Sign::FaxSendRequest.new @@ -18,11 +18,11 @@ ] begin - response = Dropbox::Sign::FaxApi.new.fax_send( - fax_send_request, - ) + response = Dropbox::Sign::FaxApi.new.fax_send( + fax_send_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxApi#fax_send: #{e}" + puts "Exception when calling FaxApi#fax_send: #{e}" end diff --git a/examples/OauthTokenGenerateExample.rb b/examples/OauthTokenGenerateExample.rb index 3f2e9a4..4755382 100644 --- a/examples/OauthTokenGenerateExample.rb +++ b/examples/OauthTokenGenerateExample.rb @@ -12,11 +12,11 @@ o_auth_token_generate_request.grant_type = "authorization_code" begin - response = Dropbox::Sign::OAuthApi.new.oauth_token_generate( - o_auth_token_generate_request, - ) + response = Dropbox::Sign::OAuthApi.new.oauth_token_generate( + o_auth_token_generate_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling OAuthApi#oauth_token_generate: #{e}" + puts "Exception when calling OAuthApi#oauth_token_generate: #{e}" end diff --git a/examples/OauthTokenRefreshExample.rb b/examples/OauthTokenRefreshExample.rb index 7862b67..5068b44 100644 --- a/examples/OauthTokenRefreshExample.rb +++ b/examples/OauthTokenRefreshExample.rb @@ -9,11 +9,11 @@ o_auth_token_refresh_request.refresh_token = "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3" begin - response = Dropbox::Sign::OAuthApi.new.oauth_token_refresh( - o_auth_token_refresh_request, - ) + response = Dropbox::Sign::OAuthApi.new.oauth_token_refresh( + o_auth_token_refresh_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling OAuthApi#oauth_token_refresh: #{e}" + puts "Exception when calling OAuthApi#oauth_token_refresh: #{e}" end diff --git a/examples/ReportCreateExample.rb b/examples/ReportCreateExample.rb index 2b5587d..d5169ca 100644 --- a/examples/ReportCreateExample.rb +++ b/examples/ReportCreateExample.rb @@ -2,7 +2,7 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end report_create_request = Dropbox::Sign::ReportCreateRequest.new @@ -14,11 +14,11 @@ ] begin - response = Dropbox::Sign::ReportApi.new.report_create( - report_create_request, - ) + response = Dropbox::Sign::ReportApi.new.report_create( + report_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling ReportApi#report_create: #{e}" + puts "Exception when calling ReportApi#report_create: #{e}" end diff --git a/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb b/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb index 82d3d8a..e01b04f 100644 --- a/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb +++ b/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb @@ -2,7 +2,7 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end signer_list_2_custom_fields_1 = Dropbox::Sign::SubBulkSignerListCustomField.new @@ -74,11 +74,11 @@ signature_request_bulk_create_embedded_with_template_request.ccs = ccs begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_bulk_create_embedded_with_template( - signature_request_bulk_create_embedded_with_template_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_bulk_create_embedded_with_template( + signature_request_bulk_create_embedded_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_bulk_create_embedded_with_template: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_bulk_create_embedded_with_template: #{e}" end diff --git a/examples/SignatureRequestBulkSendWithTemplateExample.rb b/examples/SignatureRequestBulkSendWithTemplateExample.rb index 6254c03..27f2d66 100644 --- a/examples/SignatureRequestBulkSendWithTemplateExample.rb +++ b/examples/SignatureRequestBulkSendWithTemplateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signer_list_2_custom_fields_1 = Dropbox::Sign::SubBulkSignerListCustomField.new @@ -74,11 +74,11 @@ signature_request_bulk_send_with_template_request.ccs = ccs begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_bulk_send_with_template( - signature_request_bulk_send_with_template_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_bulk_send_with_template( + signature_request_bulk_send_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_bulk_send_with_template: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_bulk_send_with_template: #{e}" end diff --git a/examples/SignatureRequestCancelExample.rb b/examples/SignatureRequestCancelExample.rb index f516882..9f3ff95 100644 --- a/examples/SignatureRequestCancelExample.rb +++ b/examples/SignatureRequestCancelExample.rb @@ -2,14 +2,14 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - Dropbox::Sign::SignatureRequestApi.new.signature_request_cancel( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - ) + Dropbox::Sign::SignatureRequestApi.new.signature_request_cancel( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + ) rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_cancel: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_cancel: #{e}" end diff --git a/examples/SignatureRequestCreateEmbeddedExample.rb b/examples/SignatureRequestCreateEmbeddedExample.rb index 9be4112..3b33e2f 100644 --- a/examples/SignatureRequestCreateEmbeddedExample.rb +++ b/examples/SignatureRequestCreateEmbeddedExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signing_options = Dropbox::Sign::SubSigningOptions.new @@ -12,6 +12,7 @@ signing_options.phone = false signing_options.type = true signing_options.upload = true +signing_options.force_advanced_signature_details = false signers_1 = Dropbox::Sign::SubSignatureRequestSigner.new signers_1.name = "Jack" @@ -45,11 +46,11 @@ signature_request_create_embedded_request.signers = signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_create_embedded( - signature_request_create_embedded_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_create_embedded( + signature_request_create_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_create_embedded: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_create_embedded: #{e}" end diff --git a/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.rb b/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.rb index c9545ba..9910ee8 100644 --- a/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.rb +++ b/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end grouped_signers_2_signers_1 = Dropbox::Sign::SubSignatureRequestSigner.new @@ -71,11 +71,11 @@ signature_request_create_embedded_request.grouped_signers = grouped_signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_create_embedded( - signature_request_create_embedded_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_create_embedded( + signature_request_create_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_create_embedded: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_create_embedded: #{e}" end diff --git a/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb b/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb index dbcd4af..18d1d8b 100644 --- a/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb +++ b/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signing_options = Dropbox::Sign::SubSigningOptions.new @@ -12,6 +12,7 @@ signing_options.phone = false signing_options.type = true signing_options.upload = true +signing_options.force_advanced_signature_details = false signers_1 = Dropbox::Sign::SubSignatureRequestTemplateSigner.new signers_1.role = "Client" @@ -34,11 +35,11 @@ signature_request_create_embedded_with_template_request.signers = signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_create_embedded_with_template( - signature_request_create_embedded_with_template_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_create_embedded_with_template( + signature_request_create_embedded_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_create_embedded_with_template: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_create_embedded_with_template: #{e}" end diff --git a/examples/SignatureRequestEditEmbeddedExample.rb b/examples/SignatureRequestEditEmbeddedExample.rb index 6228002..0e19237 100644 --- a/examples/SignatureRequestEditEmbeddedExample.rb +++ b/examples/SignatureRequestEditEmbeddedExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signing_options = Dropbox::Sign::SubSigningOptions.new @@ -45,12 +45,12 @@ signature_request_edit_embedded_request.signers = signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_embedded( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_edit_embedded_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_embedded( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_edit_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_edit_embedded: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_edit_embedded: #{e}" end diff --git a/examples/SignatureRequestEditEmbeddedGroupedSignersExample.rb b/examples/SignatureRequestEditEmbeddedGroupedSignersExample.rb index 6a0f05c..0fc7bc7 100644 --- a/examples/SignatureRequestEditEmbeddedGroupedSignersExample.rb +++ b/examples/SignatureRequestEditEmbeddedGroupedSignersExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end grouped_signers_2_signers_1 = Dropbox::Sign::SubSignatureRequestSigner.new @@ -71,12 +71,12 @@ signature_request_edit_embedded_request.grouped_signers = grouped_signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_embedded( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_edit_embedded_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_embedded( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_edit_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_edit_embedded: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_edit_embedded: #{e}" end diff --git a/examples/SignatureRequestEditEmbeddedWithTemplateExample.rb b/examples/SignatureRequestEditEmbeddedWithTemplateExample.rb index 9813d7b..f504f19 100644 --- a/examples/SignatureRequestEditEmbeddedWithTemplateExample.rb +++ b/examples/SignatureRequestEditEmbeddedWithTemplateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signing_options = Dropbox::Sign::SubSigningOptions.new @@ -34,12 +34,12 @@ signature_request_edit_embedded_with_template_request.signers = signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_embedded_with_template( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_edit_embedded_with_template_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_embedded_with_template( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_edit_embedded_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_edit_embedded_with_template: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_edit_embedded_with_template: #{e}" end diff --git a/examples/SignatureRequestEditExample.rb b/examples/SignatureRequestEditExample.rb index 9c1d94b..e55d7be 100644 --- a/examples/SignatureRequestEditExample.rb +++ b/examples/SignatureRequestEditExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -55,12 +55,12 @@ signature_request_edit_request.signers = signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_edit_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_edit_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_edit: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_edit: #{e}" end diff --git a/examples/SignatureRequestEditGroupedSignersExample.rb b/examples/SignatureRequestEditGroupedSignersExample.rb index 3b6a910..2b19ffa 100644 --- a/examples/SignatureRequestEditGroupedSignersExample.rb +++ b/examples/SignatureRequestEditGroupedSignersExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end grouped_signers_2_signers_1 = Dropbox::Sign::SubSignatureRequestSigner.new @@ -81,12 +81,12 @@ signature_request_edit_request.grouped_signers = grouped_signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_edit_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_edit_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_edit: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_edit: #{e}" end diff --git a/examples/SignatureRequestEditWithTemplateExample.rb b/examples/SignatureRequestEditWithTemplateExample.rb index ad299e5..f3c2d8e 100644 --- a/examples/SignatureRequestEditWithTemplateExample.rb +++ b/examples/SignatureRequestEditWithTemplateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signing_options = Dropbox::Sign::SubSigningOptions.new @@ -53,12 +53,12 @@ signature_request_edit_with_template_request.custom_fields = custom_fields begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_with_template( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_edit_with_template_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_with_template( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_edit_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_edit_with_template: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_edit_with_template: #{e}" end diff --git a/examples/SignatureRequestFilesAsDataUriExample.rb b/examples/SignatureRequestFilesAsDataUriExample.rb index 05cca11..9f9390e 100644 --- a/examples/SignatureRequestFilesAsDataUriExample.rb +++ b/examples/SignatureRequestFilesAsDataUriExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_files_as_data_uri( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_files_as_data_uri( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_files_as_data_uri: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_files_as_data_uri: #{e}" end diff --git a/examples/SignatureRequestFilesAsFileUrlExample.rb b/examples/SignatureRequestFilesAsFileUrlExample.rb index 623d201..14abf28 100644 --- a/examples/SignatureRequestFilesAsFileUrlExample.rb +++ b/examples/SignatureRequestFilesAsFileUrlExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_files_as_file_url( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - { - force_download: 1, - }, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_files_as_file_url( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + { + force_download: 1, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_files_as_file_url: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_files_as_file_url: #{e}" end diff --git a/examples/SignatureRequestFilesExample.rb b/examples/SignatureRequestFilesExample.rb index 1fb60c8..1d891d6 100644 --- a/examples/SignatureRequestFilesExample.rb +++ b/examples/SignatureRequestFilesExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_files( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - { - file_type: "pdf", - }, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_files( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + { + file_type: "pdf", + }, + ) - FileUtils.cp(response.path, "./file_response") + FileUtils.cp(response.path, "./file_response") rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_files: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_files: #{e}" end diff --git a/examples/SignatureRequestGetExample.rb b/examples/SignatureRequestGetExample.rb index 99e0161..6399f34 100644 --- a/examples/SignatureRequestGetExample.rb +++ b/examples/SignatureRequestGetExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_get( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_get( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_get: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_get: #{e}" end diff --git a/examples/SignatureRequestListExample.rb b/examples/SignatureRequestListExample.rb index ba84cb6..2fcc012 100644 --- a/examples/SignatureRequestListExample.rb +++ b/examples/SignatureRequestListExample.rb @@ -2,21 +2,21 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_list( - { - account_id: nil, - page: 1, - page_size: 20, - query: nil, - }, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_list( + { + account_id: nil, + page: 1, + page_size: 20, + query: nil, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_list: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_list: #{e}" end diff --git a/examples/SignatureRequestReleaseHoldExample.rb b/examples/SignatureRequestReleaseHoldExample.rb index d4e3533..422ab2d 100644 --- a/examples/SignatureRequestReleaseHoldExample.rb +++ b/examples/SignatureRequestReleaseHoldExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_release_hold( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_release_hold( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_release_hold: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_release_hold: #{e}" end diff --git a/examples/SignatureRequestRemindExample.rb b/examples/SignatureRequestRemindExample.rb index 41109aa..722928d 100644 --- a/examples/SignatureRequestRemindExample.rb +++ b/examples/SignatureRequestRemindExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signature_request_remind_request = Dropbox::Sign::SignatureRequestRemindRequest.new signature_request_remind_request.email_address = "john@example.com" begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_remind( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_remind_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_remind( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_remind_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_remind: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_remind: #{e}" end diff --git a/examples/SignatureRequestRemoveExample.rb b/examples/SignatureRequestRemoveExample.rb index 56249f7..7940519 100644 --- a/examples/SignatureRequestRemoveExample.rb +++ b/examples/SignatureRequestRemoveExample.rb @@ -2,13 +2,13 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - Dropbox::Sign::SignatureRequestApi.new.signature_request_remove( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - ) + Dropbox::Sign::SignatureRequestApi.new.signature_request_remove( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + ) rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_remove: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_remove: #{e}" end diff --git a/examples/SignatureRequestSendExample.rb b/examples/SignatureRequestSendExample.rb index 270ebe0..45958b7 100644 --- a/examples/SignatureRequestSendExample.rb +++ b/examples/SignatureRequestSendExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -15,6 +15,7 @@ signing_options.phone = false signing_options.type = true signing_options.upload = true +signing_options.force_advanced_signature_details = false signers_1 = Dropbox::Sign::SubSignatureRequestSigner.new signers_1.name = "Jack" @@ -55,11 +56,11 @@ signature_request_send_request.signers = signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_send( - signature_request_send_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_send( + signature_request_send_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_send: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_send: #{e}" end diff --git a/examples/SignatureRequestSendGroupedSignersExample.rb b/examples/SignatureRequestSendGroupedSignersExample.rb index 5f3a376..dec38e8 100644 --- a/examples/SignatureRequestSendGroupedSignersExample.rb +++ b/examples/SignatureRequestSendGroupedSignersExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end grouped_signers_2_signers_1 = Dropbox::Sign::SubSignatureRequestSigner.new @@ -81,11 +81,11 @@ signature_request_send_request.grouped_signers = grouped_signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_send( - signature_request_send_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_send( + signature_request_send_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_send: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_send: #{e}" end diff --git a/examples/SignatureRequestSendWithTemplateExample.rb b/examples/SignatureRequestSendWithTemplateExample.rb index 24fd0de..237c12f 100644 --- a/examples/SignatureRequestSendWithTemplateExample.rb +++ b/examples/SignatureRequestSendWithTemplateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signing_options = Dropbox::Sign::SubSigningOptions.new @@ -12,6 +12,7 @@ signing_options.phone = false signing_options.type = true signing_options.upload = true +signing_options.force_advanced_signature_details = false signers_1 = Dropbox::Sign::SubSignatureRequestTemplateSigner.new signers_1.role = "Client" @@ -53,11 +54,11 @@ signature_request_send_with_template_request.custom_fields = custom_fields begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_send_with_template( - signature_request_send_with_template_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_send_with_template( + signature_request_send_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_send_with_template: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_send_with_template: #{e}" end diff --git a/examples/SignatureRequestUpdateExample.rb b/examples/SignatureRequestUpdateExample.rb index 66ff44b..3cac8ae 100644 --- a/examples/SignatureRequestUpdateExample.rb +++ b/examples/SignatureRequestUpdateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signature_request_update_request = Dropbox::Sign::SignatureRequestUpdateRequest.new @@ -11,12 +11,12 @@ signature_request_update_request.email_address = "john@example.com" begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_update( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_update_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_update( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_update_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_update: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_update: #{e}" end diff --git a/examples/TeamAddMemberAccountIdExample.rb b/examples/TeamAddMemberAccountIdExample.rb index d905e84..e199558 100644 --- a/examples/TeamAddMemberAccountIdExample.rb +++ b/examples/TeamAddMemberAccountIdExample.rb @@ -2,22 +2,22 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end team_add_member_request = Dropbox::Sign::TeamAddMemberRequest.new team_add_member_request.account_id = "f57db65d3f933b5316d398057a36176831451a35" begin - response = Dropbox::Sign::TeamApi.new.team_add_member( - team_add_member_request, - { - team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", - }, - ) + response = Dropbox::Sign::TeamApi.new.team_add_member( + team_add_member_request, + { + team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_add_member: #{e}" + puts "Exception when calling TeamApi#team_add_member: #{e}" end diff --git a/examples/TeamAddMemberExample.rb b/examples/TeamAddMemberExample.rb index 120af12..b312e98 100644 --- a/examples/TeamAddMemberExample.rb +++ b/examples/TeamAddMemberExample.rb @@ -2,22 +2,22 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end team_add_member_request = Dropbox::Sign::TeamAddMemberRequest.new team_add_member_request.email_address = "george@example.com" begin - response = Dropbox::Sign::TeamApi.new.team_add_member( - team_add_member_request, - { - team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", - }, - ) + response = Dropbox::Sign::TeamApi.new.team_add_member( + team_add_member_request, + { + team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_add_member: #{e}" + puts "Exception when calling TeamApi#team_add_member: #{e}" end diff --git a/examples/TeamCreateExample.rb b/examples/TeamCreateExample.rb index fcae238..6bac612 100644 --- a/examples/TeamCreateExample.rb +++ b/examples/TeamCreateExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end team_create_request = Dropbox::Sign::TeamCreateRequest.new team_create_request.name = "New Team Name" begin - response = Dropbox::Sign::TeamApi.new.team_create( - team_create_request, - ) + response = Dropbox::Sign::TeamApi.new.team_create( + team_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_create: #{e}" + puts "Exception when calling TeamApi#team_create: #{e}" end diff --git a/examples/TeamDeleteExample.rb b/examples/TeamDeleteExample.rb index 1e7df40..729b6f7 100644 --- a/examples/TeamDeleteExample.rb +++ b/examples/TeamDeleteExample.rb @@ -2,12 +2,12 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - Dropbox::Sign::TeamApi.new.team_delete + Dropbox::Sign::TeamApi.new.team_delete rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_delete: #{e}" + puts "Exception when calling TeamApi#team_delete: #{e}" end diff --git a/examples/TeamGetExample.rb b/examples/TeamGetExample.rb index f47b86e..9038228 100644 --- a/examples/TeamGetExample.rb +++ b/examples/TeamGetExample.rb @@ -2,14 +2,14 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TeamApi.new.team_get + response = Dropbox::Sign::TeamApi.new.team_get - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_get: #{e}" + puts "Exception when calling TeamApi#team_get: #{e}" end diff --git a/examples/TeamInfoExample.rb b/examples/TeamInfoExample.rb index a509938..dfe5874 100644 --- a/examples/TeamInfoExample.rb +++ b/examples/TeamInfoExample.rb @@ -2,18 +2,18 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TeamApi.new.team_info( - { - team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", - }, - ) + response = Dropbox::Sign::TeamApi.new.team_info( + { + team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_info: #{e}" + puts "Exception when calling TeamApi#team_info: #{e}" end diff --git a/examples/TeamInvitesExample.rb b/examples/TeamInvitesExample.rb index 5cbb0de..9fee219 100644 --- a/examples/TeamInvitesExample.rb +++ b/examples/TeamInvitesExample.rb @@ -2,14 +2,14 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TeamApi.new.team_invites + response = Dropbox::Sign::TeamApi.new.team_invites - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_invites: #{e}" + puts "Exception when calling TeamApi#team_invites: #{e}" end diff --git a/examples/TeamMembersExample.rb b/examples/TeamMembersExample.rb index 6a01367..f35f9d1 100644 --- a/examples/TeamMembersExample.rb +++ b/examples/TeamMembersExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TeamApi.new.team_members( - "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", # team_id - { - page: 1, - page_size: 20, - }, - ) + response = Dropbox::Sign::TeamApi.new.team_members( + "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", # team_id + { + page: 1, + page_size: 20, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_members: #{e}" + puts "Exception when calling TeamApi#team_members: #{e}" end diff --git a/examples/TeamRemoveMemberAccountIdExample.rb b/examples/TeamRemoveMemberAccountIdExample.rb index 586047c..16913dd 100644 --- a/examples/TeamRemoveMemberAccountIdExample.rb +++ b/examples/TeamRemoveMemberAccountIdExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end team_remove_member_request = Dropbox::Sign::TeamRemoveMemberRequest.new team_remove_member_request.account_id = "f57db65d3f933b5316d398057a36176831451a35" begin - response = Dropbox::Sign::TeamApi.new.team_remove_member( - team_remove_member_request, - ) + response = Dropbox::Sign::TeamApi.new.team_remove_member( + team_remove_member_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_remove_member: #{e}" + puts "Exception when calling TeamApi#team_remove_member: #{e}" end diff --git a/examples/TeamRemoveMemberExample.rb b/examples/TeamRemoveMemberExample.rb index eb9f8cc..27c87cb 100644 --- a/examples/TeamRemoveMemberExample.rb +++ b/examples/TeamRemoveMemberExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end team_remove_member_request = Dropbox::Sign::TeamRemoveMemberRequest.new @@ -11,11 +11,11 @@ team_remove_member_request.new_owner_email_address = "new_teammate@dropboxsign.com" begin - response = Dropbox::Sign::TeamApi.new.team_remove_member( - team_remove_member_request, - ) + response = Dropbox::Sign::TeamApi.new.team_remove_member( + team_remove_member_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_remove_member: #{e}" + puts "Exception when calling TeamApi#team_remove_member: #{e}" end diff --git a/examples/TeamSubTeamsExample.rb b/examples/TeamSubTeamsExample.rb index 335ba78..12c87f2 100644 --- a/examples/TeamSubTeamsExample.rb +++ b/examples/TeamSubTeamsExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TeamApi.new.team_sub_teams( - "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", # team_id - { - page: 1, - page_size: 20, - }, - ) + response = Dropbox::Sign::TeamApi.new.team_sub_teams( + "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", # team_id + { + page: 1, + page_size: 20, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_sub_teams: #{e}" + puts "Exception when calling TeamApi#team_sub_teams: #{e}" end diff --git a/examples/TeamUpdateExample.rb b/examples/TeamUpdateExample.rb index 5f0c023..7f925ff 100644 --- a/examples/TeamUpdateExample.rb +++ b/examples/TeamUpdateExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end team_update_request = Dropbox::Sign::TeamUpdateRequest.new team_update_request.name = "New Team Name" begin - response = Dropbox::Sign::TeamApi.new.team_update( - team_update_request, - ) + response = Dropbox::Sign::TeamApi.new.team_update( + team_update_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_update: #{e}" + puts "Exception when calling TeamApi#team_update: #{e}" end diff --git a/examples/TemplateAddUserExample.rb b/examples/TemplateAddUserExample.rb index b4807c7..a34a81f 100644 --- a/examples/TemplateAddUserExample.rb +++ b/examples/TemplateAddUserExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end template_add_user_request = Dropbox::Sign::TemplateAddUserRequest.new template_add_user_request.email_address = "george@dropboxsign.com" begin - response = Dropbox::Sign::TemplateApi.new.template_add_user( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - template_add_user_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_add_user( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + template_add_user_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_add_user: #{e}" + puts "Exception when calling TemplateApi#template_add_user: #{e}" end diff --git a/examples/TemplateCreateEmbeddedDraftExample.rb b/examples/TemplateCreateEmbeddedDraftExample.rb index 199ad10..8d40c03 100644 --- a/examples/TemplateCreateEmbeddedDraftExample.rb +++ b/examples/TemplateCreateEmbeddedDraftExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -52,11 +52,11 @@ template_create_embedded_draft_request.signer_roles = signer_roles begin - response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( - template_create_embedded_draft_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( + template_create_embedded_draft_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" + puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" end diff --git a/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.rb b/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.rb index 8bab29c..3cf7abb 100644 --- a/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.rb +++ b/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -98,11 +98,11 @@ template_create_embedded_draft_request.signer_roles = signer_roles begin - response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( - template_create_embedded_draft_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( + template_create_embedded_draft_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" + puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" end diff --git a/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.rb b/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.rb index a50b396..38263c1 100644 --- a/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.rb +++ b/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_field_rules_1_triggers_1 = Dropbox::Sign::SubFormFieldRuleTrigger.new @@ -114,11 +114,11 @@ template_create_embedded_draft_request.signer_roles = signer_roles begin - response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( - template_create_embedded_draft_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( + template_create_embedded_draft_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" + puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" end diff --git a/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.rb b/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.rb index ac81990..525ee37 100644 --- a/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.rb +++ b/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -86,11 +86,11 @@ template_create_embedded_draft_request.signer_roles = signer_roles begin - response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( - template_create_embedded_draft_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( + template_create_embedded_draft_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" + puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" end diff --git a/examples/TemplateCreateExample.rb b/examples/TemplateCreateExample.rb index 3019fb4..f4d6233 100644 --- a/examples/TemplateCreateExample.rb +++ b/examples/TemplateCreateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -86,11 +86,11 @@ template_create_request.merge_fields = merge_fields begin - response = Dropbox::Sign::TemplateApi.new.template_create( - template_create_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create( + template_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create: #{e}" + puts "Exception when calling TemplateApi#template_create: #{e}" end diff --git a/examples/TemplateCreateFormFieldGroupsExample.rb b/examples/TemplateCreateFormFieldGroupsExample.rb index 1c90c2b..83fdc09 100644 --- a/examples/TemplateCreateFormFieldGroupsExample.rb +++ b/examples/TemplateCreateFormFieldGroupsExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -98,11 +98,11 @@ template_create_request.merge_fields = merge_fields begin - response = Dropbox::Sign::TemplateApi.new.template_create( - template_create_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create( + template_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create: #{e}" + puts "Exception when calling TemplateApi#template_create: #{e}" end diff --git a/examples/TemplateCreateFormFieldRulesExample.rb b/examples/TemplateCreateFormFieldRulesExample.rb index 1934c3f..cea893e 100644 --- a/examples/TemplateCreateFormFieldRulesExample.rb +++ b/examples/TemplateCreateFormFieldRulesExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_field_rules_1_triggers_1 = Dropbox::Sign::SubFormFieldRuleTrigger.new @@ -114,11 +114,11 @@ template_create_request.merge_fields = merge_fields begin - response = Dropbox::Sign::TemplateApi.new.template_create( - template_create_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create( + template_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create: #{e}" + puts "Exception when calling TemplateApi#template_create: #{e}" end diff --git a/examples/TemplateCreateFormFieldsPerDocumentExample.rb b/examples/TemplateCreateFormFieldsPerDocumentExample.rb index 65b97f8..39185b3 100644 --- a/examples/TemplateCreateFormFieldsPerDocumentExample.rb +++ b/examples/TemplateCreateFormFieldsPerDocumentExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -86,11 +86,11 @@ template_create_request.merge_fields = merge_fields begin - response = Dropbox::Sign::TemplateApi.new.template_create( - template_create_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create( + template_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create: #{e}" + puts "Exception when calling TemplateApi#template_create: #{e}" end diff --git a/examples/TemplateDeleteExample.rb b/examples/TemplateDeleteExample.rb index e6afdd3..33e07f2 100644 --- a/examples/TemplateDeleteExample.rb +++ b/examples/TemplateDeleteExample.rb @@ -2,14 +2,14 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - Dropbox::Sign::TemplateApi.new.template_delete( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - ) + Dropbox::Sign::TemplateApi.new.template_delete( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + ) rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_delete: #{e}" + puts "Exception when calling TemplateApi#template_delete: #{e}" end diff --git a/examples/TemplateFilesAsDataUriExample.rb b/examples/TemplateFilesAsDataUriExample.rb index 5e040d3..c51e036 100644 --- a/examples/TemplateFilesAsDataUriExample.rb +++ b/examples/TemplateFilesAsDataUriExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TemplateApi.new.template_files_as_data_uri( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - ) + response = Dropbox::Sign::TemplateApi.new.template_files_as_data_uri( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_files_as_data_uri: #{e}" + puts "Exception when calling TemplateApi#template_files_as_data_uri: #{e}" end diff --git a/examples/TemplateFilesAsFileUrlExample.rb b/examples/TemplateFilesAsFileUrlExample.rb index 0cce8ed..055fd32 100644 --- a/examples/TemplateFilesAsFileUrlExample.rb +++ b/examples/TemplateFilesAsFileUrlExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TemplateApi.new.template_files_as_file_url( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - { - force_download: 1, - }, - ) + response = Dropbox::Sign::TemplateApi.new.template_files_as_file_url( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + { + force_download: 1, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_files_as_file_url: #{e}" + puts "Exception when calling TemplateApi#template_files_as_file_url: #{e}" end diff --git a/examples/TemplateFilesExample.rb b/examples/TemplateFilesExample.rb index 89d2949..6aef000 100644 --- a/examples/TemplateFilesExample.rb +++ b/examples/TemplateFilesExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TemplateApi.new.template_files( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - ) + response = Dropbox::Sign::TemplateApi.new.template_files( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + ) - FileUtils.cp(response.path, "./file_response") + FileUtils.cp(response.path, "./file_response") rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_files: #{e}" + puts "Exception when calling TemplateApi#template_files: #{e}" end diff --git a/examples/TemplateGetExample.rb b/examples/TemplateGetExample.rb index a1fd880..aacf15e 100644 --- a/examples/TemplateGetExample.rb +++ b/examples/TemplateGetExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TemplateApi.new.template_get( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - ) + response = Dropbox::Sign::TemplateApi.new.template_get( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_get: #{e}" + puts "Exception when calling TemplateApi#template_get: #{e}" end diff --git a/examples/TemplateListExample.rb b/examples/TemplateListExample.rb index 4432973..a69c46f 100644 --- a/examples/TemplateListExample.rb +++ b/examples/TemplateListExample.rb @@ -2,21 +2,21 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TemplateApi.new.template_list( - { - account_id: nil, - page: 1, - page_size: 20, - query: nil, - }, - ) + response = Dropbox::Sign::TemplateApi.new.template_list( + { + account_id: nil, + page: 1, + page_size: 20, + query: nil, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_list: #{e}" + puts "Exception when calling TemplateApi#template_list: #{e}" end diff --git a/examples/TemplateRemoveUserExample.rb b/examples/TemplateRemoveUserExample.rb index a876f91..00687e1 100644 --- a/examples/TemplateRemoveUserExample.rb +++ b/examples/TemplateRemoveUserExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end template_remove_user_request = Dropbox::Sign::TemplateRemoveUserRequest.new template_remove_user_request.email_address = "george@dropboxsign.com" begin - response = Dropbox::Sign::TemplateApi.new.template_remove_user( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - template_remove_user_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_remove_user( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + template_remove_user_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_remove_user: #{e}" + puts "Exception when calling TemplateApi#template_remove_user: #{e}" end diff --git a/examples/TemplateUpdateFilesExample.rb b/examples/TemplateUpdateFilesExample.rb index 0e95c9d..d5088f2 100644 --- a/examples/TemplateUpdateFilesExample.rb +++ b/examples/TemplateUpdateFilesExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end template_update_files_request = Dropbox::Sign::TemplateUpdateFilesRequest.new @@ -12,12 +12,12 @@ ] begin - response = Dropbox::Sign::TemplateApi.new.template_update_files( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - template_update_files_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_update_files( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + template_update_files_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_update_files: #{e}" + puts "Exception when calling TemplateApi#template_update_files: #{e}" end diff --git a/examples/UnclaimedDraftCreateEmbeddedExample.rb b/examples/UnclaimedDraftCreateEmbeddedExample.rb index dc954bc..a22330d 100644 --- a/examples/UnclaimedDraftCreateEmbeddedExample.rb +++ b/examples/UnclaimedDraftCreateEmbeddedExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end unclaimed_draft_create_embedded_request = Dropbox::Sign::UnclaimedDraftCreateEmbeddedRequest.new @@ -15,11 +15,11 @@ ] begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( - unclaimed_draft_create_embedded_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( + unclaimed_draft_create_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" end diff --git a/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.rb b/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.rb index a335227..46129e4 100644 --- a/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.rb +++ b/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_field_groups_1 = Dropbox::Sign::SubFormFieldGroup.new @@ -61,11 +61,11 @@ unclaimed_draft_create_embedded_request.form_fields_per_document = form_fields_per_document begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( - unclaimed_draft_create_embedded_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( + unclaimed_draft_create_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" end diff --git a/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.rb b/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.rb index c1aa490..a6b1748 100644 --- a/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.rb +++ b/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_field_rules_1_triggers_1 = Dropbox::Sign::SubFormFieldRuleTrigger.new @@ -77,11 +77,11 @@ unclaimed_draft_create_embedded_request.form_fields_per_document = form_fields_per_document begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( - unclaimed_draft_create_embedded_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( + unclaimed_draft_create_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" end diff --git a/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.rb b/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.rb index efffe1f..774085a 100644 --- a/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.rb +++ b/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_fields_per_document_1 = Dropbox::Sign::SubFormFieldsPerDocumentText.new @@ -49,11 +49,11 @@ unclaimed_draft_create_embedded_request.form_fields_per_document = form_fields_per_document begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( - unclaimed_draft_create_embedded_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( + unclaimed_draft_create_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" end diff --git a/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb b/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb index d5f7ee2..c6e799c 100644 --- a/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb +++ b/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end ccs_1 = Dropbox::Sign::SubCC.new @@ -34,11 +34,11 @@ unclaimed_draft_create_embedded_with_template_request.signers = signers begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded_with_template( - unclaimed_draft_create_embedded_with_template_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded_with_template( + unclaimed_draft_create_embedded_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded_with_template: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded_with_template: #{e}" end diff --git a/examples/UnclaimedDraftCreateExample.rb b/examples/UnclaimedDraftCreateExample.rb index 4375558..12f94df 100644 --- a/examples/UnclaimedDraftCreateExample.rb +++ b/examples/UnclaimedDraftCreateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signers_1 = Dropbox::Sign::SubUnclaimedDraftSigner.new @@ -24,11 +24,11 @@ unclaimed_draft_create_request.signers = signers begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( - unclaimed_draft_create_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( + unclaimed_draft_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" end diff --git a/examples/UnclaimedDraftCreateFormFieldGroupsExample.rb b/examples/UnclaimedDraftCreateFormFieldGroupsExample.rb index 9f1db82..881fde8 100644 --- a/examples/UnclaimedDraftCreateFormFieldGroupsExample.rb +++ b/examples/UnclaimedDraftCreateFormFieldGroupsExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_field_groups_1 = Dropbox::Sign::SubFormFieldGroup.new @@ -60,11 +60,11 @@ unclaimed_draft_create_request.form_fields_per_document = form_fields_per_document begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( - unclaimed_draft_create_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( + unclaimed_draft_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" end diff --git a/examples/UnclaimedDraftCreateFormFieldRulesExample.rb b/examples/UnclaimedDraftCreateFormFieldRulesExample.rb index 0ac3d95..54822f3 100644 --- a/examples/UnclaimedDraftCreateFormFieldRulesExample.rb +++ b/examples/UnclaimedDraftCreateFormFieldRulesExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_field_rules_1_triggers_1 = Dropbox::Sign::SubFormFieldRuleTrigger.new @@ -76,11 +76,11 @@ unclaimed_draft_create_request.form_fields_per_document = form_fields_per_document begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( - unclaimed_draft_create_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( + unclaimed_draft_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" end diff --git a/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.rb b/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.rb index bb0434c..e4bc66e 100644 --- a/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.rb +++ b/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_fields_per_document_1 = Dropbox::Sign::SubFormFieldsPerDocumentText.new @@ -48,11 +48,11 @@ unclaimed_draft_create_request.form_fields_per_document = form_fields_per_document begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( - unclaimed_draft_create_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( + unclaimed_draft_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" end diff --git a/examples/UnclaimedDraftEditAndResendExample.rb b/examples/UnclaimedDraftEditAndResendExample.rb index 34a23ea..dccc4d0 100644 --- a/examples/UnclaimedDraftEditAndResendExample.rb +++ b/examples/UnclaimedDraftEditAndResendExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end unclaimed_draft_edit_and_resend_request = Dropbox::Sign::UnclaimedDraftEditAndResendRequest.new @@ -11,12 +11,12 @@ unclaimed_draft_edit_and_resend_request.test_mode = false begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_edit_and_resend( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - unclaimed_draft_edit_and_resend_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_edit_and_resend( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + unclaimed_draft_edit_and_resend_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_edit_and_resend: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_edit_and_resend: #{e}" end diff --git a/lib/dropbox-sign.rb b/lib/dropbox-sign.rb index 413c293..e85d1d5 100644 --- a/lib/dropbox-sign.rb +++ b/lib/dropbox-sign.rb @@ -22,6 +22,7 @@ require 'dropbox-sign/models/account_get_response' require 'dropbox-sign/models/account_response' require 'dropbox-sign/models/account_response_quotas' +require 'dropbox-sign/models/account_response_settings' require 'dropbox-sign/models/account_response_usage' require 'dropbox-sign/models/account_update_request' require 'dropbox-sign/models/account_verify_request' @@ -144,7 +145,6 @@ require 'dropbox-sign/models/template_create_request' require 'dropbox-sign/models/template_create_response' require 'dropbox-sign/models/template_create_response_template' -require 'dropbox-sign/models/template_edit_response' require 'dropbox-sign/models/template_get_response' require 'dropbox-sign/models/template_list_response' require 'dropbox-sign/models/template_remove_user_request' diff --git a/lib/dropbox-sign/api/template_api.rb b/lib/dropbox-sign/api/template_api.rb index 4620ab3..c43bf9e 100644 --- a/lib/dropbox-sign/api/template_api.rb +++ b/lib/dropbox-sign/api/template_api.rb @@ -138,7 +138,7 @@ def template_add_user_with_http_info(template_id, template_add_user_request, opt end # Create Template - # Creates a template that can then be used. + # Creates a template that can be used in future signature requests. If `client_id` is provided, the template will be created as an embedded template. Embedded templates can be used for embedded signature requests and can be edited later by generating a new `edit_url` with [/embedded/edit_url/{template_id}](/api/reference/operation/embeddedEditUrl/). Template creation may complete asynchronously after the initial request is accepted. It is recommended that a callback be implemented to listen for the callback event. A `template_created` event indicates the template is ready to use, while a `template_error` event indicates there was a problem while creating the template. 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 and retry the request if necessary. # @param template_create_request [TemplateCreateRequest] # @param [Hash] opts the optional parameters # @return [TemplateCreateResponse] @@ -148,7 +148,7 @@ def template_create(template_create_request, opts = {}) end # Create Template - # Creates a template that can then be used. + # Creates a template that can be used in future signature requests. If `client_id` is provided, the template will be created as an embedded template. Embedded templates can be used for embedded signature requests and can be edited later by generating a new `edit_url` with [/embedded/edit_url/{template_id}](/api/reference/operation/embeddedEditUrl/). Template creation may complete asynchronously after the initial request is accepted. It is recommended that a callback be implemented to listen for the callback event. A `template_created` event indicates the template is ready to use, while a `template_error` event indicates there was a problem while creating the template. 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 and retry the request if necessary. # @param template_create_request [TemplateCreateRequest] # @param [Hash] opts the optional parameters # @return [Array<(TemplateCreateResponse, Integer, Hash)>] TemplateCreateResponse data, response status code and response headers diff --git a/lib/dropbox-sign/api_client.rb b/lib/dropbox-sign/api_client.rb index ad1d842..bd7e736 100644 --- a/lib/dropbox-sign/api_client.rb +++ b/lib/dropbox-sign/api_client.rb @@ -132,6 +132,22 @@ def build_request(http_method, path, opts = {}) end end + # Workaround for the Typhoeus/libcurl multipart PUT bug. + # libcurl only builds a multipart body via CURLOPT_HTTPPOST/CURLOPT_MIMEPOST, + # which is engaged for POST requests. For PUT it falls back to CURLOPT_UPLOAD + # and silently drops form fields, so the request is sent without a + # `Content-Type: multipart/form-data; boundary=...` header or body. + # We send the request as POST so the multipart body is encoded correctly, + # then use CURLOPT_CUSTOMREQUEST (exposed by Ethon as :customrequest) to + # restore PUT as the on-the-wire HTTP verb. + # See: https://github.com/typhoeus/typhoeus/issues/389 + content_type_header = header_params['Content-Type'] || header_params['content-type'] + if http_method == :put && content_type_header.is_a?(String) && + content_type_header.start_with?('multipart/form-data') + req_opts[:method] = :post + req_opts[:customrequest] = 'PUT' + end + Typhoeus::Request.new(url, req_opts) end diff --git a/lib/dropbox-sign/models/account_response.rb b/lib/dropbox-sign/models/account_response.rb index 4e96e47..d9ccec8 100644 --- a/lib/dropbox-sign/models/account_response.rb +++ b/lib/dropbox-sign/models/account_response.rb @@ -60,6 +60,9 @@ class AccountResponse # @return [AccountResponseUsage] attr_accessor :usage + # @return [AccountResponseSettings] + attr_accessor :settings + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -73,7 +76,8 @@ def self.attribute_map :'role_code' => :'role_code', :'team_id' => :'team_id', :'locale' => :'locale', - :'usage' => :'usage' + :'usage' => :'usage', + :'settings' => :'settings' } end @@ -100,7 +104,8 @@ def self.openapi_types :'role_code' => :'String', :'team_id' => :'String', :'locale' => :'String', - :'usage' => :'AccountResponseUsage' + :'usage' => :'AccountResponseUsage', + :'settings' => :'AccountResponseSettings' } end @@ -198,6 +203,10 @@ def initialize(attributes = {}) if attributes.key?(:'usage') self.usage = attributes[:'usage'] end + + if attributes.key?(:'settings') + self.settings = attributes[:'settings'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -228,7 +237,8 @@ def ==(o) role_code == o.role_code && team_id == o.team_id && locale == o.locale && - usage == o.usage + usage == o.usage && + settings == o.settings end # @see the `==` method @@ -240,7 +250,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [account_id, email_address, is_locked, is_paid_hs, is_paid_hf, quotas, callback_url, role_code, team_id, locale, usage].hash + [account_id, email_address, is_locked, is_paid_hs, is_paid_hf, quotas, callback_url, role_code, team_id, locale, usage, settings].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/template_edit_response.rb b/lib/dropbox-sign/models/account_response_settings.rb similarity index 78% rename from lib/dropbox-sign/models/template_edit_response.rb rename to lib/dropbox-sign/models/account_response_settings.rb index 9a49967..5710c3a 100644 --- a/lib/dropbox-sign/models/template_edit_response.rb +++ b/lib/dropbox-sign/models/account_response_settings.rb @@ -17,15 +17,26 @@ module Dropbox end module Dropbox::Sign - class TemplateEditResponse - # The id of the Template. - # @return [String] - attr_accessor :template_id + # Subset of configured settings + class AccountResponseSettings + # Returns `true` if _Custom access codes_ is enabled in Admin Console. [Read more](https://developers.hellosign.com/docs/sms-tools/walkthrough). + # @return [Boolean] + attr_accessor :signer_access_codes + + # Returns `true` if _Text message_ is enabled in Admin Console. [Read more](https://developers.hellosign.com/docs/sms-tools/walkthrough). + # @return [Boolean] + attr_accessor :sms_delivery + + # Returns `true` if _Signer authentication_ is enabled in Admin Console. [Read more](https://developers.hellosign.com/docs/sms-tools/walkthrough). + # @return [Boolean] + attr_accessor :sms_authentication # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'template_id' => :'template_id' + :'signer_access_codes' => :'signer_access_codes', + :'sms_delivery' => :'sms_delivery', + :'sms_authentication' => :'sms_authentication' } end @@ -42,7 +53,9 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'template_id' => :'String' + :'signer_access_codes' => :'Boolean', + :'sms_delivery' => :'Boolean', + :'sms_authentication' => :'Boolean' } end @@ -69,32 +82,40 @@ def self.merged_nullable # Attempt to instantiate and hydrate a new instance of this class # @param [Object] data Data to be converted - # @return [TemplateEditResponse] + # @return [AccountResponseSettings] def self.init(data) ApiClient.default.convert_to_type( data, - "TemplateEditResponse" - ) || TemplateEditResponse.new + "AccountResponseSettings" + ) || AccountResponseSettings.new end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::TemplateEditResponse` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Dropbox::Sign::AccountResponseSettings` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.merged_attributes.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::TemplateEditResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `Dropbox::Sign::AccountResponseSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'template_id') - self.template_id = attributes[:'template_id'] + if attributes.key?(:'signer_access_codes') + self.signer_access_codes = attributes[:'signer_access_codes'] + end + + if attributes.key?(:'sms_delivery') + self.sms_delivery = attributes[:'sms_delivery'] + end + + if attributes.key?(:'sms_authentication') + self.sms_authentication = attributes[:'sms_authentication'] end end @@ -102,36 +123,23 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if @template_id.nil? - invalid_properties.push('invalid value for "template_id", template_id cannot be nil.') - end - invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @template_id.nil? true end - # Custom attribute writer method with validation - # @param [Object] template_id Value to be assigned - def template_id=(template_id) - if template_id.nil? - fail ArgumentError, 'template_id cannot be nil' - end - - @template_id = template_id - end - # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && - template_id == o.template_id + signer_access_codes == o.signer_access_codes && + sms_delivery == o.sms_delivery && + sms_authentication == o.sms_authentication end # @see the `==` method @@ -143,7 +151,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [template_id].hash + [signer_access_codes, sms_delivery, sms_authentication].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/models/signature_request_edit_request.rb b/lib/dropbox-sign/models/signature_request_edit_request.rb index 299dc70..68e7c2f 100644 --- a/lib/dropbox-sign/models/signature_request_edit_request.rb +++ b/lib/dropbox-sign/models/signature_request_edit_request.rb @@ -77,7 +77,7 @@ class SignatureRequestEditRequest # @return [Boolean] attr_accessor :hide_text_tags - # Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. + # Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.
**NOTE:** You need the eID add-on to use this feature. Please [contact sales](https://sign.dropbox.com/form/contact-sales) for more information. Cannot be used in `test_mode`. Only works on requests with one signer. # @return [Boolean] attr_accessor :is_eid diff --git a/lib/dropbox-sign/models/signature_request_edit_with_template_request.rb b/lib/dropbox-sign/models/signature_request_edit_with_template_request.rb index ea8f2a9..d20fef4 100644 --- a/lib/dropbox-sign/models/signature_request_edit_with_template_request.rb +++ b/lib/dropbox-sign/models/signature_request_edit_with_template_request.rb @@ -51,7 +51,7 @@ class SignatureRequestEditWithTemplateRequest # @return [Array] attr_accessor :file_urls - # Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. + # Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.
**NOTE:** You need the eID add-on to use this feature. Please [contact sales](https://sign.dropbox.com/form/contact-sales) for more information. Cannot be used in `test_mode`. Only works on requests with one signer. # @return [Boolean] attr_accessor :is_eid diff --git a/lib/dropbox-sign/models/signature_request_send_request.rb b/lib/dropbox-sign/models/signature_request_send_request.rb index 1bfe729..8dec7e4 100644 --- a/lib/dropbox-sign/models/signature_request_send_request.rb +++ b/lib/dropbox-sign/models/signature_request_send_request.rb @@ -81,7 +81,7 @@ class SignatureRequestSendRequest # @return [Boolean] attr_accessor :is_qualified_signature - # Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. + # Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.
**NOTE:** You need the eID add-on to use this feature. Please [contact sales](https://sign.dropbox.com/form/contact-sales) for more information. Cannot be used in `test_mode`. Only works on requests with one signer. # @return [Boolean] attr_accessor :is_eid diff --git a/lib/dropbox-sign/models/signature_request_send_with_template_request.rb b/lib/dropbox-sign/models/signature_request_send_with_template_request.rb index ac26472..cf024ca 100644 --- a/lib/dropbox-sign/models/signature_request_send_with_template_request.rb +++ b/lib/dropbox-sign/models/signature_request_send_with_template_request.rb @@ -55,7 +55,7 @@ class SignatureRequestSendWithTemplateRequest # @return [Boolean] attr_accessor :is_qualified_signature - # Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.
**NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. + # Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.
**NOTE:** You need the eID add-on to use this feature. Please [contact sales](https://sign.dropbox.com/form/contact-sales) for more information. Cannot be used in `test_mode`. Only works on requests with one signer. # @return [Boolean] attr_accessor :is_eid diff --git a/lib/dropbox-sign/models/sub_signing_options.rb b/lib/dropbox-sign/models/sub_signing_options.rb index 26a6406..7d0969d 100644 --- a/lib/dropbox-sign/models/sub_signing_options.rb +++ b/lib/dropbox-sign/models/sub_signing_options.rb @@ -17,7 +17,7 @@ module Dropbox end module Dropbox::Sign - # This allows the requester to specify the types allowed for creating a signature. **NOTE:** If `signing_options` are not defined in the request, the allowed types will default to those specified in the account settings. + # This allows the requester to specify the types allowed for creating a signature and specify another signing options. **NOTE:** If `signing_options` are not defined in the request, the allowed types will default to those specified in the account settings. **NOTE:** If `force_advanced_signature_details` is set, allowed types has to be defined too. class SubSigningOptions # The default type shown (limited to the listed types) # @return [String] @@ -39,6 +39,10 @@ class SubSigningOptions # @return [Boolean] attr_accessor :upload + # Turning on advanced signature details for the signature request + # @return [Boolean] + attr_accessor :force_advanced_signature_details + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -68,7 +72,8 @@ def self.attribute_map :'draw' => :'draw', :'phone' => :'phone', :'type' => :'type', - :'upload' => :'upload' + :'upload' => :'upload', + :'force_advanced_signature_details' => :'force_advanced_signature_details' } end @@ -89,7 +94,8 @@ def self.openapi_types :'draw' => :'Boolean', :'phone' => :'Boolean', :'type' => :'Boolean', - :'upload' => :'Boolean' + :'upload' => :'Boolean', + :'force_advanced_signature_details' => :'Boolean' } end @@ -167,6 +173,12 @@ def initialize(attributes = {}) else self.upload = false end + + if attributes.key?(:'force_advanced_signature_details') + self.force_advanced_signature_details = attributes[:'force_advanced_signature_details'] + else + self.force_advanced_signature_details = false + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -208,7 +220,8 @@ def ==(o) draw == o.draw && phone == o.phone && type == o.type && - upload == o.upload + upload == o.upload && + force_advanced_signature_details == o.force_advanced_signature_details end # @see the `==` method @@ -220,7 +233,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [default_type, draw, phone, type, upload].hash + [default_type, draw, phone, type, upload, force_advanced_signature_details].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/version.rb b/lib/dropbox-sign/version.rb index e1b2fd3..872214b 100644 --- a/lib/dropbox-sign/version.rb +++ b/lib/dropbox-sign/version.rb @@ -14,5 +14,5 @@ module Dropbox end module Dropbox::Sign - VERSION = '1.10.0' + VERSION = '1.11.0' end diff --git a/openapi-config.yaml b/openapi-config.yaml index 1176020..94b9709 100644 --- a/openapi-config.yaml +++ b/openapi-config.yaml @@ -9,7 +9,7 @@ additionalProperties: gemName: dropbox-sign gemRequiredRubyVersion: '>= 2.7' moduleName: "Dropbox::Sign" - gemVersion: 1.10.0 + gemVersion: 1.11.0 sortModelPropertiesByRequiredFlag: true legacyDiscriminatorBehavior: true gitUserId: hellosign diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index c123c2e..ed174d3 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -65,6 +65,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -173,6 +175,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -269,6 +273,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 409_example: $ref: '#/components/examples/Error409Response' 4XX_example: @@ -369,6 +375,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -468,6 +476,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -566,10 +576,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 404_example: - $ref: '#/components/examples/Error404Response' 429_example: $ref: '#/components/examples/Error429Response' + 404_example: + $ref: '#/components/examples/Error404Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -677,10 +687,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 409_example: - $ref: '#/components/examples/Error409Response' 429_example: $ref: '#/components/examples/Error429Response' + 409_example: + $ref: '#/components/examples/Error409Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -769,6 +779,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -873,6 +885,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -983,6 +997,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -1086,6 +1102,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -1192,6 +1210,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -1290,12 +1310,12 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -1392,10 +1412,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 404_example: - $ref: '#/components/examples/Error404Response' 429_example: $ref: '#/components/examples/Error429Response' + 404_example: + $ref: '#/components/examples/Error404Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -1481,10 +1501,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 404_example: - $ref: '#/components/examples/Error404Response' 429_example: $ref: '#/components/examples/Error429Response' + 404_example: + $ref: '#/components/examples/Error404Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -1576,12 +1596,12 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 410_example: $ref: '#/components/examples/Error410Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -1675,6 +1695,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -1858,6 +1880,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -1951,6 +1975,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -2046,6 +2072,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -2135,6 +2163,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -2251,6 +2281,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -2344,6 +2376,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -2450,6 +2484,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -2546,10 +2582,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 404_example: - $ref: '#/components/examples/Error404Response' 429_example: $ref: '#/components/examples/Error429Response' + 404_example: + $ref: '#/components/examples/Error404Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -2643,6 +2679,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: [] @@ -2738,6 +2776,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: [] @@ -2836,6 +2876,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -2935,12 +2977,12 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -3040,6 +3082,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -3143,6 +3187,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: @@ -3251,10 +3297,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 409_example: - $ref: '#/components/examples/Error409Response' 429_example: $ref: '#/components/examples/Error429Response' + 409_example: + $ref: '#/components/examples/Error409Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -3354,10 +3400,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 409_example: - $ref: '#/components/examples/Error409Response' 429_example: $ref: '#/components/examples/Error429Response' + 409_example: + $ref: '#/components/examples/Error409Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -3471,12 +3517,12 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -3591,12 +3637,12 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -3708,12 +3754,12 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -3825,12 +3871,12 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -3943,14 +3989,14 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' 410_example: $ref: '#/components/examples/Error410Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -4051,14 +4097,14 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' 410_example: $ref: '#/components/examples/Error410Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -4166,14 +4212,14 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' 410_example: $ref: '#/components/examples/Error410Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -4271,6 +4317,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 410_example: @@ -4394,6 +4442,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 409_example: $ref: '#/components/examples/Error409Response' 4XX_example: @@ -4493,6 +4543,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -4603,14 +4655,14 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' 410_example: $ref: '#/components/examples/Error410Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -4708,6 +4760,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: @@ -4812,10 +4866,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 409_example: - $ref: '#/components/examples/Error409Response' 429_example: $ref: '#/components/examples/Error429Response' + 409_example: + $ref: '#/components/examples/Error409Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -5029,6 +5083,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -5138,6 +5194,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -5236,6 +5294,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -5316,6 +5376,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -5403,6 +5465,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -5500,6 +5564,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -5596,10 +5662,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 409_example: - $ref: '#/components/examples/Error409Response' 429_example: $ref: '#/components/examples/Error429Response' + 409_example: + $ref: '#/components/examples/Error409Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -5695,6 +5761,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -5808,10 +5876,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 409_example: - $ref: '#/components/examples/Error409Response' 429_example: $ref: '#/components/examples/Error429Response' + 409_example: + $ref: '#/components/examples/Error409Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -5910,6 +5978,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -6024,10 +6094,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 409_example: - $ref: '#/components/examples/Error409Response' 429_example: $ref: '#/components/examples/Error429Response' + 409_example: + $ref: '#/components/examples/Error409Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -6133,6 +6203,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -6188,7 +6260,12 @@ paths: tags: - Template summary: 'Create Template' - description: 'Creates a template that can then be used.' + description: |- + Creates a template that can be used in future signature requests. + + If `client_id` is provided, the template will be created as an embedded template. Embedded templates can be used for embedded signature requests and can be edited later by generating a new `edit_url` with [/embedded/edit_url/{template_id}](/api/reference/operation/embeddedEditUrl/). + + Template creation may complete asynchronously after the initial request is accepted. It is recommended that a callback be implemented to listen for the callback event. A `template_created` event indicates the template is ready to use, while a `template_error` event indicates there was a problem while creating the template. 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 and retry the request if necessary. operationId: templateCreate requestBody: required: true @@ -6240,6 +6317,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: @@ -6349,6 +6428,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: @@ -6444,6 +6525,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: @@ -6558,14 +6641,14 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' 422_example: $ref: '#/components/examples/Error422Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -6665,14 +6748,14 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' 422_example: $ref: '#/components/examples/Error422Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -6779,14 +6862,14 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' 422_example: $ref: '#/components/examples/Error422Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -6883,10 +6966,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 404_example: - $ref: '#/components/examples/Error404Response' 429_example: $ref: '#/components/examples/Error429Response' + 404_example: + $ref: '#/components/examples/Error404Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -7006,10 +7089,10 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' - 409_example: - $ref: '#/components/examples/Error409Response' 429_example: $ref: '#/components/examples/Error429Response' + 409_example: + $ref: '#/components/examples/Error409Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -7115,6 +7198,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 4XX_example: @@ -7237,12 +7322,12 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -7348,6 +7433,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -7456,6 +7543,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: @@ -7563,12 +7652,12 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: $ref: '#/components/examples/Error409Response' - 429_example: - $ref: '#/components/examples/Error429Response' 4XX_example: $ref: '#/components/examples/Error4XXResponse' security: @@ -7677,6 +7766,8 @@ paths: $ref: '#/components/examples/Error402Response' 403_example: $ref: '#/components/examples/Error403Response' + 429_example: + $ref: '#/components/examples/Error429Response' 404_example: $ref: '#/components/examples/Error404Response' 409_example: @@ -8136,6 +8227,7 @@ components: - user_activity - document_status - sms_activity + - fax_usage maxItems: 2 minItems: 1 start_date: @@ -8670,7 +8762,7 @@ components: Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.
- **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. + **NOTE:** You need the eID add-on to use this feature. Please [contact sales](https://sign.dropbox.com/form/contact-sales) for more information. Cannot be used in `test_mode`. Only works on requests with one signer. type: boolean default: false message: @@ -8997,7 +9089,7 @@ components: Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.
- **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. + **NOTE:** You need the eID add-on to use this feature. Please [contact sales](https://sign.dropbox.com/form/contact-sales) for more information. Cannot be used in `test_mode`. Only works on requests with one signer. type: boolean default: false message: @@ -9165,13 +9257,12 @@ components: type: boolean default: false deprecated: true - x-hideOn: doc is_eid: description: |- Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.
- **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. + **NOTE:** You need the eID add-on to use this feature. Please [contact sales](https://sign.dropbox.com/form/contact-sales) for more information. Cannot be used in `test_mode`. Only works on requests with one signer. type: boolean default: false message: @@ -9267,13 +9358,12 @@ components: type: boolean default: false deprecated: true - x-hideOn: doc is_eid: description: |- Send with a value of `true` if you wish to enable [electronic identification (eID)](https://www.hellosign.com/features/electronic-id), which requires the signer to verify their identity with an eID provider to sign a document.
- **NOTE:** eID is only available on the Premium API plan. Cannot be used in `test_mode`. Only works on requests with one signer. + **NOTE:** You need the eID add-on to use this feature. Please [contact sales](https://sign.dropbox.com/form/contact-sales) for more information. Cannot be used in `test_mode`. Only works on requests with one signer. type: boolean default: false message: @@ -10266,9 +10356,11 @@ components: type: object SubSigningOptions: description: |- - This allows the requester to specify the types allowed for creating a signature. + This allows the requester to specify the types allowed for creating a signature and specify another signing options. **NOTE:** If `signing_options` are not defined in the request, the allowed types will default to those specified in the account settings. + + **NOTE:** If `force_advanced_signature_details` is set, allowed types has to be defined too. required: - default_type properties: @@ -10296,6 +10388,10 @@ components: description: 'Allows uploading the signature' type: boolean default: false + force_advanced_signature_details: + description: 'Turning on advanced signature details for the signature request' + type: boolean + default: false type: object SubWhiteLabelingOptions: description: |- @@ -11590,6 +11686,8 @@ components: nullable: true usage: $ref: '#/components/schemas/AccountResponseUsage' + settings: + $ref: '#/components/schemas/AccountResponseSettings' type: object x-internal-class: true OAuthTokenResponse: @@ -11637,6 +11735,20 @@ components: nullable: true type: object x-internal-class: true + AccountResponseSettings: + description: 'Subset of configured settings' + properties: + signer_access_codes: + description: 'Returns `true` if _Custom access codes_ is enabled in Admin Console. [Read more](https://developers.hellosign.com/docs/sms-tools/walkthrough).' + type: boolean + sms_delivery: + description: 'Returns `true` if _Text message_ is enabled in Admin Console. [Read more](https://developers.hellosign.com/docs/sms-tools/walkthrough).' + type: boolean + sms_authentication: + description: 'Returns `true` if _Signer authentication_ is enabled in Admin Console. [Read more](https://developers.hellosign.com/docs/sms-tools/walkthrough).' + type: boolean + type: object + x-internal-class: true AccountResponseUsage: description: 'Details concerning monthly usage' properties: @@ -11966,6 +12078,7 @@ components: - user_activity - document_status - sms_activity + - fax_usage type: object x-internal-class: true SignatureRequestResponse: @@ -13565,14 +13678,6 @@ components: $ref: '#/components/schemas/WarningResponse' type: object x-internal-class: true - TemplateEditResponse: - required: - - template_id - properties: - template_id: - description: 'The id of the Template.' - type: string - type: object TemplateGetResponse: required: - template diff --git a/templates/api_client_typhoeus_partial.mustache b/templates/api_client_typhoeus_partial.mustache index f55f980..116fd36 100644 --- a/templates/api_client_typhoeus_partial.mustache +++ b/templates/api_client_typhoeus_partial.mustache @@ -87,6 +87,22 @@ end end + # Workaround for the Typhoeus/libcurl multipart PUT bug. + # libcurl only builds a multipart body via CURLOPT_HTTPPOST/CURLOPT_MIMEPOST, + # which is engaged for POST requests. For PUT it falls back to CURLOPT_UPLOAD + # and silently drops form fields, so the request is sent without a + # `Content-Type: multipart/form-data; boundary=...` header or body. + # We send the request as POST so the multipart body is encoded correctly, + # then use CURLOPT_CUSTOMREQUEST (exposed by Ethon as :customrequest) to + # restore PUT as the on-the-wire HTTP verb. + # See: https://github.com/typhoeus/typhoeus/issues/389 + content_type_header = header_params['Content-Type'] || header_params['content-type'] + if http_method == :put && content_type_header.is_a?(String) && + content_type_header.start_with?('multipart/form-data') + req_opts[:method] = :post + req_opts[:customrequest] = 'PUT' + end + Typhoeus::Request.new(url, req_opts) end diff --git a/test_fixtures/SignatureRequestCreateEmbeddedRequest.json b/test_fixtures/SignatureRequestCreateEmbeddedRequest.json index 16e8037..097446a 100644 --- a/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +++ b/test_fixtures/SignatureRequestCreateEmbeddedRequest.json @@ -116,7 +116,8 @@ "type": true, "upload": true, "phone": false, - "default_type": "draw" + "default_type": "draw", + "force_advanced_signature_details": false }, "subject": "The NDA we talked about", "test_mode": true, @@ -252,7 +253,8 @@ "type": true, "upload": true, "phone": false, - "default_type": "draw" + "default_type": "draw", + "force_advanced_signature_details": false }, "subject": "The NDA we talked about", "test_mode": true, diff --git a/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json b/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json index a9597ea..f997b28 100644 --- a/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json +++ b/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json @@ -54,7 +54,8 @@ "type": true, "upload": true, "phone": false, - "default_type": "draw" + "default_type": "draw", + "force_advanced_signature_details": false }, "subject": "Purchase Order", "template_ids": [ diff --git a/test_fixtures/SignatureRequestSendRequest.json b/test_fixtures/SignatureRequestSendRequest.json index 98d12db..1f56eb7 100644 --- a/test_fixtures/SignatureRequestSendRequest.json +++ b/test_fixtures/SignatureRequestSendRequest.json @@ -229,7 +229,8 @@ "type": true, "upload": true, "phone": false, - "default_type": "draw" + "default_type": "draw", + "force_advanced_signature_details": false }, "signing_redirect_url": "https://example.com/redirect", "subject": "The NDA we talked about", @@ -468,7 +469,8 @@ "type": true, "upload": true, "phone": false, - "default_type": "draw" + "default_type": "draw", + "force_advanced_signature_details": false }, "signing_redirect_url": "https://example.com/redirect", "subject": "The NDA we talked about", diff --git a/test_fixtures/SignatureRequestSendWithTemplateRequest.json b/test_fixtures/SignatureRequestSendWithTemplateRequest.json index 4d1cc86..df8e207 100644 --- a/test_fixtures/SignatureRequestSendWithTemplateRequest.json +++ b/test_fixtures/SignatureRequestSendWithTemplateRequest.json @@ -42,7 +42,8 @@ "type": true, "upload": true, "phone": false, - "default_type": "draw" + "default_type": "draw", + "force_advanced_signature_details": false }, "signing_redirect_url": "https://example.com/redirect", "subject": "Purchase Order", diff --git a/test_fixtures/TemplateUpdateRequest.json b/test_fixtures/TemplateUpdateRequest.json new file mode 100644 index 0000000..9c9afbf --- /dev/null +++ b/test_fixtures/TemplateUpdateRequest.json @@ -0,0 +1,18 @@ +{ + "default": { + "title": "Test Title", + "subject": "Test Subject", + "message": "Test Message", + "cc_roles": ["one", "two"], + "form_fields": [ + { + "api_id": "uniqueIdHere_1", + "name": "New name 1" + }, + { + "api_id": "uniqueIdHere_2", + "name": "New name 2" + } + ] + } +} \ No newline at end of file diff --git a/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json b/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json index e18890b..addbe6a 100644 --- a/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +++ b/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json @@ -127,7 +127,8 @@ "type": true, "upload": true, "phone": false, - "default_type": "draw" + "default_type": "draw", + "force_advanced_signature_details": false }, "signing_redirect_url": "https://example.com/redirect", "show_progress_stepper": true, diff --git a/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json b/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json index 7c72649..d4f26cd 100644 --- a/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json +++ b/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json @@ -58,7 +58,8 @@ "type": true, "upload": true, "phone": false, - "default_type": "draw" + "default_type": "draw", + "force_advanced_signature_details": false }, "show_progress_stepper": true, "skip_me_now": true, diff --git a/test_fixtures/UnclaimedDraftCreateRequest.json b/test_fixtures/UnclaimedDraftCreateRequest.json index b74d377..a9ab5b5 100644 --- a/test_fixtures/UnclaimedDraftCreateRequest.json +++ b/test_fixtures/UnclaimedDraftCreateRequest.json @@ -114,7 +114,8 @@ "type": true, "upload": true, "phone": false, - "default_type": "draw" + "default_type": "draw", + "force_advanced_signature_details": false }, "signing_redirect_url": "https://example.com/redirect", "subject": "The NDA we talked about", From 01766ab5075798e7638f224a9898f328adacde22 Mon Sep 17 00:00:00 2001 From: Andrzej Danilowski Date: Tue, 12 May 2026 15:28:03 +0200 Subject: [PATCH 2/3] Release 1.11.0 --- examples/AccountCreateExample.rb | 14 +++++------ examples/AccountCreateOauthExample.rb | 14 +++++------ examples/AccountGetExample.rb | 10 ++++---- examples/AccountUpdateExample.rb | 14 +++++------ examples/AccountVerifyExample.rb | 14 +++++------ examples/ApiAppCreateExample.rb | 14 +++++------ examples/ApiAppDeleteExample.rb | 12 +++++----- examples/ApiAppGetExample.rb | 14 +++++------ examples/ApiAppListExample.rb | 20 ++++++++-------- examples/ApiAppUpdateExample.rb | 16 ++++++------- examples/BulkSendJobGetExample.rb | 22 ++++++++--------- examples/BulkSendJobListExample.rb | 20 ++++++++-------- examples/EmbeddedEditUrlExample.rb | 16 ++++++------- examples/EmbeddedSignUrlExample.rb | 14 +++++------ examples/FaxDeleteExample.rb | 10 ++++---- examples/FaxFilesExample.rb | 12 +++++----- examples/FaxGetExample.rb | 12 +++++----- examples/FaxLineAddUserExample.rb | 12 +++++----- examples/FaxLineAreaCodeGetExample.rb | 12 +++++----- examples/FaxLineCreateExample.rb | 12 +++++----- examples/FaxLineDeleteExample.rb | 10 ++++---- examples/FaxLineGetExample.rb | 12 +++++----- examples/FaxLineListExample.rb | 22 ++++++++--------- examples/FaxLineRemoveUserExample.rb | 12 +++++----- examples/FaxListExample.rb | 18 +++++++------- examples/FaxSendExample.rb | 12 +++++----- examples/OauthTokenGenerateExample.rb | 10 ++++---- examples/OauthTokenRefreshExample.rb | 10 ++++---- examples/ReportCreateExample.rb | 12 +++++----- ...stBulkCreateEmbeddedWithTemplateExample.rb | 12 +++++----- ...atureRequestBulkSendWithTemplateExample.rb | 14 +++++------ examples/SignatureRequestCancelExample.rb | 12 +++++----- .../SignatureRequestCreateEmbeddedExample.rb | 14 +++++------ ...uestCreateEmbeddedGroupedSignersExample.rb | 14 +++++------ ...equestCreateEmbeddedWithTemplateExample.rb | 14 +++++------ .../SignatureRequestEditEmbeddedExample.rb | 16 ++++++------- ...equestEditEmbeddedGroupedSignersExample.rb | 16 ++++++------- ...eRequestEditEmbeddedWithTemplateExample.rb | 16 ++++++------- examples/SignatureRequestEditExample.rb | 16 ++++++------- ...gnatureRequestEditGroupedSignersExample.rb | 16 ++++++------- ...SignatureRequestEditWithTemplateExample.rb | 16 ++++++------- .../SignatureRequestFilesAsDataUriExample.rb | 14 +++++------ .../SignatureRequestFilesAsFileUrlExample.rb | 20 ++++++++-------- examples/SignatureRequestFilesExample.rb | 20 ++++++++-------- examples/SignatureRequestGetExample.rb | 14 +++++------ examples/SignatureRequestListExample.rb | 24 +++++++++---------- .../SignatureRequestReleaseHoldExample.rb | 14 +++++------ examples/SignatureRequestRemindExample.rb | 16 ++++++------- examples/SignatureRequestRemoveExample.rb | 10 ++++---- examples/SignatureRequestSendExample.rb | 14 +++++------ ...gnatureRequestSendGroupedSignersExample.rb | 14 +++++------ ...SignatureRequestSendWithTemplateExample.rb | 14 +++++------ examples/SignatureRequestUpdateExample.rb | 16 ++++++------- examples/TeamAddMemberAccountIdExample.rb | 20 ++++++++-------- examples/TeamAddMemberExample.rb | 20 ++++++++-------- examples/TeamCreateExample.rb | 14 +++++------ examples/TeamDeleteExample.rb | 8 +++---- examples/TeamGetExample.rb | 10 ++++---- examples/TeamInfoExample.rb | 18 +++++++------- examples/TeamInvitesExample.rb | 10 ++++---- examples/TeamMembersExample.rb | 22 ++++++++--------- examples/TeamRemoveMemberAccountIdExample.rb | 14 +++++------ examples/TeamRemoveMemberExample.rb | 14 +++++------ examples/TeamSubTeamsExample.rb | 22 ++++++++--------- examples/TeamUpdateExample.rb | 14 +++++------ examples/TemplateAddUserExample.rb | 16 ++++++------- .../TemplateCreateEmbeddedDraftExample.rb | 14 +++++------ ...eateEmbeddedDraftFormFieldGroupsExample.rb | 14 +++++------ ...reateEmbeddedDraftFormFieldRulesExample.rb | 14 +++++------ ...beddedDraftFormFieldsPerDocumentExample.rb | 14 +++++------ examples/TemplateCreateExample.rb | 14 +++++------ .../TemplateCreateFormFieldGroupsExample.rb | 14 +++++------ .../TemplateCreateFormFieldRulesExample.rb | 14 +++++------ ...plateCreateFormFieldsPerDocumentExample.rb | 14 +++++------ examples/TemplateDeleteExample.rb | 12 +++++----- examples/TemplateFilesAsDataUriExample.rb | 14 +++++------ examples/TemplateFilesAsFileUrlExample.rb | 20 ++++++++-------- examples/TemplateFilesExample.rb | 14 +++++------ examples/TemplateGetExample.rb | 14 +++++------ examples/TemplateListExample.rb | 24 +++++++++---------- examples/TemplateRemoveUserExample.rb | 16 ++++++------- examples/TemplateUpdateFilesExample.rb | 16 ++++++------- .../UnclaimedDraftCreateEmbeddedExample.rb | 14 +++++------ ...aftCreateEmbeddedFormFieldGroupsExample.rb | 14 +++++------ ...raftCreateEmbeddedFormFieldRulesExample.rb | 14 +++++------ ...ateEmbeddedFormFieldsPerDocumentExample.rb | 14 +++++------ ...dDraftCreateEmbeddedWithTemplateExample.rb | 14 +++++------ examples/UnclaimedDraftCreateExample.rb | 14 +++++------ ...laimedDraftCreateFormFieldGroupsExample.rb | 14 +++++------ ...claimedDraftCreateFormFieldRulesExample.rb | 14 +++++------ ...DraftCreateFormFieldsPerDocumentExample.rb | 14 +++++------ .../UnclaimedDraftEditAndResendExample.rb | 16 ++++++------- 92 files changed, 677 insertions(+), 677 deletions(-) diff --git a/examples/AccountCreateExample.rb b/examples/AccountCreateExample.rb index 6ce6db2..0eddffa 100644 --- a/examples/AccountCreateExample.rb +++ b/examples/AccountCreateExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end account_create_request = Dropbox::Sign::AccountCreateRequest.new account_create_request.email_address = "newuser@dropboxsign.com" begin - response = Dropbox::Sign::AccountApi.new.account_create( - account_create_request, - ) + response = Dropbox::Sign::AccountApi.new.account_create( + account_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling AccountApi#account_create: #{e}" + puts "Exception when calling AccountApi#account_create: #{e}" end diff --git a/examples/AccountCreateOauthExample.rb b/examples/AccountCreateOauthExample.rb index 26ebdc7..21255a6 100644 --- a/examples/AccountCreateOauthExample.rb +++ b/examples/AccountCreateOauthExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end account_create_request = Dropbox::Sign::AccountCreateRequest.new @@ -12,11 +12,11 @@ account_create_request.client_secret = "1d14434088507ffa390e6f5528465" begin - response = Dropbox::Sign::AccountApi.new.account_create( - account_create_request, - ) + response = Dropbox::Sign::AccountApi.new.account_create( + account_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling AccountApi#account_create: #{e}" + puts "Exception when calling AccountApi#account_create: #{e}" end diff --git a/examples/AccountGetExample.rb b/examples/AccountGetExample.rb index 3b8fb5d..ee63869 100644 --- a/examples/AccountGetExample.rb +++ b/examples/AccountGetExample.rb @@ -2,14 +2,14 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::AccountApi.new.account_get + response = Dropbox::Sign::AccountApi.new.account_get - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling AccountApi#account_get: #{e}" + puts "Exception when calling AccountApi#account_get: #{e}" end diff --git a/examples/AccountUpdateExample.rb b/examples/AccountUpdateExample.rb index f8d7f1b..4a8d4de 100644 --- a/examples/AccountUpdateExample.rb +++ b/examples/AccountUpdateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end account_update_request = Dropbox::Sign::AccountUpdateRequest.new @@ -11,11 +11,11 @@ account_update_request.locale = "en-US" begin - response = Dropbox::Sign::AccountApi.new.account_update( - account_update_request, - ) + response = Dropbox::Sign::AccountApi.new.account_update( + account_update_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling AccountApi#account_update: #{e}" + puts "Exception when calling AccountApi#account_update: #{e}" end diff --git a/examples/AccountVerifyExample.rb b/examples/AccountVerifyExample.rb index 8e57aff..01ef2e9 100644 --- a/examples/AccountVerifyExample.rb +++ b/examples/AccountVerifyExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end account_verify_request = Dropbox::Sign::AccountVerifyRequest.new account_verify_request.email_address = "some_user@dropboxsign.com" begin - response = Dropbox::Sign::AccountApi.new.account_verify( - account_verify_request, - ) + response = Dropbox::Sign::AccountApi.new.account_verify( + account_verify_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling AccountApi#account_verify: #{e}" + puts "Exception when calling AccountApi#account_verify: #{e}" end diff --git a/examples/ApiAppCreateExample.rb b/examples/ApiAppCreateExample.rb index d2b9597..479de3b 100644 --- a/examples/ApiAppCreateExample.rb +++ b/examples/ApiAppCreateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end oauth = Dropbox::Sign::SubOAuth.new @@ -27,11 +27,11 @@ api_app_create_request.white_labeling_options = white_labeling_options begin - response = Dropbox::Sign::ApiAppApi.new.api_app_create( - api_app_create_request, - ) + response = Dropbox::Sign::ApiAppApi.new.api_app_create( + api_app_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling ApiAppApi#api_app_create: #{e}" + puts "Exception when calling ApiAppApi#api_app_create: #{e}" end diff --git a/examples/ApiAppDeleteExample.rb b/examples/ApiAppDeleteExample.rb index def7fb6..e6f97a9 100644 --- a/examples/ApiAppDeleteExample.rb +++ b/examples/ApiAppDeleteExample.rb @@ -2,14 +2,14 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - Dropbox::Sign::ApiAppApi.new.api_app_delete( - "0dd3b823a682527788c4e40cb7b6f7e9", # client_id - ) + Dropbox::Sign::ApiAppApi.new.api_app_delete( + "0dd3b823a682527788c4e40cb7b6f7e9", # client_id + ) rescue Dropbox::Sign::ApiError => e - puts "Exception when calling ApiAppApi#api_app_delete: #{e}" + puts "Exception when calling ApiAppApi#api_app_delete: #{e}" end diff --git a/examples/ApiAppGetExample.rb b/examples/ApiAppGetExample.rb index f40c92b..cc708c1 100644 --- a/examples/ApiAppGetExample.rb +++ b/examples/ApiAppGetExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::ApiAppApi.new.api_app_get( - "0dd3b823a682527788c4e40cb7b6f7e9", # client_id - ) + response = Dropbox::Sign::ApiAppApi.new.api_app_get( + "0dd3b823a682527788c4e40cb7b6f7e9", # client_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling ApiAppApi#api_app_get: #{e}" + puts "Exception when calling ApiAppApi#api_app_get: #{e}" end diff --git a/examples/ApiAppListExample.rb b/examples/ApiAppListExample.rb index 3e776c6..b70253e 100644 --- a/examples/ApiAppListExample.rb +++ b/examples/ApiAppListExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::ApiAppApi.new.api_app_list( - { - page: 1, - page_size: 20, - }, - ) + response = Dropbox::Sign::ApiAppApi.new.api_app_list( + { + page: 1, + page_size: 20, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling ApiAppApi#api_app_list: #{e}" + puts "Exception when calling ApiAppApi#api_app_list: #{e}" end diff --git a/examples/ApiAppUpdateExample.rb b/examples/ApiAppUpdateExample.rb index e973b35..3f4a947 100644 --- a/examples/ApiAppUpdateExample.rb +++ b/examples/ApiAppUpdateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end oauth = Dropbox::Sign::SubOAuth.new @@ -28,12 +28,12 @@ api_app_update_request.white_labeling_options = white_labeling_options begin - response = Dropbox::Sign::ApiAppApi.new.api_app_update( - "0dd3b823a682527788c4e40cb7b6f7e9", # client_id - api_app_update_request, - ) + response = Dropbox::Sign::ApiAppApi.new.api_app_update( + "0dd3b823a682527788c4e40cb7b6f7e9", # client_id + api_app_update_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling ApiAppApi#api_app_update: #{e}" + puts "Exception when calling ApiAppApi#api_app_update: #{e}" end diff --git a/examples/BulkSendJobGetExample.rb b/examples/BulkSendJobGetExample.rb index bf4b585..54f0d44 100644 --- a/examples/BulkSendJobGetExample.rb +++ b/examples/BulkSendJobGetExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::BulkSendJobApi.new.bulk_send_job_get( - "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174", # bulk_send_job_id - { - page: 1, - page_size: 20, - }, - ) + response = Dropbox::Sign::BulkSendJobApi.new.bulk_send_job_get( + "6e683bc0369ba3d5b6f43c2c22a8031dbf6bd174", # bulk_send_job_id + { + page: 1, + page_size: 20, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling BulkSendJobApi#bulk_send_job_get: #{e}" + puts "Exception when calling BulkSendJobApi#bulk_send_job_get: #{e}" end diff --git a/examples/BulkSendJobListExample.rb b/examples/BulkSendJobListExample.rb index 60e8c1b..efbdc90 100644 --- a/examples/BulkSendJobListExample.rb +++ b/examples/BulkSendJobListExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::BulkSendJobApi.new.bulk_send_job_list( - { - page: 1, - page_size: 20, - }, - ) + response = Dropbox::Sign::BulkSendJobApi.new.bulk_send_job_list( + { + page: 1, + page_size: 20, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling BulkSendJobApi#bulk_send_job_list: #{e}" + puts "Exception when calling BulkSendJobApi#bulk_send_job_list: #{e}" end diff --git a/examples/EmbeddedEditUrlExample.rb b/examples/EmbeddedEditUrlExample.rb index 8c110f6..90803f5 100644 --- a/examples/EmbeddedEditUrlExample.rb +++ b/examples/EmbeddedEditUrlExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end merge_fields = [ @@ -16,12 +16,12 @@ embedded_edit_url_request.merge_fields = merge_fields begin - response = Dropbox::Sign::EmbeddedApi.new.embedded_edit_url( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - embedded_edit_url_request, - ) + response = Dropbox::Sign::EmbeddedApi.new.embedded_edit_url( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + embedded_edit_url_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling EmbeddedApi#embedded_edit_url: #{e}" + puts "Exception when calling EmbeddedApi#embedded_edit_url: #{e}" end diff --git a/examples/EmbeddedSignUrlExample.rb b/examples/EmbeddedSignUrlExample.rb index dd08e5a..3d3967d 100644 --- a/examples/EmbeddedSignUrlExample.rb +++ b/examples/EmbeddedSignUrlExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::EmbeddedApi.new.embedded_sign_url( - "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b", # signature_id - ) + response = Dropbox::Sign::EmbeddedApi.new.embedded_sign_url( + "50e3542f738adfa7ddd4cbd4c00d2a8ab6e4194b", # signature_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling EmbeddedApi#embedded_sign_url: #{e}" + puts "Exception when calling EmbeddedApi#embedded_sign_url: #{e}" end diff --git a/examples/FaxDeleteExample.rb b/examples/FaxDeleteExample.rb index 6caa9d6..ba55cc3 100644 --- a/examples/FaxDeleteExample.rb +++ b/examples/FaxDeleteExample.rb @@ -2,13 +2,13 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - Dropbox::Sign::FaxApi.new.fax_delete( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id - ) + Dropbox::Sign::FaxApi.new.fax_delete( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id + ) rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxApi#fax_delete: #{e}" + puts "Exception when calling FaxApi#fax_delete: #{e}" end diff --git a/examples/FaxFilesExample.rb b/examples/FaxFilesExample.rb index b44d604..c8364b9 100644 --- a/examples/FaxFilesExample.rb +++ b/examples/FaxFilesExample.rb @@ -2,15 +2,15 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - response = Dropbox::Sign::FaxApi.new.fax_files( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id - ) + response = Dropbox::Sign::FaxApi.new.fax_files( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id + ) - FileUtils.cp(response.path, "./file_response") + FileUtils.cp(response.path, "./file_response") rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxApi#fax_files: #{e}" + puts "Exception when calling FaxApi#fax_files: #{e}" end diff --git a/examples/FaxGetExample.rb b/examples/FaxGetExample.rb index 692ae1c..6f2a651 100644 --- a/examples/FaxGetExample.rb +++ b/examples/FaxGetExample.rb @@ -2,15 +2,15 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - response = Dropbox::Sign::FaxApi.new.fax_get( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id - ) + response = Dropbox::Sign::FaxApi.new.fax_get( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # fax_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxApi#fax_get: #{e}" + puts "Exception when calling FaxApi#fax_get: #{e}" end diff --git a/examples/FaxLineAddUserExample.rb b/examples/FaxLineAddUserExample.rb index 4d7f568..2d3f74b 100644 --- a/examples/FaxLineAddUserExample.rb +++ b/examples/FaxLineAddUserExample.rb @@ -2,7 +2,7 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end fax_line_add_user_request = Dropbox::Sign::FaxLineAddUserRequest.new @@ -10,11 +10,11 @@ fax_line_add_user_request.email_address = "member@dropboxsign.com" begin - response = Dropbox::Sign::FaxLineApi.new.fax_line_add_user( - fax_line_add_user_request, - ) + response = Dropbox::Sign::FaxLineApi.new.fax_line_add_user( + fax_line_add_user_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_add_user: #{e}" + puts "Exception when calling FaxLineApi#fax_line_add_user: #{e}" end diff --git a/examples/FaxLineAreaCodeGetExample.rb b/examples/FaxLineAreaCodeGetExample.rb index 75c3a3c..50e6e95 100644 --- a/examples/FaxLineAreaCodeGetExample.rb +++ b/examples/FaxLineAreaCodeGetExample.rb @@ -2,15 +2,15 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - response = Dropbox::Sign::FaxLineApi.new.fax_line_area_code_get( - "US", # country - ) + response = Dropbox::Sign::FaxLineApi.new.fax_line_area_code_get( + "US", # country + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_area_code_get: #{e}" + puts "Exception when calling FaxLineApi#fax_line_area_code_get: #{e}" end diff --git a/examples/FaxLineCreateExample.rb b/examples/FaxLineCreateExample.rb index 5342e5c..22b0b08 100644 --- a/examples/FaxLineCreateExample.rb +++ b/examples/FaxLineCreateExample.rb @@ -2,7 +2,7 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end fax_line_create_request = Dropbox::Sign::FaxLineCreateRequest.new @@ -10,11 +10,11 @@ fax_line_create_request.country = "US" begin - response = Dropbox::Sign::FaxLineApi.new.fax_line_create( - fax_line_create_request, - ) + response = Dropbox::Sign::FaxLineApi.new.fax_line_create( + fax_line_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_create: #{e}" + puts "Exception when calling FaxLineApi#fax_line_create: #{e}" end diff --git a/examples/FaxLineDeleteExample.rb b/examples/FaxLineDeleteExample.rb index c54da52..c81fc27 100644 --- a/examples/FaxLineDeleteExample.rb +++ b/examples/FaxLineDeleteExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end fax_line_delete_request = Dropbox::Sign::FaxLineDeleteRequest.new fax_line_delete_request.number = "[FAX_NUMBER]" begin - Dropbox::Sign::FaxLineApi.new.fax_line_delete( - fax_line_delete_request, - ) + Dropbox::Sign::FaxLineApi.new.fax_line_delete( + fax_line_delete_request, + ) rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_delete: #{e}" + puts "Exception when calling FaxLineApi#fax_line_delete: #{e}" end diff --git a/examples/FaxLineGetExample.rb b/examples/FaxLineGetExample.rb index d4a749b..2215bc6 100644 --- a/examples/FaxLineGetExample.rb +++ b/examples/FaxLineGetExample.rb @@ -2,15 +2,15 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - response = Dropbox::Sign::FaxLineApi.new.fax_line_get( - "123-123-1234", # number - ) + response = Dropbox::Sign::FaxLineApi.new.fax_line_get( + "123-123-1234", # number + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_get: #{e}" + puts "Exception when calling FaxLineApi#fax_line_get: #{e}" end diff --git a/examples/FaxLineListExample.rb b/examples/FaxLineListExample.rb index 0da5a39..9bae085 100644 --- a/examples/FaxLineListExample.rb +++ b/examples/FaxLineListExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - response = Dropbox::Sign::FaxLineApi.new.fax_line_list( - { - account_id: "ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97", - page: 1, - page_size: 20, - show_team_lines: nil, - }, - ) + response = Dropbox::Sign::FaxLineApi.new.fax_line_list( + { + account_id: "ab55cd14a97219e36b5ff5fe23f2f9329b0c1e97", + page: 1, + page_size: 20, + show_team_lines: nil, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_list: #{e}" + puts "Exception when calling FaxLineApi#fax_line_list: #{e}" end diff --git a/examples/FaxLineRemoveUserExample.rb b/examples/FaxLineRemoveUserExample.rb index 4f67f7e..a8b2816 100644 --- a/examples/FaxLineRemoveUserExample.rb +++ b/examples/FaxLineRemoveUserExample.rb @@ -2,7 +2,7 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end fax_line_remove_user_request = Dropbox::Sign::FaxLineRemoveUserRequest.new @@ -10,11 +10,11 @@ fax_line_remove_user_request.email_address = "member@dropboxsign.com" begin - response = Dropbox::Sign::FaxLineApi.new.fax_line_remove_user( - fax_line_remove_user_request, - ) + response = Dropbox::Sign::FaxLineApi.new.fax_line_remove_user( + fax_line_remove_user_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxLineApi#fax_line_remove_user: #{e}" + puts "Exception when calling FaxLineApi#fax_line_remove_user: #{e}" end diff --git a/examples/FaxListExample.rb b/examples/FaxListExample.rb index 519e04d..1155ce1 100644 --- a/examples/FaxListExample.rb +++ b/examples/FaxListExample.rb @@ -2,18 +2,18 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - response = Dropbox::Sign::FaxApi.new.fax_list( - { - page: 1, - page_size: 20, - }, - ) + response = Dropbox::Sign::FaxApi.new.fax_list( + { + page: 1, + page_size: 20, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxApi#fax_list: #{e}" + puts "Exception when calling FaxApi#fax_list: #{e}" end diff --git a/examples/FaxSendExample.rb b/examples/FaxSendExample.rb index 4faeaa7..b5de600 100644 --- a/examples/FaxSendExample.rb +++ b/examples/FaxSendExample.rb @@ -2,7 +2,7 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end fax_send_request = Dropbox::Sign::FaxSendRequest.new @@ -18,11 +18,11 @@ ] begin - response = Dropbox::Sign::FaxApi.new.fax_send( - fax_send_request, - ) + response = Dropbox::Sign::FaxApi.new.fax_send( + fax_send_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling FaxApi#fax_send: #{e}" + puts "Exception when calling FaxApi#fax_send: #{e}" end diff --git a/examples/OauthTokenGenerateExample.rb b/examples/OauthTokenGenerateExample.rb index 4755382..3f2e9a4 100644 --- a/examples/OauthTokenGenerateExample.rb +++ b/examples/OauthTokenGenerateExample.rb @@ -12,11 +12,11 @@ o_auth_token_generate_request.grant_type = "authorization_code" begin - response = Dropbox::Sign::OAuthApi.new.oauth_token_generate( - o_auth_token_generate_request, - ) + response = Dropbox::Sign::OAuthApi.new.oauth_token_generate( + o_auth_token_generate_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling OAuthApi#oauth_token_generate: #{e}" + puts "Exception when calling OAuthApi#oauth_token_generate: #{e}" end diff --git a/examples/OauthTokenRefreshExample.rb b/examples/OauthTokenRefreshExample.rb index 5068b44..7862b67 100644 --- a/examples/OauthTokenRefreshExample.rb +++ b/examples/OauthTokenRefreshExample.rb @@ -9,11 +9,11 @@ o_auth_token_refresh_request.refresh_token = "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3" begin - response = Dropbox::Sign::OAuthApi.new.oauth_token_refresh( - o_auth_token_refresh_request, - ) + response = Dropbox::Sign::OAuthApi.new.oauth_token_refresh( + o_auth_token_refresh_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling OAuthApi#oauth_token_refresh: #{e}" + puts "Exception when calling OAuthApi#oauth_token_refresh: #{e}" end diff --git a/examples/ReportCreateExample.rb b/examples/ReportCreateExample.rb index d5169ca..2b5587d 100644 --- a/examples/ReportCreateExample.rb +++ b/examples/ReportCreateExample.rb @@ -2,7 +2,7 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end report_create_request = Dropbox::Sign::ReportCreateRequest.new @@ -14,11 +14,11 @@ ] begin - response = Dropbox::Sign::ReportApi.new.report_create( - report_create_request, - ) + response = Dropbox::Sign::ReportApi.new.report_create( + report_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling ReportApi#report_create: #{e}" + puts "Exception when calling ReportApi#report_create: #{e}" end diff --git a/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb b/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb index e01b04f..82d3d8a 100644 --- a/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb +++ b/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb @@ -2,7 +2,7 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end signer_list_2_custom_fields_1 = Dropbox::Sign::SubBulkSignerListCustomField.new @@ -74,11 +74,11 @@ signature_request_bulk_create_embedded_with_template_request.ccs = ccs begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_bulk_create_embedded_with_template( - signature_request_bulk_create_embedded_with_template_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_bulk_create_embedded_with_template( + signature_request_bulk_create_embedded_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_bulk_create_embedded_with_template: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_bulk_create_embedded_with_template: #{e}" end diff --git a/examples/SignatureRequestBulkSendWithTemplateExample.rb b/examples/SignatureRequestBulkSendWithTemplateExample.rb index 27f2d66..6254c03 100644 --- a/examples/SignatureRequestBulkSendWithTemplateExample.rb +++ b/examples/SignatureRequestBulkSendWithTemplateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signer_list_2_custom_fields_1 = Dropbox::Sign::SubBulkSignerListCustomField.new @@ -74,11 +74,11 @@ signature_request_bulk_send_with_template_request.ccs = ccs begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_bulk_send_with_template( - signature_request_bulk_send_with_template_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_bulk_send_with_template( + signature_request_bulk_send_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_bulk_send_with_template: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_bulk_send_with_template: #{e}" end diff --git a/examples/SignatureRequestCancelExample.rb b/examples/SignatureRequestCancelExample.rb index 9f3ff95..f516882 100644 --- a/examples/SignatureRequestCancelExample.rb +++ b/examples/SignatureRequestCancelExample.rb @@ -2,14 +2,14 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - Dropbox::Sign::SignatureRequestApi.new.signature_request_cancel( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - ) + Dropbox::Sign::SignatureRequestApi.new.signature_request_cancel( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + ) rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_cancel: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_cancel: #{e}" end diff --git a/examples/SignatureRequestCreateEmbeddedExample.rb b/examples/SignatureRequestCreateEmbeddedExample.rb index 3b33e2f..b3d0c87 100644 --- a/examples/SignatureRequestCreateEmbeddedExample.rb +++ b/examples/SignatureRequestCreateEmbeddedExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signing_options = Dropbox::Sign::SubSigningOptions.new @@ -46,11 +46,11 @@ signature_request_create_embedded_request.signers = signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_create_embedded( - signature_request_create_embedded_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_create_embedded( + signature_request_create_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_create_embedded: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_create_embedded: #{e}" end diff --git a/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.rb b/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.rb index 9910ee8..c9545ba 100644 --- a/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.rb +++ b/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end grouped_signers_2_signers_1 = Dropbox::Sign::SubSignatureRequestSigner.new @@ -71,11 +71,11 @@ signature_request_create_embedded_request.grouped_signers = grouped_signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_create_embedded( - signature_request_create_embedded_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_create_embedded( + signature_request_create_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_create_embedded: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_create_embedded: #{e}" end diff --git a/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb b/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb index 18d1d8b..1091be1 100644 --- a/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb +++ b/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signing_options = Dropbox::Sign::SubSigningOptions.new @@ -35,11 +35,11 @@ signature_request_create_embedded_with_template_request.signers = signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_create_embedded_with_template( - signature_request_create_embedded_with_template_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_create_embedded_with_template( + signature_request_create_embedded_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_create_embedded_with_template: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_create_embedded_with_template: #{e}" end diff --git a/examples/SignatureRequestEditEmbeddedExample.rb b/examples/SignatureRequestEditEmbeddedExample.rb index 0e19237..6228002 100644 --- a/examples/SignatureRequestEditEmbeddedExample.rb +++ b/examples/SignatureRequestEditEmbeddedExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signing_options = Dropbox::Sign::SubSigningOptions.new @@ -45,12 +45,12 @@ signature_request_edit_embedded_request.signers = signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_embedded( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_edit_embedded_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_embedded( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_edit_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_edit_embedded: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_edit_embedded: #{e}" end diff --git a/examples/SignatureRequestEditEmbeddedGroupedSignersExample.rb b/examples/SignatureRequestEditEmbeddedGroupedSignersExample.rb index 0fc7bc7..6a0f05c 100644 --- a/examples/SignatureRequestEditEmbeddedGroupedSignersExample.rb +++ b/examples/SignatureRequestEditEmbeddedGroupedSignersExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end grouped_signers_2_signers_1 = Dropbox::Sign::SubSignatureRequestSigner.new @@ -71,12 +71,12 @@ signature_request_edit_embedded_request.grouped_signers = grouped_signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_embedded( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_edit_embedded_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_embedded( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_edit_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_edit_embedded: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_edit_embedded: #{e}" end diff --git a/examples/SignatureRequestEditEmbeddedWithTemplateExample.rb b/examples/SignatureRequestEditEmbeddedWithTemplateExample.rb index f504f19..9813d7b 100644 --- a/examples/SignatureRequestEditEmbeddedWithTemplateExample.rb +++ b/examples/SignatureRequestEditEmbeddedWithTemplateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signing_options = Dropbox::Sign::SubSigningOptions.new @@ -34,12 +34,12 @@ signature_request_edit_embedded_with_template_request.signers = signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_embedded_with_template( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_edit_embedded_with_template_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_embedded_with_template( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_edit_embedded_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_edit_embedded_with_template: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_edit_embedded_with_template: #{e}" end diff --git a/examples/SignatureRequestEditExample.rb b/examples/SignatureRequestEditExample.rb index e55d7be..9c1d94b 100644 --- a/examples/SignatureRequestEditExample.rb +++ b/examples/SignatureRequestEditExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -55,12 +55,12 @@ signature_request_edit_request.signers = signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_edit_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_edit_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_edit: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_edit: #{e}" end diff --git a/examples/SignatureRequestEditGroupedSignersExample.rb b/examples/SignatureRequestEditGroupedSignersExample.rb index 2b19ffa..3b6a910 100644 --- a/examples/SignatureRequestEditGroupedSignersExample.rb +++ b/examples/SignatureRequestEditGroupedSignersExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end grouped_signers_2_signers_1 = Dropbox::Sign::SubSignatureRequestSigner.new @@ -81,12 +81,12 @@ signature_request_edit_request.grouped_signers = grouped_signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_edit_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_edit_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_edit: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_edit: #{e}" end diff --git a/examples/SignatureRequestEditWithTemplateExample.rb b/examples/SignatureRequestEditWithTemplateExample.rb index f3c2d8e..ad299e5 100644 --- a/examples/SignatureRequestEditWithTemplateExample.rb +++ b/examples/SignatureRequestEditWithTemplateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signing_options = Dropbox::Sign::SubSigningOptions.new @@ -53,12 +53,12 @@ signature_request_edit_with_template_request.custom_fields = custom_fields begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_with_template( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_edit_with_template_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_edit_with_template( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_edit_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_edit_with_template: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_edit_with_template: #{e}" end diff --git a/examples/SignatureRequestFilesAsDataUriExample.rb b/examples/SignatureRequestFilesAsDataUriExample.rb index 9f9390e..05cca11 100644 --- a/examples/SignatureRequestFilesAsDataUriExample.rb +++ b/examples/SignatureRequestFilesAsDataUriExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_files_as_data_uri( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_files_as_data_uri( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_files_as_data_uri: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_files_as_data_uri: #{e}" end diff --git a/examples/SignatureRequestFilesAsFileUrlExample.rb b/examples/SignatureRequestFilesAsFileUrlExample.rb index 14abf28..623d201 100644 --- a/examples/SignatureRequestFilesAsFileUrlExample.rb +++ b/examples/SignatureRequestFilesAsFileUrlExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_files_as_file_url( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - { - force_download: 1, - }, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_files_as_file_url( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + { + force_download: 1, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_files_as_file_url: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_files_as_file_url: #{e}" end diff --git a/examples/SignatureRequestFilesExample.rb b/examples/SignatureRequestFilesExample.rb index 1d891d6..1fb60c8 100644 --- a/examples/SignatureRequestFilesExample.rb +++ b/examples/SignatureRequestFilesExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_files( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - { - file_type: "pdf", - }, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_files( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + { + file_type: "pdf", + }, + ) - FileUtils.cp(response.path, "./file_response") + FileUtils.cp(response.path, "./file_response") rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_files: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_files: #{e}" end diff --git a/examples/SignatureRequestGetExample.rb b/examples/SignatureRequestGetExample.rb index 6399f34..99e0161 100644 --- a/examples/SignatureRequestGetExample.rb +++ b/examples/SignatureRequestGetExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_get( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_get( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_get: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_get: #{e}" end diff --git a/examples/SignatureRequestListExample.rb b/examples/SignatureRequestListExample.rb index 2fcc012..ba84cb6 100644 --- a/examples/SignatureRequestListExample.rb +++ b/examples/SignatureRequestListExample.rb @@ -2,21 +2,21 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_list( - { - account_id: nil, - page: 1, - page_size: 20, - query: nil, - }, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_list( + { + account_id: nil, + page: 1, + page_size: 20, + query: nil, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_list: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_list: #{e}" end diff --git a/examples/SignatureRequestReleaseHoldExample.rb b/examples/SignatureRequestReleaseHoldExample.rb index 422ab2d..d4e3533 100644 --- a/examples/SignatureRequestReleaseHoldExample.rb +++ b/examples/SignatureRequestReleaseHoldExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_release_hold( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_release_hold( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_release_hold: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_release_hold: #{e}" end diff --git a/examples/SignatureRequestRemindExample.rb b/examples/SignatureRequestRemindExample.rb index 722928d..41109aa 100644 --- a/examples/SignatureRequestRemindExample.rb +++ b/examples/SignatureRequestRemindExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signature_request_remind_request = Dropbox::Sign::SignatureRequestRemindRequest.new signature_request_remind_request.email_address = "john@example.com" begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_remind( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_remind_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_remind( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_remind_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_remind: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_remind: #{e}" end diff --git a/examples/SignatureRequestRemoveExample.rb b/examples/SignatureRequestRemoveExample.rb index 7940519..56249f7 100644 --- a/examples/SignatureRequestRemoveExample.rb +++ b/examples/SignatureRequestRemoveExample.rb @@ -2,13 +2,13 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" + config.username = "YOUR_API_KEY" end begin - Dropbox::Sign::SignatureRequestApi.new.signature_request_remove( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - ) + Dropbox::Sign::SignatureRequestApi.new.signature_request_remove( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + ) rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_remove: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_remove: #{e}" end diff --git a/examples/SignatureRequestSendExample.rb b/examples/SignatureRequestSendExample.rb index 45958b7..05777f5 100644 --- a/examples/SignatureRequestSendExample.rb +++ b/examples/SignatureRequestSendExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -56,11 +56,11 @@ signature_request_send_request.signers = signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_send( - signature_request_send_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_send( + signature_request_send_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_send: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_send: #{e}" end diff --git a/examples/SignatureRequestSendGroupedSignersExample.rb b/examples/SignatureRequestSendGroupedSignersExample.rb index dec38e8..5f3a376 100644 --- a/examples/SignatureRequestSendGroupedSignersExample.rb +++ b/examples/SignatureRequestSendGroupedSignersExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end grouped_signers_2_signers_1 = Dropbox::Sign::SubSignatureRequestSigner.new @@ -81,11 +81,11 @@ signature_request_send_request.grouped_signers = grouped_signers begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_send( - signature_request_send_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_send( + signature_request_send_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_send: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_send: #{e}" end diff --git a/examples/SignatureRequestSendWithTemplateExample.rb b/examples/SignatureRequestSendWithTemplateExample.rb index 237c12f..2ca41c1 100644 --- a/examples/SignatureRequestSendWithTemplateExample.rb +++ b/examples/SignatureRequestSendWithTemplateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signing_options = Dropbox::Sign::SubSigningOptions.new @@ -54,11 +54,11 @@ signature_request_send_with_template_request.custom_fields = custom_fields begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_send_with_template( - signature_request_send_with_template_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_send_with_template( + signature_request_send_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_send_with_template: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_send_with_template: #{e}" end diff --git a/examples/SignatureRequestUpdateExample.rb b/examples/SignatureRequestUpdateExample.rb index 3cac8ae..66ff44b 100644 --- a/examples/SignatureRequestUpdateExample.rb +++ b/examples/SignatureRequestUpdateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signature_request_update_request = Dropbox::Sign::SignatureRequestUpdateRequest.new @@ -11,12 +11,12 @@ signature_request_update_request.email_address = "john@example.com" begin - response = Dropbox::Sign::SignatureRequestApi.new.signature_request_update( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - signature_request_update_request, - ) + response = Dropbox::Sign::SignatureRequestApi.new.signature_request_update( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + signature_request_update_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling SignatureRequestApi#signature_request_update: #{e}" + puts "Exception when calling SignatureRequestApi#signature_request_update: #{e}" end diff --git a/examples/TeamAddMemberAccountIdExample.rb b/examples/TeamAddMemberAccountIdExample.rb index e199558..d905e84 100644 --- a/examples/TeamAddMemberAccountIdExample.rb +++ b/examples/TeamAddMemberAccountIdExample.rb @@ -2,22 +2,22 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end team_add_member_request = Dropbox::Sign::TeamAddMemberRequest.new team_add_member_request.account_id = "f57db65d3f933b5316d398057a36176831451a35" begin - response = Dropbox::Sign::TeamApi.new.team_add_member( - team_add_member_request, - { - team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", - }, - ) + response = Dropbox::Sign::TeamApi.new.team_add_member( + team_add_member_request, + { + team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_add_member: #{e}" + puts "Exception when calling TeamApi#team_add_member: #{e}" end diff --git a/examples/TeamAddMemberExample.rb b/examples/TeamAddMemberExample.rb index b312e98..120af12 100644 --- a/examples/TeamAddMemberExample.rb +++ b/examples/TeamAddMemberExample.rb @@ -2,22 +2,22 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end team_add_member_request = Dropbox::Sign::TeamAddMemberRequest.new team_add_member_request.email_address = "george@example.com" begin - response = Dropbox::Sign::TeamApi.new.team_add_member( - team_add_member_request, - { - team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", - }, - ) + response = Dropbox::Sign::TeamApi.new.team_add_member( + team_add_member_request, + { + team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_add_member: #{e}" + puts "Exception when calling TeamApi#team_add_member: #{e}" end diff --git a/examples/TeamCreateExample.rb b/examples/TeamCreateExample.rb index 6bac612..fcae238 100644 --- a/examples/TeamCreateExample.rb +++ b/examples/TeamCreateExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end team_create_request = Dropbox::Sign::TeamCreateRequest.new team_create_request.name = "New Team Name" begin - response = Dropbox::Sign::TeamApi.new.team_create( - team_create_request, - ) + response = Dropbox::Sign::TeamApi.new.team_create( + team_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_create: #{e}" + puts "Exception when calling TeamApi#team_create: #{e}" end diff --git a/examples/TeamDeleteExample.rb b/examples/TeamDeleteExample.rb index 729b6f7..1e7df40 100644 --- a/examples/TeamDeleteExample.rb +++ b/examples/TeamDeleteExample.rb @@ -2,12 +2,12 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - Dropbox::Sign::TeamApi.new.team_delete + Dropbox::Sign::TeamApi.new.team_delete rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_delete: #{e}" + puts "Exception when calling TeamApi#team_delete: #{e}" end diff --git a/examples/TeamGetExample.rb b/examples/TeamGetExample.rb index 9038228..f47b86e 100644 --- a/examples/TeamGetExample.rb +++ b/examples/TeamGetExample.rb @@ -2,14 +2,14 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TeamApi.new.team_get + response = Dropbox::Sign::TeamApi.new.team_get - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_get: #{e}" + puts "Exception when calling TeamApi#team_get: #{e}" end diff --git a/examples/TeamInfoExample.rb b/examples/TeamInfoExample.rb index dfe5874..a509938 100644 --- a/examples/TeamInfoExample.rb +++ b/examples/TeamInfoExample.rb @@ -2,18 +2,18 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TeamApi.new.team_info( - { - team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", - }, - ) + response = Dropbox::Sign::TeamApi.new.team_info( + { + team_id: "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_info: #{e}" + puts "Exception when calling TeamApi#team_info: #{e}" end diff --git a/examples/TeamInvitesExample.rb b/examples/TeamInvitesExample.rb index 9fee219..5cbb0de 100644 --- a/examples/TeamInvitesExample.rb +++ b/examples/TeamInvitesExample.rb @@ -2,14 +2,14 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TeamApi.new.team_invites + response = Dropbox::Sign::TeamApi.new.team_invites - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_invites: #{e}" + puts "Exception when calling TeamApi#team_invites: #{e}" end diff --git a/examples/TeamMembersExample.rb b/examples/TeamMembersExample.rb index f35f9d1..6a01367 100644 --- a/examples/TeamMembersExample.rb +++ b/examples/TeamMembersExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TeamApi.new.team_members( - "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", # team_id - { - page: 1, - page_size: 20, - }, - ) + response = Dropbox::Sign::TeamApi.new.team_members( + "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", # team_id + { + page: 1, + page_size: 20, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_members: #{e}" + puts "Exception when calling TeamApi#team_members: #{e}" end diff --git a/examples/TeamRemoveMemberAccountIdExample.rb b/examples/TeamRemoveMemberAccountIdExample.rb index 16913dd..586047c 100644 --- a/examples/TeamRemoveMemberAccountIdExample.rb +++ b/examples/TeamRemoveMemberAccountIdExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end team_remove_member_request = Dropbox::Sign::TeamRemoveMemberRequest.new team_remove_member_request.account_id = "f57db65d3f933b5316d398057a36176831451a35" begin - response = Dropbox::Sign::TeamApi.new.team_remove_member( - team_remove_member_request, - ) + response = Dropbox::Sign::TeamApi.new.team_remove_member( + team_remove_member_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_remove_member: #{e}" + puts "Exception when calling TeamApi#team_remove_member: #{e}" end diff --git a/examples/TeamRemoveMemberExample.rb b/examples/TeamRemoveMemberExample.rb index 27c87cb..eb9f8cc 100644 --- a/examples/TeamRemoveMemberExample.rb +++ b/examples/TeamRemoveMemberExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end team_remove_member_request = Dropbox::Sign::TeamRemoveMemberRequest.new @@ -11,11 +11,11 @@ team_remove_member_request.new_owner_email_address = "new_teammate@dropboxsign.com" begin - response = Dropbox::Sign::TeamApi.new.team_remove_member( - team_remove_member_request, - ) + response = Dropbox::Sign::TeamApi.new.team_remove_member( + team_remove_member_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_remove_member: #{e}" + puts "Exception when calling TeamApi#team_remove_member: #{e}" end diff --git a/examples/TeamSubTeamsExample.rb b/examples/TeamSubTeamsExample.rb index 12c87f2..335ba78 100644 --- a/examples/TeamSubTeamsExample.rb +++ b/examples/TeamSubTeamsExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TeamApi.new.team_sub_teams( - "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", # team_id - { - page: 1, - page_size: 20, - }, - ) + response = Dropbox::Sign::TeamApi.new.team_sub_teams( + "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c", # team_id + { + page: 1, + page_size: 20, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_sub_teams: #{e}" + puts "Exception when calling TeamApi#team_sub_teams: #{e}" end diff --git a/examples/TeamUpdateExample.rb b/examples/TeamUpdateExample.rb index 7f925ff..5f0c023 100644 --- a/examples/TeamUpdateExample.rb +++ b/examples/TeamUpdateExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end team_update_request = Dropbox::Sign::TeamUpdateRequest.new team_update_request.name = "New Team Name" begin - response = Dropbox::Sign::TeamApi.new.team_update( - team_update_request, - ) + response = Dropbox::Sign::TeamApi.new.team_update( + team_update_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TeamApi#team_update: #{e}" + puts "Exception when calling TeamApi#team_update: #{e}" end diff --git a/examples/TemplateAddUserExample.rb b/examples/TemplateAddUserExample.rb index a34a81f..b4807c7 100644 --- a/examples/TemplateAddUserExample.rb +++ b/examples/TemplateAddUserExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end template_add_user_request = Dropbox::Sign::TemplateAddUserRequest.new template_add_user_request.email_address = "george@dropboxsign.com" begin - response = Dropbox::Sign::TemplateApi.new.template_add_user( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - template_add_user_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_add_user( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + template_add_user_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_add_user: #{e}" + puts "Exception when calling TemplateApi#template_add_user: #{e}" end diff --git a/examples/TemplateCreateEmbeddedDraftExample.rb b/examples/TemplateCreateEmbeddedDraftExample.rb index 8d40c03..199ad10 100644 --- a/examples/TemplateCreateEmbeddedDraftExample.rb +++ b/examples/TemplateCreateEmbeddedDraftExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -52,11 +52,11 @@ template_create_embedded_draft_request.signer_roles = signer_roles begin - response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( - template_create_embedded_draft_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( + template_create_embedded_draft_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" + puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" end diff --git a/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.rb b/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.rb index 3cf7abb..8bab29c 100644 --- a/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.rb +++ b/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -98,11 +98,11 @@ template_create_embedded_draft_request.signer_roles = signer_roles begin - response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( - template_create_embedded_draft_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( + template_create_embedded_draft_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" + puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" end diff --git a/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.rb b/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.rb index 38263c1..a50b396 100644 --- a/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.rb +++ b/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_field_rules_1_triggers_1 = Dropbox::Sign::SubFormFieldRuleTrigger.new @@ -114,11 +114,11 @@ template_create_embedded_draft_request.signer_roles = signer_roles begin - response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( - template_create_embedded_draft_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( + template_create_embedded_draft_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" + puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" end diff --git a/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.rb b/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.rb index 525ee37..ac81990 100644 --- a/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.rb +++ b/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -86,11 +86,11 @@ template_create_embedded_draft_request.signer_roles = signer_roles begin - response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( - template_create_embedded_draft_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create_embedded_draft( + template_create_embedded_draft_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" + puts "Exception when calling TemplateApi#template_create_embedded_draft: #{e}" end diff --git a/examples/TemplateCreateExample.rb b/examples/TemplateCreateExample.rb index f4d6233..3019fb4 100644 --- a/examples/TemplateCreateExample.rb +++ b/examples/TemplateCreateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -86,11 +86,11 @@ template_create_request.merge_fields = merge_fields begin - response = Dropbox::Sign::TemplateApi.new.template_create( - template_create_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create( + template_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create: #{e}" + puts "Exception when calling TemplateApi#template_create: #{e}" end diff --git a/examples/TemplateCreateFormFieldGroupsExample.rb b/examples/TemplateCreateFormFieldGroupsExample.rb index 83fdc09..1c90c2b 100644 --- a/examples/TemplateCreateFormFieldGroupsExample.rb +++ b/examples/TemplateCreateFormFieldGroupsExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -98,11 +98,11 @@ template_create_request.merge_fields = merge_fields begin - response = Dropbox::Sign::TemplateApi.new.template_create( - template_create_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create( + template_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create: #{e}" + puts "Exception when calling TemplateApi#template_create: #{e}" end diff --git a/examples/TemplateCreateFormFieldRulesExample.rb b/examples/TemplateCreateFormFieldRulesExample.rb index cea893e..1934c3f 100644 --- a/examples/TemplateCreateFormFieldRulesExample.rb +++ b/examples/TemplateCreateFormFieldRulesExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_field_rules_1_triggers_1 = Dropbox::Sign::SubFormFieldRuleTrigger.new @@ -114,11 +114,11 @@ template_create_request.merge_fields = merge_fields begin - response = Dropbox::Sign::TemplateApi.new.template_create( - template_create_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create( + template_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create: #{e}" + puts "Exception when calling TemplateApi#template_create: #{e}" end diff --git a/examples/TemplateCreateFormFieldsPerDocumentExample.rb b/examples/TemplateCreateFormFieldsPerDocumentExample.rb index 39185b3..65b97f8 100644 --- a/examples/TemplateCreateFormFieldsPerDocumentExample.rb +++ b/examples/TemplateCreateFormFieldsPerDocumentExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end field_options = Dropbox::Sign::SubFieldOptions.new @@ -86,11 +86,11 @@ template_create_request.merge_fields = merge_fields begin - response = Dropbox::Sign::TemplateApi.new.template_create( - template_create_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_create( + template_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_create: #{e}" + puts "Exception when calling TemplateApi#template_create: #{e}" end diff --git a/examples/TemplateDeleteExample.rb b/examples/TemplateDeleteExample.rb index 33e07f2..e6afdd3 100644 --- a/examples/TemplateDeleteExample.rb +++ b/examples/TemplateDeleteExample.rb @@ -2,14 +2,14 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - Dropbox::Sign::TemplateApi.new.template_delete( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - ) + Dropbox::Sign::TemplateApi.new.template_delete( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + ) rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_delete: #{e}" + puts "Exception when calling TemplateApi#template_delete: #{e}" end diff --git a/examples/TemplateFilesAsDataUriExample.rb b/examples/TemplateFilesAsDataUriExample.rb index c51e036..5e040d3 100644 --- a/examples/TemplateFilesAsDataUriExample.rb +++ b/examples/TemplateFilesAsDataUriExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TemplateApi.new.template_files_as_data_uri( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - ) + response = Dropbox::Sign::TemplateApi.new.template_files_as_data_uri( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_files_as_data_uri: #{e}" + puts "Exception when calling TemplateApi#template_files_as_data_uri: #{e}" end diff --git a/examples/TemplateFilesAsFileUrlExample.rb b/examples/TemplateFilesAsFileUrlExample.rb index 055fd32..0cce8ed 100644 --- a/examples/TemplateFilesAsFileUrlExample.rb +++ b/examples/TemplateFilesAsFileUrlExample.rb @@ -2,19 +2,19 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TemplateApi.new.template_files_as_file_url( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - { - force_download: 1, - }, - ) + response = Dropbox::Sign::TemplateApi.new.template_files_as_file_url( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + { + force_download: 1, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_files_as_file_url: #{e}" + puts "Exception when calling TemplateApi#template_files_as_file_url: #{e}" end diff --git a/examples/TemplateFilesExample.rb b/examples/TemplateFilesExample.rb index 6aef000..89d2949 100644 --- a/examples/TemplateFilesExample.rb +++ b/examples/TemplateFilesExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TemplateApi.new.template_files( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - ) + response = Dropbox::Sign::TemplateApi.new.template_files( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + ) - FileUtils.cp(response.path, "./file_response") + FileUtils.cp(response.path, "./file_response") rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_files: #{e}" + puts "Exception when calling TemplateApi#template_files: #{e}" end diff --git a/examples/TemplateGetExample.rb b/examples/TemplateGetExample.rb index aacf15e..a1fd880 100644 --- a/examples/TemplateGetExample.rb +++ b/examples/TemplateGetExample.rb @@ -2,16 +2,16 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TemplateApi.new.template_get( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - ) + response = Dropbox::Sign::TemplateApi.new.template_get( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_get: #{e}" + puts "Exception when calling TemplateApi#template_get: #{e}" end diff --git a/examples/TemplateListExample.rb b/examples/TemplateListExample.rb index a69c46f..4432973 100644 --- a/examples/TemplateListExample.rb +++ b/examples/TemplateListExample.rb @@ -2,21 +2,21 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end begin - response = Dropbox::Sign::TemplateApi.new.template_list( - { - account_id: nil, - page: 1, - page_size: 20, - query: nil, - }, - ) + response = Dropbox::Sign::TemplateApi.new.template_list( + { + account_id: nil, + page: 1, + page_size: 20, + query: nil, + }, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_list: #{e}" + puts "Exception when calling TemplateApi#template_list: #{e}" end diff --git a/examples/TemplateRemoveUserExample.rb b/examples/TemplateRemoveUserExample.rb index 00687e1..a876f91 100644 --- a/examples/TemplateRemoveUserExample.rb +++ b/examples/TemplateRemoveUserExample.rb @@ -2,20 +2,20 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end template_remove_user_request = Dropbox::Sign::TemplateRemoveUserRequest.new template_remove_user_request.email_address = "george@dropboxsign.com" begin - response = Dropbox::Sign::TemplateApi.new.template_remove_user( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - template_remove_user_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_remove_user( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + template_remove_user_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_remove_user: #{e}" + puts "Exception when calling TemplateApi#template_remove_user: #{e}" end diff --git a/examples/TemplateUpdateFilesExample.rb b/examples/TemplateUpdateFilesExample.rb index d5088f2..0e95c9d 100644 --- a/examples/TemplateUpdateFilesExample.rb +++ b/examples/TemplateUpdateFilesExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end template_update_files_request = Dropbox::Sign::TemplateUpdateFilesRequest.new @@ -12,12 +12,12 @@ ] begin - response = Dropbox::Sign::TemplateApi.new.template_update_files( - "f57db65d3f933b5316d398057a36176831451a35", # template_id - template_update_files_request, - ) + response = Dropbox::Sign::TemplateApi.new.template_update_files( + "f57db65d3f933b5316d398057a36176831451a35", # template_id + template_update_files_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling TemplateApi#template_update_files: #{e}" + puts "Exception when calling TemplateApi#template_update_files: #{e}" end diff --git a/examples/UnclaimedDraftCreateEmbeddedExample.rb b/examples/UnclaimedDraftCreateEmbeddedExample.rb index a22330d..dc954bc 100644 --- a/examples/UnclaimedDraftCreateEmbeddedExample.rb +++ b/examples/UnclaimedDraftCreateEmbeddedExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end unclaimed_draft_create_embedded_request = Dropbox::Sign::UnclaimedDraftCreateEmbeddedRequest.new @@ -15,11 +15,11 @@ ] begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( - unclaimed_draft_create_embedded_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( + unclaimed_draft_create_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" end diff --git a/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.rb b/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.rb index 46129e4..a335227 100644 --- a/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.rb +++ b/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_field_groups_1 = Dropbox::Sign::SubFormFieldGroup.new @@ -61,11 +61,11 @@ unclaimed_draft_create_embedded_request.form_fields_per_document = form_fields_per_document begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( - unclaimed_draft_create_embedded_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( + unclaimed_draft_create_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" end diff --git a/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.rb b/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.rb index a6b1748..c1aa490 100644 --- a/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.rb +++ b/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_field_rules_1_triggers_1 = Dropbox::Sign::SubFormFieldRuleTrigger.new @@ -77,11 +77,11 @@ unclaimed_draft_create_embedded_request.form_fields_per_document = form_fields_per_document begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( - unclaimed_draft_create_embedded_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( + unclaimed_draft_create_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" end diff --git a/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.rb b/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.rb index 774085a..efffe1f 100644 --- a/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.rb +++ b/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_fields_per_document_1 = Dropbox::Sign::SubFormFieldsPerDocumentText.new @@ -49,11 +49,11 @@ unclaimed_draft_create_embedded_request.form_fields_per_document = form_fields_per_document begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( - unclaimed_draft_create_embedded_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded( + unclaimed_draft_create_embedded_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded: #{e}" end diff --git a/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb b/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb index c6e799c..d5f7ee2 100644 --- a/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb +++ b/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end ccs_1 = Dropbox::Sign::SubCC.new @@ -34,11 +34,11 @@ unclaimed_draft_create_embedded_with_template_request.signers = signers begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded_with_template( - unclaimed_draft_create_embedded_with_template_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create_embedded_with_template( + unclaimed_draft_create_embedded_with_template_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded_with_template: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create_embedded_with_template: #{e}" end diff --git a/examples/UnclaimedDraftCreateExample.rb b/examples/UnclaimedDraftCreateExample.rb index 12f94df..4375558 100644 --- a/examples/UnclaimedDraftCreateExample.rb +++ b/examples/UnclaimedDraftCreateExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end signers_1 = Dropbox::Sign::SubUnclaimedDraftSigner.new @@ -24,11 +24,11 @@ unclaimed_draft_create_request.signers = signers begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( - unclaimed_draft_create_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( + unclaimed_draft_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" end diff --git a/examples/UnclaimedDraftCreateFormFieldGroupsExample.rb b/examples/UnclaimedDraftCreateFormFieldGroupsExample.rb index 881fde8..9f1db82 100644 --- a/examples/UnclaimedDraftCreateFormFieldGroupsExample.rb +++ b/examples/UnclaimedDraftCreateFormFieldGroupsExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_field_groups_1 = Dropbox::Sign::SubFormFieldGroup.new @@ -60,11 +60,11 @@ unclaimed_draft_create_request.form_fields_per_document = form_fields_per_document begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( - unclaimed_draft_create_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( + unclaimed_draft_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" end diff --git a/examples/UnclaimedDraftCreateFormFieldRulesExample.rb b/examples/UnclaimedDraftCreateFormFieldRulesExample.rb index 54822f3..0ac3d95 100644 --- a/examples/UnclaimedDraftCreateFormFieldRulesExample.rb +++ b/examples/UnclaimedDraftCreateFormFieldRulesExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_field_rules_1_triggers_1 = Dropbox::Sign::SubFormFieldRuleTrigger.new @@ -76,11 +76,11 @@ unclaimed_draft_create_request.form_fields_per_document = form_fields_per_document begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( - unclaimed_draft_create_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( + unclaimed_draft_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" end diff --git a/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.rb b/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.rb index e4bc66e..bb0434c 100644 --- a/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.rb +++ b/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end form_fields_per_document_1 = Dropbox::Sign::SubFormFieldsPerDocumentText.new @@ -48,11 +48,11 @@ unclaimed_draft_create_request.form_fields_per_document = form_fields_per_document begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( - unclaimed_draft_create_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_create( + unclaimed_draft_create_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_create: #{e}" end diff --git a/examples/UnclaimedDraftEditAndResendExample.rb b/examples/UnclaimedDraftEditAndResendExample.rb index dccc4d0..34a23ea 100644 --- a/examples/UnclaimedDraftEditAndResendExample.rb +++ b/examples/UnclaimedDraftEditAndResendExample.rb @@ -2,8 +2,8 @@ require "dropbox-sign" Dropbox::Sign.configure do |config| - config.username = "YOUR_API_KEY" - # config.access_token = "YOUR_ACCESS_TOKEN" + config.username = "YOUR_API_KEY" + # config.access_token = "YOUR_ACCESS_TOKEN" end unclaimed_draft_edit_and_resend_request = Dropbox::Sign::UnclaimedDraftEditAndResendRequest.new @@ -11,12 +11,12 @@ unclaimed_draft_edit_and_resend_request.test_mode = false begin - response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_edit_and_resend( - "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id - unclaimed_draft_edit_and_resend_request, - ) + response = Dropbox::Sign::UnclaimedDraftApi.new.unclaimed_draft_edit_and_resend( + "fa5c8a0b0f492d768749333ad6fcc214c111e967", # signature_request_id + unclaimed_draft_edit_and_resend_request, + ) - p response + p response rescue Dropbox::Sign::ApiError => e - puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_edit_and_resend: #{e}" + puts "Exception when calling UnclaimedDraftApi#unclaimed_draft_edit_and_resend: #{e}" end From cc3828fb83368632eba5f59165f12f76414b2404 Mon Sep 17 00:00:00 2001 From: Andrzej Danilowski Date: Wed, 13 May 2026 11:56:45 +0200 Subject: [PATCH 3/3] release-1.11.0 --- Gemfile.lock | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 46c90d6..5bdd7c8 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,17 +11,19 @@ GEM byebug (11.1.3) coderay (1.1.3) diff-lcs (1.5.1) - ethon (0.16.0) + ethon (0.18.0) ffi (>= 1.15.0) - ffi (1.17.2-aarch64-linux-gnu) - ffi (1.17.2-arm64-darwin) - ffi (1.17.2-x86_64-darwin) - ffi (1.17.2-x86_64-linux-gnu) + logger + ffi (1.17.4-aarch64-linux-gnu) + ffi (1.17.4-arm64-darwin) + ffi (1.17.4-x86_64-darwin) + ffi (1.17.4-x86_64-linux-gnu) json (2.7.2) json_spec (1.1.5) multi_json (~> 1.0) rspec (>= 2.0, < 4.0) language_server-protocol (3.17.0.3) + logger (1.7.0) method_source (1.1.0) multi_json (1.15.0) parallel (1.26.3) @@ -64,8 +66,8 @@ GEM rubocop-ast (1.32.3) parser (>= 3.3.1.0) ruby-progressbar (1.13.0) - typhoeus (1.4.1) - ethon (>= 0.9.0) + typhoeus (1.6.0) + ethon (>= 0.18.0) unicode-display_width (2.5.0) PLATFORMS