SocketLabsClient class

The main class to be used to send emails.

This uses the SocketLabs Injection API to send emails. Read more about this API here: https://inject.docs.socketlabs.com/v1/documentation/introduction

Constructors

SocketLabsClient({required String serverId, required String apiKey, String apiUrl = 'https://inject.socketlabs.com/api/v1', Client? httpClient})
Creates the client. You should only create this once and reuse it for subsequent sends.

Properties

apiKey String
final
apiUrl Uri
final
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverId String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(List<Message> messages) Future<void>
Send a list of messages. Typically you only pass one message, but all messages provided here are sent to SocketLabs in one API call, so if you know that you're going to send them, it's more efficient to do it with one call.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited