Video Sections

Video Section / Modern
Video Section / Normal
VIDEO SECTIOn

Launch your own branded apps

Consistent quality and experience across all platforms and devices.

Simple drag & drop editor

Engaging & personalized

Video Section / Dark
VIDEO SECTIOn

Launch your own branded apps

Consistent quality and experience across all platforms and devices.

Simple drag & drop editor

Engaging & personalized


import { ChannelTypeEnum, Notifire, SendgridProvider } from '@notifire/core';

export const notifire = new Notifire();

(async () => {
  await notifire.registerProvider(
    new SendgridProvider({
      apiKey: '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'
    })
  );


  const passwordResetTemplate = await notifire.registerTemplate({
    id: 'password-reset', // eventId
    messages: [
      {
        subject: 'Test subject {{subjectTitle}}' + new Date(),
        channel: ChannelTypeEnum.EMAIL,
        template: `
                    
                    
html {{firstName}}'
` }, ] }); // hooks : 'before', 'after', 'error' // variable protection // Best practice defaults > On all the time, reject when missing // variable schema (validations, default) // filters try { await notifire.trigger(passwordResetTemplate.id, { $email: 'dima@grossman.io', $user_id: '123', subjectTitle: '22222', firstName: 'Dima' }); } catch (e) { console.error(e) } notifire.on('pre-sent', (id, trigger, notification) => { }) notifire.on('post-sent', (id, notification) => { }) })();