Accounts
getAccount
- getAccount(paramIn?): Promise<any>
Returns Promise<any>
Calls
addPhoneCall
- addPhoneCall(phoneCall): Promise<any>
Returns Promise<any>
notifyPhoneCall
- notifyPhoneCall(phoneNumber, userIds?): Promise<any>
Parameters
- phoneNumber: string
Optional userIds: number[]
Returns Promise<any>
Companies
getCompanies
- getCompanies(params): Promise<any>
Returns Promise<any>
getCompany
- getCompany(id, params): Promise<any>
Returns Promise<any>
getCompanyLinks
- getCompanyLinks(companyId): Promise<any>
Returns Promise<any>
Constructors
constructor
- new AmoApiClient(domain, accessToken, options?): AmoApiClient
Contacts
attachChatToContact
- attachChatToContact(chatId, contactId): Promise<any>
Parameters
- chatId: string
- contactId: number
Returns Promise<any>
getContact
- getContact(contactId, params): Promise<any>
Parameters
- contactId: number
- params: any
Returns Promise<any>
getContactChats
- getContactChats(contactId): Promise<any>
Returns Promise<any>
getContactLinks
- getContactLinks(contactId): Promise<any>
Returns Promise<any>
getContactNoteById
- getContactNoteById(contactId, noteId): Promise<any>
Parameters
- contactId: number
- noteId: number
Returns Promise<any>
getContactNotes
- getContactNotes(contactId): Promise<any>
Returns Promise<any>
getContacts
- getContacts(params): Promise<any>
Returns Promise<any>
getContactsChats
- getContactsChats(contactIds): Promise<any>
Returns Promise<any>
getContactsCustomFieldById
- getContactsCustomFieldById(customFieldId): Promise<any>
Returns Promise<any>
getContactsCustomFieldGroupById
- getContactsCustomFieldGroupById(groupId): Promise<any>
Returns Promise<any>
getContactsCustomFieldGroups
- getContactsCustomFieldGroups(): Promise<any>
Returns Promise<any>
getContactsCustomFields
- getContactsCustomFields(paramsIn): Promise<any>
Returns Promise<any>
getContactsNotes
- getContactsNotes(params): Promise<any>
Returns Promise<any>
getContactsTags
- getContactsTags(paramsIn): Promise<any>
Returns Promise<any>
updateContact
- updateContact(id, data): Promise<any>
Returns Promise<any>
Events
getEventById
- getEventById(eventId, paramWith?): Promise<any>
Parameters
- eventId: number
Optional paramWith: any
Returns Promise<any>
getEventTypes
- getEventTypes(): Promise<any>
Returns Promise<any>
getEvents
- getEvents(paramsIn): Promise<any>
Returns Promise<any>
Leads
getLeadById
- getLeadById(leadId, params): Promise<any>
Parameters
- leadId: number
- params: any
Returns Promise<any>
getLeadLinks
- getLeadLinks(leadId): Promise<any>
Returns Promise<any>
getLeads
- getLeads(params): Promise<any>
Returns Promise<any>
getLeadsWithFilter
- getLeadsWithFilter(params): Promise<any>
Returns Promise<any>
Methods
getSalesBots
- getSalesBots(): Promise<any>
Returns Promise<any>
getUrl
- getUrl(url, options): Promise<any>
Returns Promise<any>
Notes
addNote
- addNote(entityType, entityId, note): Promise<any>
Parameters
- entityType: string
- entityId: number
- note: Note
Returns Promise<any>
getNoteById
- getNoteById(entityType, entityId, noteId): Promise<any>
Parameters
- entityType: string
- entityId: number
- noteId: number
Returns Promise<any>
getNotesByEntityId
- getNotesByEntityId(entityType, entityId): Promise<any>
Parameters
- entityType: string
- entityId: number
Returns Promise<any>
getNotesByEntityType
- getNotesByEntityType(entityType, paramsIn): Promise<any>
Parameters
- entityType: string
- paramsIn: any
Returns Promise<any>
Pipelines
getPipelineById
- getPipelineById(pipelineId): Promise<any>
Returns Promise<any>
getPipelineStatuses
- getPipelineStatuses(pipelineId): Promise<any>
Returns Promise<any>
getPipelines
- getPipelines(): Promise<any>
Returns Promise<any>
Properties
axios
axios: AxiosInstance
ShortLinks
getShortLinkForContact
- getShortLinkForContact(url, contactId): Promise<any>
Parameters
- url: string
- contactId: number
Returns Promise<any>
Sources
addSource
- addSource(params): Promise<any>
Returns Promise<any>
deleteSourceById
- deleteSourceById(sourceId): Promise<any>
Returns Promise<any>
getSourceById
- getSourceById(sourceId): Promise<any>
Returns Promise<any>
getSources
- getSources(): Promise<any>
Returns Promise<any>
Tags
Private addTag
- addTag(entityType, params): Promise<any>
Returns Promise<any>
Private appendTags
- appendTags(entityType, entityId, tags): Promise<any>
Parameters
- entityType: string
- entityId: number
- tags: Tag[]
Returns Promise<any>
Private getTags
- getTags(entityType, paramsIn): Promise<any>
Parameters
- entityType: string
- paramsIn: any
Returns Promise<any>
Tags for leads
addTagForLeads
- addTagForLeads(tag): Promise<any>
Returns Promise<any>
appendTagsToLead
- appendTagsToLead(entityId, tags): Promise<any>
Parameters
- entityId: number
- tags: Tag[]
Returns Promise<any>
getTagsForLeads
- getTagsForLeads(paramsIn): Promise<any>
Returns Promise<any>
Talks
closeTalkById
- closeTalkById(talkId, forceClose?): Promise<any>
Parameters
- talkId: number
Optional forceClose: boolean
Returns Promise<any>
getTalkById
- getTalkById(talkId): Promise<any>
Returns Promise<any>
getTalks
- getTalks(paramsIn?): Promise<any>
Returns Promise<any>
Tasks
addTask
- addTask(task): Promise<any>
Returns Promise<any>
editTask
- editTask(taskId, data): Promise<any>
Returns Promise<any>
getTaskById
- getTaskById(taskId): Promise<any>
Returns Promise<any>
getTasks
- getTasks(paramsIn): Promise<any>
Returns Promise<any>
Templates
addTemplate
- addTemplate(templates): Promise<any>
Returns Promise<any>
deleteTemplateById
- deleteTemplateById(templateId): Promise<any>
Returns Promise<any>
getTemplateById
- getTemplateById(templateId): Promise<any>
Returns Promise<any>
getTemplates
- getTemplates(paramsIn): Promise<any>
Returns Promise<any>
updateTemplateById
- updateTemplateById(templateId, template): Promise<any>
Parameters
- templateId: string
- template: any
Returns Promise<any>
Unsorted
getUnsorted
- getUnsorted(paramsIn): Promise<any>
Returns Promise<any>
getUnsortedByUID
- getUnsortedByUID(uid): Promise<any>
Returns Promise<any>
Users
getUserById
- getUserById(userId): Promise<any>
Returns Promise<any>
getUsers
- getUsers(): Promise<any>
Returns Promise<any>
Webhooks
deleteWebhook
- deleteWebhook(__namedParameters): Promise<any>
Returns Promise<any>
getWebhooks
- getWebhooks(): Promise<any>
Returns Promise<any>
setWebhook
- setWebhook(params): Promise<any>
Returns Promise<any>
Widgets
getWidget
- getWidget(widgetCode): Promise<any>
Returns Promise<any>
getWidgets
- getWidgets(params): Promise<any>
Returns Promise<any>
See
https://www.amocrm.ru/developers/content/telephony/call_event