As the root object, this is mostly full of "singletons" and shortcut methods.
capabilities
- The capabilities descriptor for HipChat
emoticons
- The Emoticons Collection
rooms
- The Rooms Collection
users
- The Users Collection
create_user()
- Creates a new User object and returns the response.
get_user()
- Gets a User directly without having to navigate
create_room()
- Creates a new Room object and returns the response.
get_room()
- Gets a Room directly without having to navigate
get_emoticon()
- Gets a Emoticon directly without having to navigate
All objects, collections, rooms, webhooks, etc have these things.
self
- A link to this object
id
- The numeric ID of this object (except collections and webhooks)
delete()
- Attempts to delete the object (with HTTP
DELETE
) save()
- Attempts to save the object (with HTTP
PUT
)
All collections share this interface. Specific collection objects are "paged": no single object contains all items.
next
- (Optional) The next page in this collection
prev
- (Optional) The previous page in this collection
items
- A list of the things for this 'page' of the collection
maxResults
- The maximum number of items that could be in this page
startIndex
- The index of the first item in this page, starting at 0
contents()
- A generator that produces all items, navigating pagination in the process
In addition to the things defined in All Collections, the Rooms Collection has the below.
create()
- Creates a new Room
Representing a single chat room.
webhooks
- The Webhooks Collection for this room
members
- (Optional) For private rooms only; the Members Collection for this room
message()
- Currently a pointer to
notification()
notification()
- Sends a message to a room
topic()
- Sets the topic
history()
- Grabs a collection of the history. Note that the items of this collection are not full REST objects, just dictionaries. See All Collections for the interface.
invite()
- Invite a user to this room
name
- Display name
created
- When the room was created
guest_access_url
- The URL to give for guest access, if enabled
is_archived
True
if this room is archived,False
otherwiselast_active
- When the room last had activity
owner
- A reference to the owning User
participants
- A list of User stubs currently in the room
privacy
- One of
'public'
or'private'
topic
- The current topic
xmpp_jid
- The XMPP (Jabber) ID
In addition to the those in All Collections, the Webhooks Collection has the below.
create()
- Create a new Webhook
Unlike most REST Objects, Webhooks don't have an ID. Their stub is also much more extensive
url
- (Stubbed) The URL to
POST
to event
- (Stubbed) The event to call this hook on, one of
'room_message'
,'room_notification'
,'room_exit'
,'room_enter'
,'room_topic_change'
pattern
- (Stubbed) When
event
is'room_message'
, a regular expression to match against the message name
- (Stubbed) A human label for this hook
room
- The Room this webhook is for
creator
- The User that created this webhook
created
- When this webhook was created
In addition to the those in All Collections, the Members Collection has the below.
In addition to the things defined in All Collections, the Users Collection has the below.
create()
- Creates a new User
message()
- Sends a private message to the given user
name
- Display name
xmpp_jid
- The XMPP (Jabber) ID of the user
is_deleted
True
if the user has been deletedlast_active
- The last time the user was active
title
- The person's company title
presence
A
dict
of the values:status
- A status message, or
None
idle
- The number of seconds the user has been idle, or
None
show
- The status category, one of:
'away'
,'chat'
,'dnd'
,'xa'
, orNone
is_online
True
if the user is online
created
- When the User was created
mention_name
- User's @mention name
is_group_admin
True
if the user is an admin of the group/company/etctimezone
- The user's timezone
email
- The user's email
photo_url
- The user's URL as a string.
Defines nothing above All Collections
shortcut
- (Stubbed) The name used to invoke the emoticon, as in "(shortcut)"
url
- (Stubbed) The image file for this emoticon
creator
- The User that created this emoticon
width
- The width of the image, in pixels
height
- The height of the image, in pixels
audio_path
- (Optional) An audio file that should be played at the same time