Skip to content
This repository was archived by the owner on May 15, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ const Events = require('./resources/events')

class Intercom {
/**
*
* @param {String} apiKey
*
* @param {String} apiKey
*/
constructor(apiKey) {
this.apiKey = apiKey
Expand All @@ -18,14 +18,15 @@ class Intercom {
'Authorization': `Bearer ${this.apiKey}`,
'Accept': 'application/json',
'Content-Type': 'application/json',
'Intercom-version': '2.0',
}
})

this.contacts = new Contacts(this.client)
this.tags = new Tags(this.client)
this.visitors = new Visitors(this.client)
this.events = new Events(this.client)
}
}

module.exports = Intercom
module.exports = Intercom