Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yournotify Nuxt

Nuxt module and runtime helper for the current Yournotify API.

Install

npm install yournotify-nuxt

Usage

import { createYournotifyClient } from 'yournotify-nuxt';

const yournotify = createYournotifyClient({ apiKey: process.env.YOURNOTIFY_API_KEY });

await yournotify.sendSMS('SMS', 'YTAuth', 'Hello', 'draft', ['+2348100000000']);
await yournotify.sendWhatsApp({ name: 'WhatsApp', template_id: 'template_123' });
await yournotify.createReward({ name: 'Referral reward' });
await yournotify.track({ event: 'checkout.completed', external_id: 'user_123' });

Helpers

  • validateAuth() / getProfile()
  • Campaign helpers for email, SMS, WhatsApp, push, and in-app
  • Contact and reward helpers
  • Automation identify(data) and track(data)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages