Skip to content

jackmahoney/emaile2e-java-client

Repository files navigation

javaclient

Requirements

Building the API client library requires Maven to be installed.

Installation

To install the API client library to your local Maven repository, simply execute:

mvn install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn deploy

Refer to the official documentation for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
    <groupId>com.api.emaile2e</groupId>
    <artifactId>javaclient</artifactId>
    <version>1.0.0-SNAPSHOT</version>
    <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.api.emaile2e:javaclient:1.0.0-SNAPSHOT"

Others

At first generate the JAR by executing:

mvn package

Then manually install the following JARs:

  • target/javaclient-1.0.0-SNAPSHOT.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.InboxControllerApi;

import java.io.File;
import java.util.*;

public class InboxControllerApiExample {

    public static void main(String[] args) {
        
        InboxControllerApi apiInstance = new InboxControllerApi();
        String apiKey = "apiKey_example"; // String | Your API Key. Sign up and find it in your dashboard.
        try {
            ResponseInboxDto result = apiInstance.createUsingPOST(apiKey);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling InboxControllerApi#createUsingPOST");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to https://api.emaile2e.com

Class Method HTTP request Description
InboxControllerApi createUsingPOST POST /inboxes Create an inbox
InboxControllerApi indexUsingGET GET /inboxes List your inboxes
InboxControllerApi viewUsingGET GET /inboxes/{uuid} Fetch emails for a given inbox

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization. Authentication schemes defined for the API:

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

About

The official Java client for the emaile2e API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages