dart_resend 1.0.1 dart_resend: ^1.0.1 copied to clipboard
A Dart package for the Mapbox Search Box and Geocoding APIs.
dart_resend #
Resend made easy! 💎
A Dart package for interacting with the Resend API. It provides a set of utilities and models to facilitate integration with Resend's powerful email capabilities.
Developed with 💙 and maintained by scial.app
Supported features #
Email #
Feature | Available |
---|---|
Send Email | ✅ |
Retrieve Email | ✅ |
Send Batch Emails | ✅ |
Domains #
Feature | Available |
---|---|
Add Domain | ✅ |
Retrieve Domain | ✅ |
Verify Domain | ✅ |
Update Domain | ✅ |
List Domains | ✅ |
Delete Domain | ✅ |
API Keys #
Feature | Available |
---|---|
Create API key | ✅ |
List API keys | ✅ |
Delete API key | ✅ |
Audiences #
Feature | Available |
---|---|
Add Audience | ✅ |
Retrieve Audience | ✅ |
Delete Audience | ✅ |
List Audiences | ✅ |
Contacts #
Feature | Available |
---|---|
Add Contact | ✅ |
Retrieve Contact | ✅ |
Update Contact | ✅ |
Delete Contact | ✅ |
List Contacts | ✅ |
Quick Start 🚀 #
Installation 🧑💻 #
In the dependencies
section of your pubspec.yaml
, add the following line:
dependencies:
dart_resend: <latest_version>
Usage 👽 #
Import the package:
import 'package:dart_resend/dart_resend.dart';
Create an instance:
late final ResendClient resend;
void main() async {
final Resend result = Resend.initialize(apiKey: '...');
resend = result.client;
}
Make use of one of the many methods provided by this package e.g.:
final ResendResult<ResendSendEmailResponse> response = await resend.email
.sendEmail(
from: 'scial Developer <dev@scial.app>',
to: <String>['fleeser@scial.app', 'sroepges@scial.app'],
subject: 'Check out this package',
text: 'WOW! This package is awesome!');
response.fold(
onSuccess: (ResendSendEmailResponse data) => print('E-Mail sent!'),
onFailure: (ResendError? error, String? message) =>
print('Error occured.'));
Contribution 💙 #
Always open for contribution! Contributors will be listed here.