Contacts

public final class Contacts extends Resource<Contact>

Constructors

Link copied to clipboard
public Contacts Contacts(NylasClient client)

Functions

Link copied to clipboard
public final Response<Contact> create(String identifier, CreateContactRequest requestBody)
public final Response<Contact> create(String identifier, CreateContactRequest requestBody, RequestOverrides overrides)

Create a Contact

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

Delete a Contact

Link copied to clipboard
public final Response<Contact> find(String identifier, String contactId)
public final Response<Contact> find(String identifier, String contactId, FindContactQueryParams queryParams)
public final Response<Contact> find(String identifier, String contactId, FindContactQueryParams queryParams, RequestOverrides overrides)

Return a contact

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

Return all contacts

Link copied to clipboard

Return all contact groups

Link copied to clipboard
public final Response<Contact> update(String identifier, String contactId, UpdateContactRequest requestBody)
public final Response<Contact> update(String identifier, String contactId, UpdateContactRequest requestBody, RequestOverrides overrides)

Update a Contact