Options
All
  • Public
  • Public/Protected
  • All
Menu

frameio-api-typescript

frameio-api-typescript

codecov npm version

This is the unofficial Node.js library to access the Frame.io API.

Notice

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 😃

Installation

npm i frameio-api-typescript

Usage

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));

Documentation

More methods, request and response types can be found in the documentation.

Official Frame.io API Docs

Contributing

PRs are welcome! Please feel encouraged to star this repo too!

Generated using TypeDoc