@jamesgopsill/thingiverse-client
v0.0.1
Published
A Typescript client for the Thingiverse client.
Downloads
11
Readme
Thingiverse API Typescript Client
The client has been developed as part of a research programme investigating agent-based manufacturing systems. It is isomorphic capable of running on server (Node.js) and client-side (Browser) applications.
Using thingiverse-client
To install the package, use your preferred package manager. E.g.,
pnpm install @jamesgopsill/thingiverse-client
You can then use in your code:
Typescript / Javascript (ESM)
import { ThingiverseClient } from "@jamesgopsill/thingiverse-client"
// Create a new client. (Only setup for app tokens at the moment)
const client = new ThingiverseClient("APP_TOKEN")
const thing = "763622"
const r = await c.thing(thing)
if (r.ok && r.status == 200) {
console.log(r.content)
}
Javascript (CJS)
const { ThingiverseClient } = require("@jamesgopsill/thingiverse-client")
// Create a new client. (Only setup for app tokens at the moment)
const client = new ThingiverseClient("APP_TOKEN")
const thing = "763622"
const r = await c.thing(thing)
if (r.ok && r.status == 200) {
console.log(r.content)
}
Client Docs
The docs have been produced using TypeDoc and can be accessed here. More details on the API can be found at Thingiverse Developers.
Contributing
We would love to have additional contributors to the project to help us maintain and add functionality to the project.
Support the Project
The project has been supported by the EPSRC-funded Brokering Additive Manufacturing project (EP/V05113X/1). More details on the project can be found at the Design Manufacturing Futures Lab website.
If you end up using the client a lot, please consider sponsoring the project to support the continued development and maintanence of the client.