Skip to content

socialsplash/socialsplash-node

Repository files navigation

SocialSplash

Helper package to generate your images through SocialSplash API.

Installation

npm install socialsplash

Usage

import SocialSplash from 'socialsplash'

const splash = new SocialSplash({
  apiKey: '<your-api-key>',
  apiDomain: '<your-domain>',
  urlDomain: '<your-domain>',
})

const url = splash.url('<template uuid>', {
  title: 'My title',
  description: 'Hello world'
})

const url = splash.signedUrl('<template uuid>', {
  title: 'My title',
  description: 'Hello world'
})

const buffer = splash.image('<template uuid>', {
  title: 'My title',
  description: 'Hello world'
})

const url = splash.signedImage('<template uuid>', {
  title: 'My title',
  description: 'Hello world'
})

Examples

Generating an image with a public template

import { SocialSplash } from 'socialsplash'

const splash = new SocialSplash()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published