Skip to content

Instantly share code, notes, and snippets.

@marcio-azevedo
Created June 5, 2017 12:24
Show Gist options
  • Save marcio-azevedo/b02aca8007f4d2fd0ad6b662a48f15d6 to your computer and use it in GitHub Desktop.
Save marcio-azevedo/b02aca8007f4d2fd0ad6b662a48f15d6 to your computer and use it in GitHub Desktop.
Intercom usage example
// 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