Aizmugursistēma un SDK

Krātuve un e-pasts

Augšupielādē failus un sūti transakciju e-pastus.

Failu augšupielāde

const input = document.querySelector('input[type=file]');
const { url, name, size } = await m77.storage.upload(input.files[0]);
await m77.db.create('photos', { url, caption: 'Sunset' });

Faili līdz 10 MB. Katra augšupielāde izmanto 1 integrāciju kredītu. Augšupielādētie faili redzami cilnē Dati.

E-pasts

await m77.email.send({
  to: '[email protected]',
  subject: 'Your booking is confirmed',
  html: '<h1>See you Friday!</h1><p>Table for 2 at 19:30.</p>',
});

Katrs e-pasts izmanto 1 integrāciju kredītu. Lietotne var nosūtīt līdz 50 e-pastiem stundā.

Paziņojumi (toasts)

m77.toast('Saved!');
m77.toast('Something went wrong', 'error');