Important
Until the package is at major version one (1.x.x) the API should be considered unstable.
# npm
npm install metafold
# yarn
yarn add metafold
The SDK is compatible with both EMCAScript Modules (ESM) and CommonJS (legacy).
import MetafoldClient from "metafold"
const MetafoldClient = require("metafold")
const accessToken = "..."
const projectID = "123"
const metafold = new MetafoldClient(accessToken, projectID)
assets = await metafold.assets.list()
console.log(assets[0].name)
asset = await metafold.assets.get("123")
console.log(asset.name)
Read the documentation for more info or play around with one of the examples.