This is the unofficial Node.js library to access the Frame.io API.
This library should be considered as Work In Progress. There is no official frameio-api
library, so I "created" this one that is more convenient to use thanks to typings and promises. "Created", because this is shamelessly ripped from @piotrekwitkowski's quip-api-typescript
😃
npm i frameio-api-typescript
For now, the library supports only access token auth (no OAuth).
import { FrameIOClient } from "frameio-api-typescript";
const ACCESS_TOKEN = "your-access-token";
const client = new FrameIOClient(ACCESS_TOKEN);
// use like this
client.assets
.getAsset({ asset_id: "" })
.then((response) => doSomething(response));
// or this
client.accounts
.getAccount({ account_id: "eefb57e0-79f2-4bc7-9b70-99fbc175175c" })
.then((response) => doSomething(response));
More methods, request and response types can be found in the documentation.
PRs are welcome! Please feel encouraged to star this repo too!
Generated using TypeDoc