Created
October 30, 2017 20:38
-
-
Save Rigo85/c9df6adc7059074617f242b0d10aa47d to your computer and use it in GitHub Desktop.
Create user on Intercom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const token = '<PUT TOKEN HERE>'; | |
var Intercom = require('intercom-client'); | |
var client = new Intercom.Client({ token: token }); | |
//this return a promise. | |
client.users.create({ | |
user_id: 0, | |
name: 'Bot' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment