NylasClient

public final 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
public final Applications applications()

Access the Applications API

Link copied to clipboard
public final Attachments attachments()

Access the Attachments API

Link copied to clipboard
public final Auth auth()

Access the Auth API

Link copied to clipboard
public final Calendars calendars()

Access the Calendars API

Link copied to clipboard
public final Connectors connectors()

Access the Connectors API

Link copied to clipboard
public final Contacts contacts()

Access the Contacts API

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

Access the Drafts API

Link copied to clipboard
public final Events events()

Access the Events API

Link copied to clipboard
public final Folders folders()

Access the Folders API

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

Access the Grants API

Link copied to clipboard
public final Messages messages()

Access the Messages API

Link copied to clipboard
public final HttpUrl.Builder newUrlBuilder()

Get a URL builder instance for the Nylas API.

Link copied to clipboard
public final Threads threads()

Access the Threads API

Link copied to clipboard
public final Webhooks webhooks()

Access the Webhooks API