Nuxt module and runtime helper for the current Yournotify API.
npm install yournotify-nuxtimport { 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' });validateAuth()/getProfile()- Campaign helpers for email, SMS, WhatsApp, push, and in-app
- Contact and reward helpers
- Automation
identify(data)andtrack(data)