Person¶
-
class
watson_workspace_sdk.models.person.
Person
¶ Bases:
object
Object for Watson Workspace Users
Attributes
- display_name : str
- Title/Heading of the Annotation
- ext_id : str
- Message content type, appMessage by default
- email : str
- List of annotations attributed to the message, usually created by Watson API
- photo_url : str
- Message creation time
- customer_id : str
- Message modification time
- ibm_unique_id : str
- Message creator
- created : str
- Message Id
- updated : datetime
- Person who last modified message
- created_by : datetime
- Message version
- presence : str
- Message version
- updated_by : Person
- Message version
- id : str
- Message version
- is_bot : str
- Message version
Methods
-
classmethod
from_json
(json_body: {}) → watson_workspace_sdk.models.person.Person¶ Creates a Person user from a JSON object containing Person data :param json_body: JSON Person Object :return: Person :rtype: Person
-
classmethod
get
(user_id: str) → watson_workspace_sdk.models.person.Person¶ A simple method to populate Conversation object from a conversation_id
Parameters: user_id – the person id to retrieve from Watson Workspace Returns: Person Raises: keyError – raises an exception