From 3a178399a1659503c25e423e920e36112304147a Mon Sep 17 00:00:00 2001 From: Spencer Huyck Date: Thu, 7 Aug 2025 09:33:33 -0700 Subject: [PATCH 1/2] release 1.10.0 --- .travis.yml | 2 +- Gemfile.lock | 2 +- README.md | 8 +-- VERSION | 2 +- docs/OAuthTokenRefreshRequest.md | 4 +- docs/TemplateResponseDocumentFormFieldText.md | 2 + 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 ++--- .../models/api_app_create_request.rb | 10 +-- .../models/api_app_update_request.rb | 10 +-- .../models/o_auth_token_refresh_request.rb | 4 +- ...plate_response_document_form_field_text.rb | 26 ++++++- lib/dropbox-sign/version.rb | 2 +- openapi-config.yaml | 2 +- openapi-sdk.yaml | 18 +++-- spec/api/fax_api_spec.rb | 69 +++++++++++++++++++ spec/api/fax_line_api_spec.rb | 67 ++++++++++++++++++ test_fixtures/FaxGetResponse.json | 3 +- test_fixtures/FaxLineCreateRequest.json | 6 ++ test_fixtures/FaxLineListResponse.json | 26 +++++++ test_fixtures/FaxLineResponse.json | 18 +++++ test_fixtures/FaxListResponse.json | 3 +- test_fixtures/FaxResponse.json | 24 +++++++ test_fixtures/FaxSendResponse.json | 16 ----- 114 files changed, 953 insertions(+), 725 deletions(-) create mode 100644 spec/api/fax_api_spec.rb create mode 100644 spec/api/fax_line_api_spec.rb create mode 100644 test_fixtures/FaxLineCreateRequest.json create mode 100644 test_fixtures/FaxLineListResponse.json create mode 100644 test_fixtures/FaxLineResponse.json create mode 100644 test_fixtures/FaxResponse.json delete mode 100644 test_fixtures/FaxSendResponse.json diff --git a/.travis.yml b/.travis.yml index 5731dc5..748f026 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.9.0.gem + - gem install ./dropbox-sign-1.10.0.gem diff --git a/Gemfile.lock b/Gemfile.lock index f1b43bb..5b520e4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dropbox-sign (1.9.0) + dropbox-sign (1.10.0) typhoeus (~> 1.0, >= 1.0.1) GEM diff --git a/README.md b/README.md index 1a7027f..370dd5a 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.9.0 +- Package version: 1.10.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.9.0.gem +gem install ./dropbox-sign-1.10.0.gem ``` -(for development, run `gem install --dev ./dropbox-sign-1.9.0.gem` to install the development dependencies) +(for development, run `gem install --dev ./dropbox-sign-1.10.0.gem` to install the development dependencies) Finally add this to the Gemfile: - gem 'dropbox-sign', '~> 1.9.0' + gem 'dropbox-sign', '~> 1.10.0' ### Install from Git diff --git a/VERSION b/VERSION index f8e233b..81c871d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.9.0 +1.10.0 diff --git a/docs/OAuthTokenRefreshRequest.md b/docs/OAuthTokenRefreshRequest.md index 4bd1757..0980f70 100644 --- a/docs/OAuthTokenRefreshRequest.md +++ b/docs/OAuthTokenRefreshRequest.md @@ -8,6 +8,6 @@ | ---- | ---- | ----------- | ----- | | `grant_type`*_required_ | ```String``` | When refreshing an existing token use `refresh_token`. | [default to 'refresh_token'] | | `refresh_token`*_required_ | ```String``` | The token provided when you got the expired access token. | | -| `client_id` | ```String``` | The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled. | | -| `client_secret` | ```String``` | The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled. | | +| `client_id` | ```String``` | The client ID for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings. | | +| `client_secret` | ```String``` | The client secret for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings. | | diff --git a/docs/TemplateResponseDocumentFormFieldText.md b/docs/TemplateResponseDocumentFormFieldText.md index 7bfe702..f63026a 100644 --- a/docs/TemplateResponseDocumentFormFieldText.md +++ b/docs/TemplateResponseDocumentFormFieldText.md @@ -12,5 +12,7 @@ This class extends `TemplateResponseDocumentFormFieldBase` | `original_font_size` | ```Integer``` | Original font size used in this form field's text. | | | `font_family` | ```String``` | Font family used in this form field's text. | | | `validation_type` | ```String``` | Each text field may contain a `validation_type` parameter. Check out the list of [validation types](https://faq.hellosign.com/hc/en-us/articles/217115577) to learn more about the possible values. | | +| `validation_custom_regex` | ```String``` | When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. | | +| `validation_custom_regex_format_label` | ```String``` | When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. | | | `group` | ```String``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | | 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..55db08c 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 @@ -45,11 +45,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..2de72cf 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 @@ -34,11 +34,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..2890590 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 @@ -55,11 +55,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..4ee78fd 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 @@ -53,11 +53,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/models/api_app_create_request.rb b/lib/dropbox-sign/models/api_app_create_request.rb index f37d1a2..c9cf7bf 100644 --- a/lib/dropbox-sign/models/api_app_create_request.rb +++ b/lib/dropbox-sign/models/api_app_create_request.rb @@ -165,8 +165,8 @@ def list_invalid_properties invalid_properties.push('invalid value for "domains", domains cannot be nil.') end - if @domains.length > 2 - invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 2.') + if @domains.length > 10 + invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 10.') end if @domains.length < 1 @@ -184,7 +184,7 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @domains.nil? - return false if @domains.length > 2 + return false if @domains.length > 10 return false if @domains.length < 1 return false if @name.nil? true @@ -196,8 +196,8 @@ def domains=(domains) if domains.nil? fail ArgumentError, 'domains cannot be nil' end - if domains.length > 2 - fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 2.' + if domains.length > 10 + fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 10.' end if domains.length < 1 diff --git a/lib/dropbox-sign/models/api_app_update_request.rb b/lib/dropbox-sign/models/api_app_update_request.rb index 45b38ce..4e04ba1 100644 --- a/lib/dropbox-sign/models/api_app_update_request.rb +++ b/lib/dropbox-sign/models/api_app_update_request.rb @@ -161,8 +161,8 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if !@domains.nil? && @domains.length > 2 - invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 2.') + if !@domains.nil? && @domains.length > 10 + invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 10.') end invalid_properties @@ -171,15 +171,15 @@ def list_invalid_properties # 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 !@domains.nil? && @domains.length > 2 + return false if !@domains.nil? && @domains.length > 10 true end # Custom attribute writer method with validation # @param [Object] domains Value to be assigned def domains=(domains) - if domains.length > 2 - fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 2.' + if domains.length > 10 + fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 10.' end @domains = domains diff --git a/lib/dropbox-sign/models/o_auth_token_refresh_request.rb b/lib/dropbox-sign/models/o_auth_token_refresh_request.rb index 6715762..9fafd8e 100644 --- a/lib/dropbox-sign/models/o_auth_token_refresh_request.rb +++ b/lib/dropbox-sign/models/o_auth_token_refresh_request.rb @@ -26,11 +26,11 @@ class OAuthTokenRefreshRequest # @return [String] attr_accessor :refresh_token - # The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the \"Client Credentials Required\" setting is enabled for token refresh; optional if disabled. + # The client ID for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings. # @return [String] attr_accessor :client_id - # The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the \"Client Credentials Required\" setting is enabled for token refresh; optional if disabled. + # The client secret for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings. # @return [String] attr_accessor :client_secret diff --git a/lib/dropbox-sign/models/template_response_document_form_field_text.rb b/lib/dropbox-sign/models/template_response_document_form_field_text.rb index 7028169..11d6178 100644 --- a/lib/dropbox-sign/models/template_response_document_form_field_text.rb +++ b/lib/dropbox-sign/models/template_response_document_form_field_text.rb @@ -42,6 +42,14 @@ class TemplateResponseDocumentFormFieldText < TemplateResponseDocumentFormFieldB # @return [String, nil] attr_accessor :validation_type + # When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field. + # @return [String, nil] + attr_accessor :validation_custom_regex + + # When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern. + # @return [String, nil] + attr_accessor :validation_custom_regex_format_label + # The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. # @return [String, nil] attr_accessor :group @@ -77,6 +85,8 @@ def self.attribute_map :'original_font_size' => :'originalFontSize', :'font_family' => :'fontFamily', :'validation_type' => :'validation_type', + :'validation_custom_regex' => :'validation_custom_regex', + :'validation_custom_regex_format_label' => :'validation_custom_regex_format_label', :'group' => :'group' } end @@ -100,6 +110,8 @@ def self.openapi_types :'original_font_size' => :'Integer', :'font_family' => :'String', :'validation_type' => :'String', + :'validation_custom_regex' => :'String', + :'validation_custom_regex_format_label' => :'String', :'group' => :'String' } end @@ -108,6 +120,8 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'validation_type', + :'validation_custom_regex', + :'validation_custom_regex_format_label', :'group' ]) end @@ -182,6 +196,14 @@ def initialize(attributes = {}) self.validation_type = attributes[:'validation_type'] end + if attributes.key?(:'validation_custom_regex') + self.validation_custom_regex = attributes[:'validation_custom_regex'] + end + + if attributes.key?(:'validation_custom_regex_format_label') + self.validation_custom_regex_format_label = attributes[:'validation_custom_regex_format_label'] + end + if attributes.key?(:'group') self.group = attributes[:'group'] end @@ -238,6 +260,8 @@ def ==(o) original_font_size == o.original_font_size && font_family == o.font_family && validation_type == o.validation_type && + validation_custom_regex == o.validation_custom_regex && + validation_custom_regex_format_label == o.validation_custom_regex_format_label && group == o.group && super(o) end @@ -250,7 +274,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, avg_text_length, is_multiline, original_font_size, font_family, validation_type, group].hash + [type, avg_text_length, is_multiline, original_font_size, font_family, validation_type, validation_custom_regex, validation_custom_regex_format_label, group].hash end # Builds the object from hash diff --git a/lib/dropbox-sign/version.rb b/lib/dropbox-sign/version.rb index bb40a10..e1b2fd3 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.9.0' + VERSION = '1.10.0' end diff --git a/openapi-config.yaml b/openapi-config.yaml index 84f8f50..1176020 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.9.0 + gemVersion: 1.10.0 sortModelPropertiesByRequiredFlag: true legacyDiscriminatorBehavior: true gitUserId: hellosign diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index c832450..c123c2e 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -7797,7 +7797,7 @@ components: type: array items: type: string - maxItems: 2 + maxItems: 10 minItems: 1 name: description: 'The name you want to assign to the ApiApp.' @@ -7823,7 +7823,7 @@ components: type: array items: type: string - maxItems: 2 + maxItems: 10 name: description: 'The name you want to assign to the ApiApp.' type: string @@ -8112,10 +8112,10 @@ components: description: 'The token provided when you got the expired access token.' type: string client_id: - description: 'The client ID for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled.' + description: 'The client ID for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.' type: string client_secret: - description: 'The client secret for your API app. Mandatory from August 1st, 2025. Until then, required if the "Client Credentials Required" setting is enabled for token refresh; optional if disabled.' + description: 'The client secret for your API app. Required for new API apps. To enhance security, we recommend making it required for existing apps in your app settings.' type: string type: object ReportCreateRequest: @@ -8135,6 +8135,7 @@ components: enum: - user_activity - document_status + - sms_activity maxItems: 2 minItems: 1 start_date: @@ -11964,6 +11965,7 @@ components: enum: - user_activity - document_status + - sms_activity type: object x-internal-class: true SignatureRequestResponse: @@ -13130,6 +13132,14 @@ components: - employer_identification_number - custom_regex nullable: true + validation_custom_regex: + description: 'When `validation_type` is set to `custom_regex`, this specifies the custom regular expression pattern that will be used to validate the text field.' + type: string + nullable: true + validation_custom_regex_format_label: + description: 'When `validation_type` is set to `custom_regex`, this specifies the error message displayed to the signer when the text does not match the provided regex pattern.' + type: string + nullable: true group: description: 'The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.' type: string diff --git a/spec/api/fax_api_spec.rb b/spec/api/fax_api_spec.rb new file mode 100644 index 0000000..95e673a --- /dev/null +++ b/spec/api/fax_api_spec.rb @@ -0,0 +1,69 @@ +=begin +#Dropbox Sign API + +#Dropbox Sign v3 API + +The version of the OpenAPI document: 3.0.0 +Contact: apisupport@hellosign.com +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.3.0 + +=end + +require 'spec_helper' +require 'json_spec' +require_relative '../test_utils' + +root_file_path = __dir__ + "/../../test_fixtures" + +describe Dropbox::Sign::FaxApi do + context 'FaxApiTest' do + api = Dropbox::Sign::FaxApi.new + + it 'testFaxSend' do + request_class = 'FaxSendRequest' + request_data = get_fixture_data(request_class)[:default] + + response_class = 'FaxGetResponse' + response_data = get_fixture_data(response_class)[:default] + + set_expected_response(200, JSON.dump(response_data)) + expected = Dropbox::Sign::FaxGetResponse.init(response_data) + obj = Dropbox::Sign::FaxSendRequest.init(request_data) + obj.files = [File.new("#{root_file_path}/pdf-sample.pdf", "r")] + + result = api.fax_send(obj) + + expect(result.class.to_s).to eq("Dropbox::Sign::#{response_class}") + expect(result.to_json).to be_json_eql(JSON.dump(expected)) + end + + it 'testFaxGet' do + signature_request_id = 'c2e9691c85d9d6fa6ae773842e3680b2b8650f1d' + + response_class = 'FaxGetResponse' + response_data = get_fixture_data(response_class)[:default] + + set_expected_response(200, JSON.dump(response_data)) + expected = Dropbox::Sign::FaxGetResponse.init(response_data) + + result = api.fax_get(signature_request_id) + + expect(result.class.to_s).to eq("Dropbox::Sign::#{response_class}") + expect(result.to_json).to be_json_eql(JSON.dump(expected)) + end + + it 'testFaxList' do + response_class = 'FaxListResponse' + response_data = get_fixture_data(response_class)[:default] + + set_expected_response(200, JSON.dump(response_data)) + expected = Dropbox::Sign::FaxListResponse.init(response_data) + + result = api.fax_list() + + expect(result.class.to_s).to eq("Dropbox::Sign::#{response_class}") + expect(result.to_json).to be_json_eql(JSON.dump(expected)) + end + end +end diff --git a/spec/api/fax_line_api_spec.rb b/spec/api/fax_line_api_spec.rb new file mode 100644 index 0000000..a6a6edf --- /dev/null +++ b/spec/api/fax_line_api_spec.rb @@ -0,0 +1,67 @@ +=begin +#Dropbox Sign API + +#Dropbox Sign v3 API + +The version of the OpenAPI document: 3.0.0 +Contact: apisupport@hellosign.com +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 5.3.0 + +=end + +require 'spec_helper' +require 'json_spec' +require_relative '../test_utils' + +root_file_path = __dir__ + "/../../test_fixtures" + +describe Dropbox::Sign::FaxApi do + context 'FaxLineApiTest' do + api = Dropbox::Sign::FaxLineApi.new + + it 'testFaxLineCreate' do + request_class = 'FaxLineCreateRequest' + request_data = get_fixture_data(request_class)[:default] + + response_class = 'FaxLineResponse' + response_data = get_fixture_data(response_class)[:default] + + set_expected_response(200, JSON.dump(response_data)) + expected = Dropbox::Sign::FaxLineResponse.init(response_data) + + result = api.fax_line_create(request_data) + + expect(result.class.to_s).to eq("Dropbox::Sign::#{response_class}") + expect(result.to_json).to be_json_eql(JSON.dump(expected)) + end + + it 'testFaxLineGet' do + fax_line_number = '14155557897' + + response_class = 'FaxLineResponse' + response_data = get_fixture_data(response_class)[:default] + + set_expected_response(200, JSON.dump(response_data)) + expected = Dropbox::Sign::FaxLineResponse.init(response_data) + + result = api.fax_line_get(fax_line_number) + + expect(result.class.to_s).to eq("Dropbox::Sign::#{response_class}") + expect(result.to_json).to be_json_eql(JSON.dump(expected)) + end + + it 'testFaxLineList' do + response_class = 'FaxLineListResponse' + response_data = get_fixture_data(response_class)[:default] + + set_expected_response(200, JSON.dump(response_data)) + expected = Dropbox::Sign::FaxLineListResponse.init(response_data) + + result = api.fax_line_list() + + expect(result.class.to_s).to eq("Dropbox::Sign::#{response_class}") + expect(result.to_json).to be_json_eql(JSON.dump(expected)) + end + end +end diff --git a/test_fixtures/FaxGetResponse.json b/test_fixtures/FaxGetResponse.json index 2eda936..0d668e0 100644 --- a/test_fixtures/FaxGetResponse.json +++ b/test_fixtures/FaxGetResponse.json @@ -20,12 +20,11 @@ "transmissions": [ { "recipient": "recipient@dropboxsign.com", - "sender": "me@dropboxsign.com", "sent_at": 1723231831, "status_code": "success" } ], - "files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2", + "files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2" } } } diff --git a/test_fixtures/FaxLineCreateRequest.json b/test_fixtures/FaxLineCreateRequest.json new file mode 100644 index 0000000..91d11c8 --- /dev/null +++ b/test_fixtures/FaxLineCreateRequest.json @@ -0,0 +1,6 @@ +{ + "default": { + "country": "US", + "area_code": 949 + } +} diff --git a/test_fixtures/FaxLineListResponse.json b/test_fixtures/FaxLineListResponse.json new file mode 100644 index 0000000..c241c1b --- /dev/null +++ b/test_fixtures/FaxLineListResponse.json @@ -0,0 +1,26 @@ +{ + "default": { + "list_info": { + "num_pages": 1, + "num_results": 1, + "page": 1, + "page_size": 1 + }, + "fax_lines": [ + { + "number": "14155557897", + "created_at": 1750196223, + "updated_at": 1750196223, + "accounts": [ + { + "account_id": "a3367a4130f3624687ea7de6f09df951a44923dd", + "email_address": "me@dropboxsign.com", + "is_locked": false, + "is_paid_hs": false, + "is_paid_hf": true + } + ] + } + ] + } +} diff --git a/test_fixtures/FaxLineResponse.json b/test_fixtures/FaxLineResponse.json new file mode 100644 index 0000000..3855a8a --- /dev/null +++ b/test_fixtures/FaxLineResponse.json @@ -0,0 +1,18 @@ +{ + "default": { + "fax_line": { + "number": "14155557897", + "created_at": 1750196223, + "updated_at": 1750196223, + "accounts": [ + { + "account_id": "a3367a4130f3624687ea7de6f09df951a44923dd", + "email_address": "me@dropboxsign.com", + "is_locked": false, + "is_paid_hs": false, + "is_paid_hf": true + } + ] + } + } +} diff --git a/test_fixtures/FaxListResponse.json b/test_fixtures/FaxListResponse.json index a9ebf63..d0ce7fe 100644 --- a/test_fixtures/FaxListResponse.json +++ b/test_fixtures/FaxListResponse.json @@ -27,12 +27,11 @@ "transmissions": [ { "recipient": "recipient@dropboxsign.com", - "sender": "me@dropboxsign.com", "sent_at": 1723231831, "status_code": "success" } ], - "files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2", + "files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2" } ] } diff --git a/test_fixtures/FaxResponse.json b/test_fixtures/FaxResponse.json new file mode 100644 index 0000000..32a44d5 --- /dev/null +++ b/test_fixtures/FaxResponse.json @@ -0,0 +1,24 @@ +{ + "default": { + "fax": { + "fax_id": "c2e9691c85d9d6fa6ae773842e3680b2b8650f1d", + "title": "example title", + "original_title": "example original title", + "metadata": {}, + "created_at": 1750105080, + "sender": "14155557068", + "files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2", + "final_copy_uri": "/v3/transmission/final_copy/c2e9691c85d9d6fa6ae773842e3680b2b8650f1d", + "transmissions": [ + { + "recipient": "18005550199", + "status_code": "transmitting" + } + ], + "transmission_id": "c2e9691c85d9d6fa6ae773842e3680b2b8650f1d", + "from": "14155557068", + "test_mode": false + } + } +} + diff --git a/test_fixtures/FaxSendResponse.json b/test_fixtures/FaxSendResponse.json deleted file mode 100644 index b651c78..0000000 --- a/test_fixtures/FaxSendResponse.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "default": { - "fax": { - "fax_id": "c2e9691c85d9d6fa6ae773842e3680b2b8650f1d", - "title": "example title", - "original_title": "example original title", - "subject": "example subject", - "message": "example message", - "metadata": [ ], - "created_at": 1726774555, - "sender": "me@dropboxsign.com", - "transmissions": [], - "files_url": "https://api.hellosign.com/v3/fax/files/2b388914e3ae3b738bd4e2ee2850c677e6dc53d2" - } - } -} From f7ac4845c73cb577a215c85db7e4a28dd61e11e8 Mon Sep 17 00:00:00 2001 From: Spencer Huyck Date: Thu, 7 Aug 2025 10:22:21 -0700 Subject: [PATCH 2/2] updating files --- 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 55db08c..9be4112 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 @@ -45,11 +45,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 2de72cf..dbcd4af 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 @@ -34,11 +34,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 2890590..270ebe0 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 @@ -55,11 +55,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 4ee78fd..24fd0de 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 @@ -53,11 +53,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