Preparing search index...
The search index is not available
GHL SDK - v1.1.6
GHL SDK
ContactsClient
Class ContactsClient
Hierarchy
GhlClient
ContactsClient
Index
Constructors
constructor
Methods
find
By
Id
update
remove
upsert
find
By
Business
create
find
find
Tasks
create
Task
find
Task
By
Id
update
Task
remove
Task
update
Task
Status
find
Appointments
add
Tags
remove
Tags
find
Notes
create
Note
find
Note
By
Id
update
Note
remove
Note
add
To
Campaign
remove
From
Campaign
remove
From
Every
Campaign
add
To
Workflow
remove
From
Workflow
add
Remove
From
Business
search
find
Duplicates
add
Followers
remove
Followers
Constructors
constructor
new
ContactsClient
(
accessToken
:
string
)
:
ContactsClient
Parameters
accessToken
:
string
Returns
ContactsClient
Methods
find
By
Id
findById
(
id
:
string
)
:
Promise
<
ContactResponse
>
Parameters
id
:
string
Returns
Promise
<
ContactResponse
>
update
update
(
id
:
string
,
dto
:
UpdateContactDto
)
:
Promise
<
UpdateContactResponse
>
Parameters
id
:
string
dto
:
UpdateContactDto
Returns
Promise
<
UpdateContactResponse
>
remove
remove
(
id
:
string
)
:
Promise
<
SuccededDeleteResponse
>
Parameters
id
:
string
Returns
Promise
<
SuccededDeleteResponse
>
upsert
upsert
(
dto
:
CreateContactDto
)
:
Promise
<
UpsertContactResponse
>
Parameters
dto
:
CreateContactDto
Returns
Promise
<
UpsertContactResponse
>
find
By
Business
findByBusiness
(
businessId
:
string
,
params
:
BusinessContactSearchParams
,
)
:
Promise
<
FindContactsResponse
>
Parameters
businessId
:
string
params
:
BusinessContactSearchParams
Returns
Promise
<
FindContactsResponse
>
create
create
(
dto
:
CreateContactDto
)
:
Promise
<
ContactResponse
>
Parameters
dto
:
CreateContactDto
Returns
Promise
<
ContactResponse
>
find
find
(
params
:
ContactLegacySearchParams
)
:
Promise
<
FindContactsResponse
>
Parameters
params
:
ContactLegacySearchParams
Returns
Promise
<
FindContactsResponse
>
find
Tasks
findTasks
(
contactId
:
string
)
:
Promise
<
ListContactTaskResponse
>
Parameters
contactId
:
string
Returns
Promise
<
ListContactTaskResponse
>
create
Task
createTask
(
contactId
:
string
,
dto
:
CreateContactTaskDto
,
)
:
Promise
<
ContactTaskResponse
>
Parameters
contactId
:
string
dto
:
CreateContactTaskDto
Returns
Promise
<
ContactTaskResponse
>
find
Task
By
Id
findTaskById
(
contactId
:
string
,
taskId
:
string
)
:
Promise
<
ContactTaskResponse
>
Parameters
contactId
:
string
taskId
:
string
Returns
Promise
<
ContactTaskResponse
>
update
Task
updateTask
(
contactId
:
string
,
taskId
:
string
,
dto
:
Partial
,
)
:
Promise
<
ContactTaskResponse
>
Parameters
contactId
:
string
taskId
:
string
dto
:
Partial
Returns
Promise
<
ContactTaskResponse
>
remove
Task
removeTask
(
contactId
:
string
,
taskId
:
string
)
:
Promise
<
SuccededDeleteResponse
>
Parameters
contactId
:
string
taskId
:
string
Returns
Promise
<
SuccededDeleteResponse
>
update
Task
Status
updateTaskStatus
(
contactId
:
string
,
taskId
:
string
,
completed
:
boolean
,
)
:
Promise
<
ContactTaskResponse
>
Parameters
contactId
:
string
taskId
:
string
completed
:
boolean
Returns
Promise
<
ContactTaskResponse
>
find
Appointments
findAppointments
(
contactId
:
string
)
:
Promise
<
ListContactEventsResponse
>
Parameters
contactId
:
string
Returns
Promise
<
ListContactEventsResponse
>
add
Tags
addTags
(
contactId
:
string
,
dto
:
ContactTagsDto
)
:
Promise
<
ContactTagsDto
>
Parameters
contactId
:
string
dto
:
ContactTagsDto
Returns
Promise
<
ContactTagsDto
>
remove
Tags
removeTags
(
contactId
:
string
,
data
:
ContactTagsDto
)
:
Promise
<
ContactTagsDto
>
Parameters
contactId
:
string
data
:
ContactTagsDto
Returns
Promise
<
ContactTagsDto
>
find
Notes
findNotes
(
contactId
:
string
)
:
Promise
<
ListContactNotesResponse
>
Parameters
contactId
:
string
Returns
Promise
<
ListContactNotesResponse
>
create
Note
createNote
(
contactId
:
string
,
dto
:
ContactNoteDto
)
:
Promise
<
ContactNoteResponse
>
Parameters
contactId
:
string
dto
:
ContactNoteDto
Returns
Promise
<
ContactNoteResponse
>
find
Note
By
Id
findNoteById
(
contactId
:
string
,
noteId
:
string
)
:
Promise
<
ContactNoteResponse
>
Parameters
contactId
:
string
noteId
:
string
Returns
Promise
<
ContactNoteResponse
>
update
Note
updateNote
(
contactId
:
string
,
noteId
:
string
,
dto
:
ContactNoteDto
,
)
:
Promise
<
ContactNoteResponse
>
Parameters
contactId
:
string
noteId
:
string
dto
:
ContactNoteDto
Returns
Promise
<
ContactNoteResponse
>
remove
Note
removeNote
(
contactId
:
string
,
noteId
:
string
)
:
Promise
<
SuccededDeleteResponse
>
Parameters
contactId
:
string
noteId
:
string
Returns
Promise
<
SuccededDeleteResponse
>
add
To
Campaign
addToCampaign
(
contactId
:
string
,
campaignId
:
string
,
)
:
Promise
<
ContactActionResponse
>
Parameters
contactId
:
string
campaignId
:
string
Returns
Promise
<
ContactActionResponse
>
remove
From
Campaign
removeFromCampaign
(
contactId
:
string
,
campaignId
:
string
,
)
:
Promise
<
ContactActionResponse
>
Parameters
contactId
:
string
campaignId
:
string
Returns
Promise
<
ContactActionResponse
>
remove
From
Every
Campaign
removeFromEveryCampaign
(
contactId
:
string
)
:
Promise
<
ContactActionResponse
>
Parameters
contactId
:
string
Returns
Promise
<
ContactActionResponse
>
add
To
Workflow
addToWorkflow
(
contactId
:
string
,
workflowId
:
string
,
startTime
:
string
,
)
:
Promise
<
ContactActionResponse
>
Parameters
contactId
:
string
workflowId
:
string
startTime
:
string
Returns
Promise
<
ContactActionResponse
>
remove
From
Workflow
removeFromWorkflow
(
contactId
:
string
,
workflowId
:
string
,
)
:
Promise
<
SuccededDeleteResponse
>
Parameters
contactId
:
string
workflowId
:
string
Returns
Promise
<
SuccededDeleteResponse
>
add
Remove
From
Business
addRemoveFromBusiness
(
dto
:
ContactBusinessUpdateDto
,
)
:
Promise
<
ContactBulkUpateResponse
>
Parameters
dto
:
ContactBusinessUpdateDto
Returns
Promise
<
ContactBulkUpateResponse
>
search
search
(
dto
:
ContactSearchOptions
)
:
Promise
<
ContactSearchResponse
>
Parameters
dto
:
ContactSearchOptions
Returns
Promise
<
ContactSearchResponse
>
find
Duplicates
findDuplicates
(
params
:
DuplicateContactSearchParams
,
)
:
Promise
<
ContactsDuplicateSearchResponse
>
Parameters
params
:
DuplicateContactSearchParams
Returns
Promise
<
ContactsDuplicateSearchResponse
>
add
Followers
addFollowers
(
contactId
:
string
,
followers
:
string
[]
,
)
:
Promise
<
ContactAddFollowersResponse
>
Parameters
contactId
:
string
followers
:
string
[]
Returns
Promise
<
ContactAddFollowersResponse
>
remove
Followers
removeFollowers
(
contactId
:
string
,
followers
:
string
[]
,
)
:
Promise
<
ContactRemoveFollowersResponse
>
Parameters
contactId
:
string
followers
:
string
[]
Returns
Promise
<
ContactRemoveFollowersResponse
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
find
By
Id
update
remove
upsert
find
By
Business
create
find
find
Tasks
create
Task
find
Task
By
Id
update
Task
remove
Task
update
Task
Status
find
Appointments
add
Tags
remove
Tags
find
Notes
create
Note
find
Note
By
Id
update
Note
remove
Note
add
To
Campaign
remove
From
Campaign
remove
From
Every
Campaign
add
To
Workflow
remove
From
Workflow
add
Remove
From
Business
search
find
Duplicates
add
Followers
remove
Followers
GHL SDK - v1.1.6
Loading...