SendStreak is a simple interface that lets you integrate quickly to email services such as Mailchimp, Sendgrid or even AWS SES or Gmail to decouple your audience, email history and templates from your email provider.
- Java 11+ required
- Maven for dependency management
Add the following to your project's pom.xml:
<dependencies>
<!-- SendStreak Java SDK -->
<dependency>
<groupId>com.sendstreak</groupId>
<artifactId>sendstreak-jdk</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>package org.example;
import com.sendstreak.jdk.SendStreak;
import com.sendstreak.jdk.model.Email;
public class App {
public static void main(String[] args) {
// Initialize the SDK with your API key
SendStreak client = new SendStreak("your-api-key-here");
// Send an email
Email email = new Email("user@example.com", "email-template-slug");
email.getAttributes().putString("name", "John");
client.sendMail(email);
System.out.println("Email sent successfully!");
}
}SendStreak client = new SendStreak("your-api-key-here");Email email = new Email("recipient@example.com", "welcome-template");
client.sendMail(email);Event event = new Event("user_logged_in", "user@example.com");
client.sendEvent(event);Contact contact = new Contact("user@example.com");
contact.getAttributes().put("firstName", "John");
client.updateContact(contact);Contact contact = new Contact("user@example.com");
client.deleteContact(contact);For support or API-related questions, please contact support@sendstreak.com.
If you're a Java developer using SendStreak and want to contribute to this SDK, we're more than happy to have your pull request here - and your name on the hall of fame forever!