REST APIs for managing reports
- upload - Upload a report.
- get_signed_url - Get the signed access url for the linting reports for a particular document.
- get_changes_signed_url - Get the signed access url for the change reports for a particular document.
Upload a report.
require 'speakeasy_client_sdk_ruby'
s = ::OpenApiSDK::SpeakeasyClientSDK.new
s.config_security(
::OpenApiSDK::Shared::Security.new(
api_key: "<YOUR_API_KEY_HERE>",
)
)
req = ::OpenApiSDK::Operations::UploadReportRequestBody.new(
data: ::OpenApiSDK::Shared::Report.new(),
file: ::OpenApiSDK::Operations::UploadReportFile.new(
file_name: "example.file",
content: "0x8cc9e675ad".encode(),
),
)
res = s.reports.upload(req)
if ! res.uploaded_report.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
request |
::OpenApiSDK::Operations::UploadReportRequestBody | ✔️ | The request object to use for the request. |
T.nilable(::OpenApiSDK::Operations::UploadReportResponse)
Get the signed access url for the linting reports for a particular document.
require 'speakeasy_client_sdk_ruby'
s = ::OpenApiSDK::SpeakeasyClientSDK.new
s.config_security(
::OpenApiSDK::Shared::Security.new(
api_key: "<YOUR_API_KEY_HERE>",
)
)
res = s.reports.get_signed_url(document_checksum="<value>")
if ! res.signed_access.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
document_checksum |
::String | ✔️ | The checksum of the document to retrieve the signed access url for. |
T.nilable(::OpenApiSDK::Operations::GetLintingReportSignedUrlResponse)
Get the signed access url for the change reports for a particular document.
require 'speakeasy_client_sdk_ruby'
s = ::OpenApiSDK::SpeakeasyClientSDK.new
s.config_security(
::OpenApiSDK::Shared::Security.new(
api_key: "<YOUR_API_KEY_HERE>",
)
)
res = s.reports.get_changes_signed_url(document_checksum="<value>")
if ! res.signed_access.nil?
# handle response
end
Parameter | Type | Required | Description |
---|---|---|---|
document_checksum |
::String | ✔️ | The checksum of the document to retrieve the signed access url for. |
T.nilable(::OpenApiSDK::Operations::GetChangesReportSignedUrlResponse)