Backend & SDK
Opslag & e-mail
Upload bestanden en verstuur transactionele e-mail.
Bestandsuploads
const input = document.querySelector('input[type=file]');
const { url, name, size } = await b77.storage.upload(input.files[0]);
await b77.db.create('photos', { url, caption: 'Sunset' });Bestanden tot 10 MB. Elke upload kost 1 integratiecredit. Geüploade bestanden staan in het tabblad Data. Afbeeldingen, video en audio openen in de browser; pdf's en andere documenten worden gedownload als je ze opent.
await b77.email.send({
to: 'customer@example.com',
subject: 'Your booking is confirmed',
html: '<h1>See you Friday!</h1><p>Table for 2 at 19:30.</p>',
});Elke e-mail kost 1 integratiecredit. Apps kunnen tot 50 e-mails per uur versturen.
Meldingen (toasts)
b77.toast('Saved!');
b77.toast('Something went wrong', 'error');