Last active
February 22, 2017 16:30
-
-
Save looneym/d43ba364c458eff29a083d2d8243be91 to your computer and use it in GitHub Desktop.
Base scoped token API operations
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
import io.intercom.api.Intercom; | |
import io.intercom.api.User; | |
public class Test { | |
public static void main(String[] args){ | |
Intercom.setToken("super_Secret_token"); | |
// Create a user | |
User user = new User() | |
.setEmail("[email protected]") | |
.setUserId("1") | |
.addCustomAttribute(CustomAttribute.newStringAttribute("role", "sergeant")) | |
.addCustomAttribute(CustomAttribute.newBooleanAttribute("browncoat", true)); | |
User created = User.create(user); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment