0.2.1 • Published 2 months ago
metafold v0.2.1
Metafold SDK for Node.js
Installation
# npm
npm install metafold
# yarn
yarn add metafold
Usage
The SDK is compatible with both EMCAScript Modules (ESM) and CommonJS (legacy).
ECMAScript Modules
import MetafoldClient from "metafold"
CommonJS
const MetafoldClient = require("metafold")
Example
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.