백엔드와 SDK
저장소와 이메일
파일을 업로드하고 트랜잭션 이메일을 보내요.
파일 업로드
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' });파일은 최대 10 MB까지 올릴 수 있어요. 업로드 한 번에 연동 크레딧 1개가 들어요. 업로드한 파일은 데이터 탭에 표시돼요. 이미지, 동영상, 오디오는 브라우저에서 열리고, PDF와 다른 문서는 열면 다운로드돼요.
이메일
await b77.email.send({
to: '[email protected]',
subject: 'Your booking is confirmed',
html: '<h1>See you Friday!</h1><p>Table for 2 at 19:30.</p>',
});이메일 한 통에 연동 크레딧 1개가 들어요. 앱은 시간당 최대 50통까지 보낼 수 있어요.
토스트 알림
b77.toast('Saved!');
b77.toast('Something went wrong', 'error');