MailJimp
Java API for MailChimp
Install / Use
/learn @limone/MailJimpREADME
MailChimp API for Java
About
MailJimp is a MailChimp library built in Java intended for use within Maven-enabled Spring-based applications. MailJimp was tested against version 1.3 of the MailChimp API though most of the methods will work with version 1.2. (But I really don't know why you would use it ;)
The Maven part is not mandatory, of course - feel free to download the source and build yourself the library. The Spring part is also not mandatory, as long as you deploy the library in a container that understands the @PostConstruct annotation, or you manually invoke MailJimpService::init() after construction.
Runtime Info
To run the service in a Spring-based application you have to do two things:
-
Integrate the config file
mailjimp-spring-config.xmlin your app. It is part of the distro and can be found in the classpath.<import resource="classpath:mailjimp-spring-config.xml" /> -
Create a file called
mailjimp.propertiesand add it to the classpath. This file is used to configure the MailChimpService and has the following entries:mj.username=your_username mj.password=your_password mj.apiKey=your_api_key mj.apiVersion=version_to_use (1.3 is the current one) mj.ssl=https (true|false)An example of this file can be found under
/src/test/resources/mailjimp.propertieswhich is used for the integration tests.
Test Info
If you want to run the integration tests (mailjimp.service.TestMailChimpService) and have them work properly, you need to edit the files /src/test/resources/mailjimp.properties and /src/test/resources/mailjimp-test.properties.
In the later one you need to set the id of an existing list and an email address of an already subscribed user of that list.
Maven
MailJimp deploys releases and snapshots to Sonatype's OSS repository. Releases are automatically synchronized with Maven Central so no repository information should be required. To use our most recent release, please add the following dependency:
Dependency
<dependency>
<groupId>net.mailjimp</groupId>
<artifactId>mailjimp-core</artifactId>
<version>0.3</version>
</dependency>
Snapshots
Alternately, if you wish to utlize a development snapshot, please add the following to your POM:
Repository
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
Dependency
<dependency>
<groupId>net.mailjimp</groupId>
<artifactId>mailjimp-core</artifactId>
<version>0.4-SNAPSHOT</version>
</dependency>
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
