NylasClient

public final class NylasClient

The NylasClient is the entry point to the Java SDK's API.

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.

baseUrl

The base URL to use for the Nylas API.

Constructors

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

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 Auth auth()

Access the Auth API

Link copied to clipboard
public final Calendars calendars()

Access the Calendars API

Link copied to clipboard
public final Events events()

Access the Events API

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

Get a URL builder instance for the Nylas API.