Threads

public final class Threads extends Resource<Thread>

Constructors

Link copied to clipboard
public Threads Threads(NylasClient client)

Functions

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

Delete a Thread

Link copied to clipboard
public final Response<Thread> find(String identifier, String threadId)
public final Response<Thread> find(String identifier, String threadId, RequestOverrides overrides)

Return a Thread

Link copied to clipboard
public final ListResponse<Thread> list(String identifier)
public final ListResponse<Thread> list(String identifier, ListThreadsQueryParams queryParams)
public final ListResponse<Thread> list(String identifier, ListThreadsQueryParams queryParams, RequestOverrides overrides)

Return all Threads

Link copied to clipboard
public final Response<Thread> update(String identifier, String threadId, UpdateThreadRequest requestBody)
public final Response<Thread> update(String identifier, String threadId, UpdateThreadRequest requestBody, RequestOverrides overrides)

Update a Thread