Adsk.Platform.ACC.DataConnector
0.2.1
dotnet add package Adsk.Platform.ACC.DataConnector --version 0.2.1
NuGet\Install-Package Adsk.Platform.ACC.DataConnector -Version 0.2.1
<PackageReference Include="Adsk.Platform.ACC.DataConnector" Version="0.2.1" />
<PackageVersion Include="Adsk.Platform.ACC.DataConnector" Version="0.2.1" />
<PackageReference Include="Adsk.Platform.ACC.DataConnector" />
paket add Adsk.Platform.ACC.DataConnector --version 0.2.1
#r "nuget: Adsk.Platform.ACC.DataConnector, 0.2.1"
#:package Adsk.Platform.ACC.DataConnector@0.2.1
#addin nuget:?package=Adsk.Platform.ACC.DataConnector&version=0.2.1
#tool nuget:?package=Adsk.Platform.ACC.DataConnector&version=0.2.1
Autodesk Construction Cloud - Data Connector
The package Adsk.Platform.ACC.DataConnector provides a set of APIs to interact with the Autodesk Construction Cloud - Data Connector Service.
Documentation
- API Reference: Strongly typed API
- Managers: Organized manager classes for common operations
- RequestsManager: Manage data extraction requests
- JobsManager: Manage extraction jobs
- DataManager: Download extracted data files
- Helpers: Set of helper methods
Installation
dotnet add package Adsk.Platform.ACC.DataConnector
Usage
See the QuickStart Guide for a general understanding.
The root object is DataConnectorClient. This object provides access to:
- Manager classes for organized, high-level operations (recommended)
- Direct API access for low-level control
- Helper methods for common workflows (legacy)
Recommended: Use Manager Classes
Manager classes provide an organized, intuitive interface for working with Data Connector APIs:
using Autodesk.ACC.DataConnector;
async Task<string> GetAccessToken()
{
// Return access token with your logic
}
var client = new DataConnectorClient(GetAccessToken);
var accountId = Guid.Parse("your-account-id");
// Create a data request using RequestsManager
var requestData = new RequestsPostRequestBody
{
Description = "Monthly issues and RFIs extract",
ScheduleInterval = "ONE_TIME",
EffectiveFrom = DateTime.UtcNow,
ServiceGroups = new[] { "issues", "rfis" },
SendEmail = true
};
var request = await client.Requests.CreateRequestAsync(accountId, requestData);
// List all jobs using JobsManager
var jobs = await client.Jobs.ListJobsAsync(accountId, config =>
{
config.QueryParameters.Sort = "desc";
config.QueryParameters.Limit = 20;
});
// Get job data listing
var jobId = Guid.Parse("job-id");
var dataListing = await client.Jobs.GetJobDataListingAsync(accountId, jobId);
// Download a data file using DataManager
var fileName = Guid.Parse("file-id");
var fileUrl = await client.Data.GetJobDataFileAsync(accountId, jobId, fileName);
Alternative: Direct API Access
For advanced scenarios, you can use the low-level API directly:
using Autodesk.ACC.DataConnector;
var client = new DataConnectorClient(GetAccessToken);
var accountId = Guid.Parse("your-account-id");
// Direct API access for fine-grained control
var jobs = await client.Api.DataConnector.V1.Accounts[accountId].Jobs
.GetAsJobsGetResponseAsync(config =>
{
config.QueryParameters.Sort = "asc";
});
Manager Classes Overview
RequestsManager
Manages data connector requests (extraction definitions):
CreateRequestAsync()- Create a new data extraction requestListRequestsAsync()- List all requests with filtering and paginationGetRequestAsync()- Get details of a specific requestUpdateRequestAsync()- Update request configuration (e.g., schedule, active status)DeleteRequestAsync()- Delete a requestGetRequestJobsAsync()- Get all jobs spawned by a specific request
JobsManager
Manages data connector jobs (actual extraction executions):
ListJobsAsync()- List all jobs with filtering and paginationGetJobAsync()- Get details of a specific jobCancelJobAsync()- Cancel a running jobGetJobDataListingAsync()- List all data files in a completed job
DataManager
Manages data extraction file operations:
GetJobDataFileAsync()- Get a signed URL to download a specific data extract file
Key Features
✅ Type-Safe - Uses Guid types for IDs to prevent errors
✅ Async/Await - Full async support with cancellation tokens
✅ IntelliSense - Comprehensive XML documentation
✅ Organized - APIs grouped by functionality for easy discovery
✅ Flexible - Use managers for simplicity or direct API for control
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Adsk.Platform.HttpClient (>= 0.2.1)
- Microsoft.Kiota.Bundle (>= 1.13.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.