Reference Guide
TypeScript SDK Reference for Data Management
Resource Information
Package Name: | @aps_sdk/data-management |
Version: | 1.0.0 |
Installing this Library
npm i @aps_sdk/data-management
Learning Resources
Source Code
The source code for this library is available at https://www.npmjs.com/package/@aps_sdk/data-management.
Tutorials
The ACC Administrator tutorial on the https://tutorials.autodesk.io/ site illustrates how to use this library to browse through hubs and projects.
Code Sample
import { Hubs } from "@aps_sdk/data-management";
// Access token for authentication
const ACCESS_TOKEN = "...";
// Initialize the Data Management Client
const dataManagementClient = new DataManagementClient();
// Returns a collection of accessible hubs.
const hubs = await dataManagementClient.getHubs({accessToken: ACCESS_TOKEN});
// Log the details of the retrieved hubs to the console
console.log(hubs);
Show More
See https://github.com/autodesk-platform-services/aps-sdk-node/blob/main/samples/datamanagement.ts for a complete code sample.