REST APIs for managing reports (lint reports, change reports, etc)
- GetChangesReportSignedUrl - Get the signed access url for the change reports for a particular document.
- GetLintingReportSignedUrl - Get the signed access url for the linting reports for a particular document.
- UploadReport - Upload a report.
Get the signed access url for the change reports for a particular document.
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetChangesReportSignedUrlRequest req = new GetChangesReportSignedUrlRequest() {
DocumentChecksum = "<value>",
};
var res = await sdk.Reports.GetChangesReportSignedUrlAsync(req);
// handle response| Parameter | Type | Required | Description |
|---|---|---|---|
request |
GetChangesReportSignedUrlRequest | ✔️ | The request object to use for the request. |
GetChangesReportSignedUrlResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| SpeakeasySDK.Models.Errors.SDKException | 4XX, 5XX | */* |
Get the signed access url for the linting reports for a particular document.
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetLintingReportSignedUrlRequest req = new GetLintingReportSignedUrlRequest() {
DocumentChecksum = "<value>",
};
var res = await sdk.Reports.GetLintingReportSignedUrlAsync(req);
// handle response| Parameter | Type | Required | Description |
|---|---|---|---|
request |
GetLintingReportSignedUrlRequest | ✔️ | The request object to use for the request. |
GetLintingReportSignedUrlResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| SpeakeasySDK.Models.Errors.SDKException | 4XX, 5XX | */* |
Upload a report.
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
UploadReportRequestBody req = new UploadReportRequestBody() {
Data = new Report() {},
File = new SpeakeasySDK.Models.Operations.File() {
Content = System.IO.File.ReadAllBytes("example.file"),
FileName = "example.file",
},
};
var res = await sdk.Reports.UploadReportAsync(req);
// handle response| Parameter | Type | Required | Description |
|---|---|---|---|
request |
UploadReportRequestBody | ✔️ | The request object to use for the request. |
| Error Type | Status Code | Content Type |
|---|---|---|
| SpeakeasySDK.Models.Errors.SDKException | 4XX, 5XX | */* |