This is a sample code for Melissa's Global Email API. It is written in JAVA and accesses the API through REST. This sample is intended to show the functionality of the Global Email Web Service and how to call the service in JAVA.
These instructions will get you a copy of the sample project up and running on your local machine for testing purposes.
License
This sample is intended for use after a web service account has been created and you have a license key. If you do not, please contact sales (800-800-6245 ext. 3) for a trial.
JAVA Version Compatibility
| Version | Compatibility |
|---|---|
| JAVA 1.0 | No |
| JAVA 1.1 | No |
| JAVA 1.2 | No |
| JAVA 1.3 | No |
| JAVA 1.4 | No |
| JAVA 5.0 | No |
| JAVA 6.0 | No |
| JAVA 7.0 | No |
| JAVA 8.0 | Yes |
| JAVA 9.0 | Yes |
| JAVA 10.0 | Yes |
No installation is necessary for this sample project. Simply open the Sample.bat file to compile and run the code.
To run this sample project you may do any of the following:
- Import to Java IDE of your Choice
- Run Windows Batch file (GlobalEmailSample\src\Sample.bat) which will compile and run the Java Sample Code
To import the project into Eclipse please follow the following instructions:
- Create a new Eclipse Project
- Right click your Eclipse Project and Select "Import..."
- Select "General -> File System" and click on "Next"
- The "From Directory" should be the directory above the "melissadata" directory of the downloaded sample code
- On the left panel select the Check box to import all of the folders/subfolders and click on "Next"
- In "Package Explorer" on Eclipse, right-click "src" and hover over "Build Path" and select "Use as Source Folder"
- In "Package Explorer" on Eclipse, right-click on the project name and hover over "Build Path" and select "Add External Archive..." and find the "org.apache.sling.commons.json-2.0.20.jar" in the "lib" directory of your project and click "Add"
- In "Package Explorer" on Eclipse, right-click on the project name and hover over "Run As" and select "Run Configurations"
- Change the Project to your current project and find your Main class "melissadata.webservice.Main"
- Click Apply and Run
You may also opt to import this project to other IDE's.
For free technical support please call us at 800-MELISSA ext. 4 (800-635-4772 ext. 4) or email us at tech@MelissaData.
To subscribe to the Global Email Web Service, please contact our sales department at 800-MELISSA ext. 3 (800-635-4772 ext. 3).
(C) 2018 Melissa Data Corporation. All rights reserved.
Global Email Web Service is a trademark and 1-800-MELISSA is a registered trademark of Melissa Data Corporation.
All other brands and products are trademarks of their respective holder(s).
- Melissa
