Skip to main content

The Basics

Installing#

yarn add @modfy/core
# Using Npm
npm install @modfy/core

Using directly in the browser

<script src="https://unpkg.com/@modfy/core@latest/lib/modfy.min.js"></script>

Authentication#

If you want to make any calls using our api, we need to know that you are who you say you are. We promise not to tell anyone. ๐Ÿ˜‰๐Ÿคซ

You can get your auth tokens at https://api.modfy.video/login

import Modfy from '@modfy/core'
const modfy = new Modfy({
token: '',
secretToken: 'sk_test_',
clientSide: false
// Optional value if you plan to use client side rendering. (Defaults to false)
})