0.1.0 • Published 2 years ago

brandbird-integration v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Installation

With NPM

npm i @brandbird/integration

With yarn

yarn add @brandbird/integration

Usage

Be aware that we restrict the integration of Brandbird by platforms at the moment. Are you interested? Hit us up at info@brandbird.io

import { openBrandBird } from '@brandbird/integration';

async function() {
  try {
    const blob = await openBrandBird(
      { 
        provider: 'Google', // The name of your platform
        src: 'Input image in BASE64 format or a public URL', // Optional
      }
    );

    // do something with the blob, e.g. create an object url to show it in an img tag:
    // URL.createObjectURL(blob);
  } catch (error) {
    // error handling
  }
}