Grants

public final class Grants extends Resource<Grant>

Nylas Grants API

The Nylas Grants API allows for the management of grants.

Parameters

client

The configured Nylas API client

Constructors

Link copied to clipboard
public Grants Grants(NylasClient client)

Functions

Link copied to clipboard
public final DeleteResponse destroy(String grantId)
public final DeleteResponse destroy(String grantId, RequestOverrides overrides)

Delete a Grant

Link copied to clipboard
public final Response<Grant> find(String grantId)
public final Response<Grant> find(String grantId, RequestOverrides overrides)

Return a Grant

Link copied to clipboard
public final ListResponse<Grant> list()
public final ListResponse<Grant> list(ListGrantsQueryParams queryParams, RequestOverrides overrides)

Return all Grants

Link copied to clipboard
public final Response<Grant> update(String grantId, UpdateGrantRequest requestBody)
public final Response<Grant> update(String grantId, UpdateGrantRequest requestBody, RequestOverrides overrides)

Update a Grant