Created
June 5, 2017 12:24
-
-
Save marcio-azevedo/b02aca8007f4d2fd0ad6b662a48f15d6 to your computer and use it in GitHub Desktop.
Intercom usage example
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
// https://github.com/intercom/intercom-dotnet | |
//var usersClient = new UsersClient(new Authentication("MyPersonalAccessToken")); | |
var usersClient = new UsersClient(new Authentication("AppId", "AppKey")); | |
// Create a user | |
var user = usersClient.Create( | |
new User | |
{ | |
id = "", | |
user_id = "my_id", | |
name = "first last", | |
companies = new List<Company> | |
{ | |
new Company | |
{ | |
name = "", // office code + office name | |
company_id = "" // office unique id | |
} | |
}, | |
created_at = DateTime.UtcNow.ToFileTimeUtc(), | |
email = "", | |
custom_attributes = new Dictionary<string, object>(), // user roles, | |
phone = "" | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment