Skip to content

Commit 6a92b44

Browse files
authored
Merge pull request #24 from railsware/pre-1.0.0-release
Pre 1.0.0 release
2 parents c3883b1 + d415640 commit 6a92b44

12 files changed

+43
-37
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ build/
3535
.vscode/
3636

3737
### Mac OS ###
38-
.DS_Store
38+
.DS_Store

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2024 Railsware Products Studio LLC
3+
Copyright (c) 2025 Railsware Products Studio LLC
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+18-15
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,31 @@ Quickly add email sending functionality to your Java application with Mailtrap.
88

99
## Java Version
1010

11-
Requires JDK 11 or higher
11+
Requires JDK 11 or higher.
1212

13-
## Usage
14-
15-
### Dependency
13+
## Install package
1614

17-
Maven dependency
15+
As Maven dependency:
1816

1917
```xml
2018

2119
<dependency>
2220
<groupId>io.mailtrap</groupId>
2321
<artifactId>mailtrap-java</artifactId>
24-
<version>0.0.1</version>
22+
<version>1.0.0</version>
2523
</dependency>
2624
```
2725

28-
Gradle Groovy dependency
26+
As Gradle Groovy dependency:
2927

3028
```groovy
31-
implementation 'io.mailtrap:mailtrap-java:0.0.1'
29+
implementation 'io.mailtrap:mailtrap-java:1.0.0'
3230
```
3331

34-
Gradle Kotlin DSL dependency
32+
As Gradle Kotlin DSL dependency:
3533

3634
```kotlin
37-
implementation("io.mailtrap:mailtrap-java:0.0.1")
35+
implementation("io.mailtrap:mailtrap-java:1.0.0")
3836
```
3937

4038
## Usage
@@ -72,14 +70,14 @@ public class MailtrapJavaSDKTest {
7270
.text("Welcome to Mailtrap Sending!")
7371
.build();
7472

73+
// Send email using Mailtrap Sending API
7574
try {
7675
System.out.println(client.send(mail));
7776
} catch (Exception e) {
7877
System.out.println("Caught exception : " + e);
7978
}
8079

81-
// OR send email to the Mailtrap Sandbox
82-
80+
// Or send email using Mailtrap Testing API
8381
try {
8482
long inboxId = 1000001L;
8583

@@ -98,7 +96,7 @@ public class MailtrapJavaSDKTest {
9896

9997
System.out.println(client.send(mail));
10098

101-
// Or use directly Testing API to send email to Sandbox
99+
// Or use Testing API directly
102100
System.out.println(client.testingApi().emails().send(mail, inboxId));
103101
} catch (Exception e) {
104102
System.out.println("Caught exception : " + e);
@@ -127,18 +125,23 @@ You can find the API reference [here](https://railsware.github.io/mailtrap-java/
127125
- [Error handling](examples/java/io/mailtrap/examples/sending/Errors.java)
128126
- [Send email using template](examples/java/io/mailtrap/examples/sending/Template.java)
129127

130-
### Email testing API
128+
### Email Testing API
131129

132130
- [Attachments](examples/java/io/mailtrap/examples/testing/Attachments.java)
133131
- [Inboxes](examples/java/io/mailtrap/examples/testing/Inboxes.java)
134132
- [Messages](examples/java/io/mailtrap/examples/testing/Messages.java)
135133
- [Projects](examples/java/io/mailtrap/examples/testing/Projects.java)
136134
- [Send mail using template](examples/java/io/mailtrap/examples/testing/Email.java)
137135

138-
### Bulk sending API
136+
### Bulk Sending API
139137

140138
- [Send mail](examples/java/io/mailtrap/examples/bulk/BulkSend.java)
141139

140+
### Contacts API
141+
142+
- [Contacts](examples/java/io/mailtrap/examples/contacts/Contacts.java)
143+
- [Contact lists](examples/java/io/mailtrap/examples/contact_lists/ContactLists.java)
144+
142145
## Contributing
143146

144147
Bug reports and pull requests are welcome on [GitHub](https://github.com/railsware/mailtrap-java). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](CODE_OF_CONDUCT.md).

docs/docfx.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
],
1616
"dest": "_site"
1717
}
18-
}
18+
}

docs/getting-started.md

+13-10
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,39 @@ Follow these few simple steps to add Mailtrap API functionality into your Java p
44

55
# Prerequisites
66

7-
Make sure your project uses JDK 11 or higher
7+
Make sure your project uses JDK 11 or higher.
88

99
## Setup
1010

1111
### 1. Add the library as a Maven/Gradle dependency
12-
Maven dependency
12+
13+
Maven dependency:
1314

1415
```xml
1516

1617
<dependency>
1718
<groupId>io.mailtrap</groupId>
1819
<artifactId>mailtrap-java</artifactId>
19-
<version>*latest-version*</version>
20+
<version>1.0.0</version>
2021
</dependency>
2122
```
2223

23-
Gradle Groovy dependency
24+
Gradle Groovy dependency:
2425

2526
```groovy
26-
implementation 'io.mailtrap:mailtrap-java:*latest-version*'
27+
implementation 'io.mailtrap:mailtrap-java:1.0.0'
2728
```
2829

29-
Gradle Kotlin DSL dependency
30+
Gradle Kotlin DSL dependency:
3031

3132
```kotlin
32-
implementation("io.mailtrap:mailtrap-java:*latest-version*")
33+
implementation("io.mailtrap:mailtrap-java:1.0.0")
3334
```
3435

35-
### 2. Register/login into Mailtrap account
36-
Obtain API token to configure and use MailtrapClient
36+
### 2. Authentication
37+
38+
- Register/login into Mailtrap
39+
- Obtain an API token [with respective permissions and access level](https://help.mailtrap.io/article/103-api-tokens) to configure and use MailtrapClient.
3740

3841
### 3. Configuration and usage
3942

@@ -73,4 +76,4 @@ public class Minimal {
7376
}
7477
}
7578
}
76-
```
79+
```

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Welcome to the documentation portal for the official <a href="https://mailtrap.i
77

88
This client allows you to quickly and easily integrate your Java application with Mailtrap API.
99

10-
1110
## Table of contents
1211

1312
- [Getting Started](getting-started.md) - quick overview on how to integrate Mailtrap into your project
1413
- [Usage Examples](usage-examples.md)
1514
- [API Reference](javadocs.md) - Detailed API Reference
1615

1716
## License
18-
Licensed under the <a href="https://github.com/railsware/mailtrap-java/blob/main/LICENSE.txt" target="_blank">MIT License</a>.
17+
18+
Licensed under the <a href="https://github.com/railsware/mailtrap-java/blob/main/LICENSE.txt" target="_blank">MIT License</a>.

docs/toc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
- name: Usage Examples
66
href: usage-examples.md
77
- name: API Reference
8-
href: javadocs.md
8+
href: javadocs.md

docs/usage-examples.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Detailed Usage Examples
22

3-
Code examples, that covers all possible APIs can be found <a href="https://github.com/railsware/mailtrap-java/tree/main/examples/java/io/mailtrap/examples" target="_blank">here</a>
3+
Code examples covering all APIs can be found <a href="https://github.com/railsware/mailtrap-java/tree/main/examples/java/io/mailtrap/examples" target="_blank">here</a>.

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.mailtrap</groupId>
88
<artifactId>mailtrap-java</artifactId>
9-
<version>0.0.1</version>
9+
<version>1.0.0</version>
1010

1111
<name>Mailtrap Java SDK</name>
1212
<description>The official Mailtrap SDK for Java provides Java APIs
@@ -236,4 +236,4 @@
236236
</plugins>
237237
</build>
238238

239-
</project>
239+
</project>

src/test/resources/api/accounts/getAllAccountsResponse.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
1000
1414
]
1515
}
16-
]
16+
]

src/test/resources/api/billing/currentBillingCycleUsageResponse.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929
}
3030
}
3131
}
32-
}
32+
}

src/test/resources/api/emails/sendRequestFromTemplate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"template_variables": {
1919
"user_name": "John Doe"
2020
}
21-
}
21+
}

0 commit comments

Comments
 (0)