All URIs are relative to https://signrequest.com/api/v1
Method | HTTP request | Description |
---|---|---|
documents_create | POST /documents/ | Create a Document |
documents_delete | DELETE /documents/{uuid}/ | Delete a Document |
documents_list | GET /documents/ | Retrieve a list of Documents |
documents_read | GET /documents/{uuid}/ | Retrieve a Document |
Document documents_create(data)
Create a Document
# load the gem
require 'signrequest_client'
# setup authorization
SignRequestClient.configure do |config|
# Configure API key authorization: Token
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = SignRequestClient::DocumentsApi.new
data = SignRequestClient::Document.new # Document |
begin
#Create a Document
result = api_instance.documents_create(data)
p result
rescue SignRequestClient::ApiError => e
puts "Exception when calling DocumentsApi->documents_create: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
data | Document |
- Content-Type: application/json
- Accept: application/json
documents_delete(uuid)
Delete a Document
# load the gem
require 'signrequest_client'
# setup authorization
SignRequestClient.configure do |config|
# Configure API key authorization: Token
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = SignRequestClient::DocumentsApi.new
uuid = 'uuid_example' # String |
begin
#Delete a Document
api_instance.documents_delete(uuid)
rescue SignRequestClient::ApiError => e
puts "Exception when calling DocumentsApi->documents_delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
uuid | String |
nil (empty response body)
- Content-Type: application/json
- Accept: application/json
InlineResponse2003 documents_list(opts)
Retrieve a list of Documents
# load the gem
require 'signrequest_client'
# setup authorization
SignRequestClient.configure do |config|
# Configure API key authorization: Token
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = SignRequestClient::DocumentsApi.new
opts = {
external_id: 'external_id_example', # String |
signrequest__who: 'signrequest__who_example', # String |
signrequest__from_email: 'signrequest__from_email_example', # String |
status: 'status_example', # String |
user__email: 'user__email_example', # String |
user__first_name: 'user__first_name_example', # String |
user__last_name: 'user__last_name_example', # String |
created: 'created_example', # String |
modified: 'modified_example', # String |
page: 56, # Integer | A page number within the paginated result set.
limit: 56 # Integer | Number of results to return per page.
}
begin
#Retrieve a list of Documents
result = api_instance.documents_list(opts)
p result
rescue SignRequestClient::ApiError => e
puts "Exception when calling DocumentsApi->documents_list: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
external_id | String | [optional] | |
signrequest__who | String | [optional] | |
signrequest__from_email | String | [optional] | |
status | String | [optional] | |
user__email | String | [optional] | |
user__first_name | String | [optional] | |
user__last_name | String | [optional] | |
created | String | [optional] | |
modified | String | [optional] | |
page | Integer | A page number within the paginated result set. | [optional] |
limit | Integer | Number of results to return per page. | [optional] |
- Content-Type: application/json
- Accept: application/json
Document documents_read(uuid)
Retrieve a Document
# load the gem
require 'signrequest_client'
# setup authorization
SignRequestClient.configure do |config|
# Configure API key authorization: Token
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = SignRequestClient::DocumentsApi.new
uuid = 'uuid_example' # String |
begin
#Retrieve a Document
result = api_instance.documents_read(uuid)
p result
rescue SignRequestClient::ApiError => e
puts "Exception when calling DocumentsApi->documents_read: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
uuid | String |
- Content-Type: application/json
- Accept: application/json