All URIs are relative to https://api.hellosign.com/v3
Method | HTTP request | Description |
---|---|---|
report_create |
POST /report/create |
Create Report |
<ReportCreateResponse> report_create(report_create_request)
Create Report
Request the creation of one or more report(s). When the report(s) have been generated, you will receive an email (one per requested report type) containing a link to download the report as a CSV file. The requested date range may be up to 12 months in duration, and start_date
must not be more than 10 years in the past.
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
report_api = Dropbox::Sign::ReportApi.new
data = Dropbox::Sign::ReportCreateRequest.new
data.start_date = "09/01/2020"
data.end_date = "09/01/2020"
data.report_type = %w[user_activity document_status]
begin
result = report_api.report_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(<ReportCreateResponse>, Integer, Hash)> report_create_with_http_info(report_create_request)
begin
# Create Report
data, status_code, headers = api_instance.report_create_with_http_info(report_create_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <ReportCreateResponse>
rescue Dropbox::Sign::ApiError => e
puts "Error when calling ReportApi->report_create_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
report_create_request |
ReportCreateRequest |
- Content-Type: application/json
- Accept: application/json