UNPKG

forge-server-utils

Version:

Tools for accessing Autodesk Forge APIs from Node.js apps and from browser.

10 lines (8 loc) 421 B
# Basic usage of Model Derivative APIs ```js const { ModelDerivativeClient } = require('forge-server-utils'); const { FORGE_CLIENT_ID, FORGE_CLIENT_SECRET } = process.env; const derivatives = new ModelDerivativeClient({ client_id: FORGE_CLIENT_ID, client_secret: FORGE_CLIENT_SECRET }); const job = await derivatives.submitJob('<your-document-urn>', [{ type: 'svf', views: ['2d', '3d'] }]); console.log('Job', job); ```