3.0.5 • Published 6 months ago

@threekit/node-sdk v3.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

@threekit/node-sdk

This is a helper package for the Threekit REST API. It allows you to use our REST API directly from Node.JS with a high level of abstraction.

Supported APIs

This version of the API supports these main APIs:

  • Access Tokens
  • Asset Jobs
  • Assets
  • Configurations
  • Customers
  • Data Tables
  • Fast Compositor
  • Files
  • Images
  • Orders
  • Webhooks

Example Usage

import { threekitNodeClient } from '@threekit/node-sdk';

const tk = threekitNodeClient({
  authType: 'private',
  privateToken: '29443f10-c3a5-4a91-b33e-d1bdfcd8f2ec',
  apiHost: 'https://preview.threekit.com'
});

const fileStream = fs.createReadStream(fileName);
const uploadedFile = await tk.files.upload(
  fileStream,
  'myImage.png',
  'image/png'
);

const download = await tk.files.download(uploadedFile.id);

const contentFileName = path.join(tempDirectory, uploadedFile.filename);
const writeStream = fs.createWriteStream(contentFileName);
readableStream.pipe(download.data as NodeJS.ReadableStream);
3.0.4

6 months ago

3.0.5

6 months ago

2.0.15

6 months ago

2.0.13

6 months ago

2.0.14

6 months ago

2.0.11

6 months ago

2.0.12

6 months ago

1.0.10

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago