SendGrid SMTP API Java Bindings


Лицензия

Лицензия

Категории

Категории

Java Языки программирования
Группа

Группа

com.revinate
Идентификатор

Идентификатор

sendgrid-smtpapi-java
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

SendGrid SMTP API Java Bindings
SendGrid SMTP API Java Bindings
Ссылка на сайт

Ссылка на сайт

https://github.com/revinate/sendgrid-smtpapi-java
Система контроля версий

Система контроля версий

https://github.com/revinate/sendgrid-smtpapi-java

Скачать sendgrid-smtpapi-java

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.revinate/sendgrid-smtpapi-java/ -->
<dependency>
    <groupId>com.revinate</groupId>
    <artifactId>sendgrid-smtpapi-java</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.revinate/sendgrid-smtpapi-java/
implementation 'com.revinate:sendgrid-smtpapi-java:2.0.0'
// https://jarcasting.com/artifacts/com.revinate/sendgrid-smtpapi-java/
implementation ("com.revinate:sendgrid-smtpapi-java:2.0.0")
'com.revinate:sendgrid-smtpapi-java:jar:2.0.0'
<dependency org="com.revinate" name="sendgrid-smtpapi-java" rev="2.0.0">
  <artifact name="sendgrid-smtpapi-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.revinate', module='sendgrid-smtpapi-java', version='2.0.0')
)
libraryDependencies += "com.revinate" % "sendgrid-smtpapi-java" % "2.0.0"
[com.revinate/sendgrid-smtpapi-java "2.0.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.json : json jar 20140107

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.hamcrest : hamcrest-library jar 1.3

Модули Проекта

Данный проект не имеет модулей.

SendGrid SMTP API Java Bindings

This module lets you build SendGrid's SMTP API headers with simplicity.

BuildStatus BuildStatus

Requirements

Java 1.6 and later.

Installation

Maven

Add this dependency to your project's POM:

<dependency>
  <groupId>com.revinate</groupId>
  <artifactId>sendgrid-smtpapi-java</artifactId>
  <version>2.0.0</version>
</dependency>

Gradle

Add this dependency to your project's build script:

compile 'com.revinate:sendgrid-smtpapi-java:2.0.0'

Usage

Create header

import com.revinate.sendgrid.smtpapi.*;
SmtpApi header = new SmtpApiImpl();

Get header value

String headerValue = header.toSmtpApiHeader();

If you need the unescaped JSON string:

String rawHeaderValue = header.toRawSmtpApiHeader();

To

header.addSmtpApiTo("email@email.com");
// or
header.addSmtpApiTo("email@email.com", "Email User");

List<String> tos = header.getSmtpApiTos();

Substitutions

header.addValueToSubstitution("key", "value");

List<String> substitution = header.getSubstitution("key");

Unique Arguments

header.setUniqueArg("key", "value");

String arg = header.getUniqueArg("key");

Categories

header.addCategory("category");

List<String> categories = header.getCategories();

Sections

header.setSection("key", "section");

String section = header.getSection("key");

Filters

header.setSettingInFilter("filter", "setting", "value");
header.setSettingInFilter("filter", "setting", 1);

Map<String, Object> filter = header.getFilter("filter");

ASM Group ID

header.setAsmGroupId(1);

Integer groupId = header.getAsmGroupId();

Scheduling

header.setSendAt(1416427645);

Integer sendAt = header.getSendAt();

IP Pool

header.setIpPool("transactional");

String ipPool = header.getIpPool();

License

Licensed under the MIT License.

com.revinate

Revinate, Inc.

Версии библиотеки

Версия
2.0.0
1.2.1