All URIs are relative to https://api.hellosign.com/v3
Method | HTTP request | Description |
---|---|---|
account_create |
POST /account/create |
Create Account |
account_get |
GET /account |
Get Account |
account_update |
PUT /account |
Update Account |
account_verify |
POST /account/verify |
Verify Account |
<AccountCreateResponse> account_create(account_create_request)
Create Account
Creates a new Dropbox Sign Account that is associated with the specified email_address
.
require "dropbox-sign"
Dropbox::Sign.configure do |config|
# Configure HTTP basic authorization: api_key
config.username = "YOUR_API_KEY"
# or, configure Bearer (JWT) authorization: oauth2
# config.access_token = "YOUR_ACCESS_TOKEN"
end
account_api = Dropbox::Sign::AccountApi.new
data = Dropbox::Sign::AccountCreateRequest.new
data.email_address = "[email protected]"
begin
result = account_api.account_create(data)
p result
rescue Dropbox::Sign::ApiError => e
puts "Exception when calling Dropbox Sign API: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(<AccountCreateResponse>, Integer, Hash)> account_create_with_http_info(account_create_request)
begin
# Create Account
data, status_code, headers = api_instance.account_create_with_http_info(account_create_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <AccountCreateResponse>
rescue Dropbox::Sign::ApiError => e
puts "Error when calling AccountApi->account_create_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_create_request |
AccountCreateRequest |
- Content-Type: application/json
- Accept: application/json
<AccountGetResponse> account_get(opts)
Get Account
Returns the properties and settings of your Account.
require "dropbox-sign"
Dropbox::Sign.configure do |config|
# Configure HTTP basic authorization: api_key
config.username = "YOUR_API_KEY"
# or, configure Bearer (JWT) authorization: oauth2
# config.access_token = "YOUR_ACCESS_TOKEN"
end
account_api = Dropbox::Sign::AccountApi.new
begin
result = account_api.account_get({ email_address: "[email protected]" })
p result
rescue Dropbox::Sign::ApiError => e
puts "Exception when calling Dropbox Sign API: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(<AccountGetResponse>, Integer, Hash)> account_get_with_http_info(opts)
begin
# Get Account
data, status_code, headers = api_instance.account_get_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <AccountGetResponse>
rescue Dropbox::Sign::ApiError => e
puts "Error when calling AccountApi->account_get_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_id |
String | account_id or email_address is required. If both are provided, the account id prevails. The ID of the Account. |
[optional] |
email_address |
String | account_id or email_address is required, If both are provided, the account id prevails. The email address of the Account. |
[optional] |
- Content-Type: Not defined
- Accept: application/json
<AccountGetResponse> account_update(account_update_request)
Update Account
Updates the properties and settings of your Account. Currently only allows for updates to the Callback URL and locale.
require "dropbox-sign"
Dropbox::Sign.configure do |config|
# Configure HTTP basic authorization: api_key
config.username = "YOUR_API_KEY"
# or, configure Bearer (JWT) authorization: oauth2
# config.access_token = "YOUR_ACCESS_TOKEN"
end
account_api = Dropbox::Sign::AccountApi.new
data = Dropbox::Sign::AccountUpdateRequest.new
data.callback_url = "https://www.example.com/callback"
begin
result = account_api.account_update(data)
p result
rescue Dropbox::Sign::ApiError => e
puts "Exception when calling Dropbox Sign API: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(<AccountGetResponse>, Integer, Hash)> account_update_with_http_info(account_update_request)
begin
# Update Account
data, status_code, headers = api_instance.account_update_with_http_info(account_update_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <AccountGetResponse>
rescue Dropbox::Sign::ApiError => e
puts "Error when calling AccountApi->account_update_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_update_request |
AccountUpdateRequest |
- Content-Type: application/json
- Accept: application/json
<AccountVerifyResponse> account_verify(account_verify_request)
Verify Account
Verifies whether an Dropbox Sign Account exists for the given email address.
require "dropbox-sign"
Dropbox::Sign.configure do |config|
# Configure HTTP basic authorization: api_key
config.username = "YOUR_API_KEY"
# or, configure Bearer (JWT) authorization: oauth2
# config.access_token = "YOUR_ACCESS_TOKEN"
end
account_api = Dropbox::Sign::AccountApi.new
data = Dropbox::Sign::AccountVerifyRequest.new
data.email_address = "[email protected]"
begin
result = account_api.account_verify(data)
p result
rescue Dropbox::Sign::ApiError => e
puts "Exception when calling Dropbox Sign API: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(<AccountVerifyResponse>, Integer, Hash)> account_verify_with_http_info(account_verify_request)
begin
# Verify Account
data, status_code, headers = api_instance.account_verify_with_http_info(account_verify_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <AccountVerifyResponse>
rescue Dropbox::Sign::ApiError => e
puts "Error when calling AccountApi->account_verify_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
account_verify_request |
AccountVerifyRequest |
- Content-Type: application/json
- Accept: application/json