NylasClient

public class NylasClient

The NylasClient is the entry point to the Java SDK.

An instance holds a configured http client pointing to a base URL and is intended to be reused and shared across threads and time.

Parameters

apiKey

The Nylas API key to use for authentication.

httpClientBuilder

The builder to use for creating the http client.

apiUri

The URL to use for communicating with the Nylas API.

Constructors

Link copied to clipboard
public NylasClient NylasClient(String apiKey, OkHttpClient.Builder httpClientBuilder, String apiUri)

Types

Link copied to clipboard
public final class Builder

A builder for creating NylasClient. Allows applications to customize the Nylas http access by choosing a different base url or modifying http client options.

Properties

Link copied to clipboard
private final String apiKey

Functions

Link copied to clipboard

Access the Applications API

Link copied to clipboard

Access the Attachments API

Link copied to clipboard
public Auth auth()

Access the Auth API

Link copied to clipboard

Access the Calendars API

Link copied to clipboard

Access the Connectors API

Link copied to clipboard
public Contacts contacts()

Access the Contacts API

Link copied to clipboard
public ResponseBody downloadResponse(String path, IQueryParams queryParams, RequestOverrides overrides)
Link copied to clipboard
public Drafts drafts()

Access the Drafts API

Link copied to clipboard
public Events events()

Access the Events API

Link copied to clipboard
public Folders folders()

Access the Folders API

Link copied to clipboard
public final String getApiKey()
Link copied to clipboard
public Grants grants()

Access the Grants API

Link copied to clipboard
public Messages messages()

Access the Messages API

Link copied to clipboard
public HttpUrl.Builder newUrlBuilder()

Get a URL builder instance for the Nylas API.

Link copied to clipboard
public final Scheduler scheduler()

Access the Scheduler API

Link copied to clipboard
public Threads threads()

Access the Threads API

Link copied to clipboard
public Webhooks webhooks()

Access the Webhooks API