public class Intercom extends Object
| コンストラクタと説明 |
|---|
Intercom()
Create an Intercom object without App ID and API key.
|
Intercom(String appId,
String apiKey)
Create an Intercom object with App ID and API key.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Impression |
createImpression(Impression impression)
Creates an impression.
|
Note |
createNote(Note note)
Creates a new note.
|
Tag |
createTag(Tag tag)
Creates a new tag, optionally, tag/untag users.
|
User |
createUser(User user)
Creates a user.
|
User |
deleteUserByEmail(String email)
Deletes a user.
|
User |
deleteUserById(String userId)
Deletes a user.
|
<T> T |
deserialize(String json,
Class<T> clazz) |
String |
getApiKey()
Get an API key.
|
String |
getAppId()
Get an App ID.
|
Tag |
getTag(String name)
Retrieves a tag.
|
User |
getUserByEmail(String email)
Retrieves a user.
|
User |
getUserById(String userId)
Retrieves a user.
|
int |
getUserCount()
Retrieves total count of users.
|
UserIterator |
getUsers()
Retrieves all users.
|
UserIterator |
getUsersByTagName(String tagName)
Retrieves all users.
|
<T> String |
serialize(T object) |
void |
setApiKey(String apiKey)
Set an API key.
|
void |
setAppId(String appId)
Set an App ID.
|
Tag |
updateTag(Tag tag)
Updates an already existing tag.
|
User |
updateUser(User user)
Updates an already existing user.
|
public Intercom()
setAppId(String) and
setApiKey(String).public Intercom(String appId, String apiKey)
appId - App ID.apiKey - API key.public <T> String serialize(T object)
public <T> T deserialize(String json, Class<T> clazz) throws IntercomException
public void setAppId(String appId)
appId - App ID.public String getAppId()
public void setApiKey(String apiKey)
apiKey - API key (may be null).public String getApiKey()
public UserIterator getUsers()
IntercomException - when some error occurred.public UserIterator getUsersByTagName(String tagName)
tagName - tag name.IntercomException - when some error occurred.public int getUserCount()
throws IntercomException
IntercomException - when some error occurred.public User getUserById(String userId) throws IntercomException
userId - an unique identifier for the user.IntercomException - when some error occurred.public User getUserByEmail(String email) throws IntercomException
email - an email address.IntercomException - when some error occurred.public User createUser(User user) throws IntercomException
user - a new user object.IntercomException - when some error occurred.public User updateUser(User user) throws IntercomException
user - a user object.IntercomException - when some error occurred.public User deleteUserById(String userId) throws IntercomException
userId - an unique identifier for the user.IntercomException - when some error occurred.public User deleteUserByEmail(String email) throws IntercomException
email - an email address.IntercomException - when some error occurred.public Tag getTag(String name) throws IntercomException
name - the name of the tag.IntercomException - when some error occurred.public Tag createTag(Tag tag) throws IntercomException
tag - a new tag object.IntercomException - when some error occurred.public Tag updateTag(Tag tag) throws IntercomException
tag - a tag object.IntercomException - when some error occurred.public Note createNote(Note note) throws IntercomException
note - a new note object.IntercomException - when some error occurred.public Impression createImpression(Impression impression) throws IntercomException
impression - an impression object.IntercomException - when some error occurred.Copyright © 2014. All Rights Reserved.