Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

adding users.conversations method #174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions slacker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,22 @@ def profile(self):
def admin(self):
return self._admin

def conversations(self, cursor=None, exclude_archived=None, limit=None,
types=None, user=None):
if isinstance(types, (list, tuple)):
types = ','.join(types)

return self.get(
'users.conversations',
params={
'cursor': cursor,
'exclude_archived': exclude_archived,
'limit': limit,
'types': types,
'user': user
}
)

def info(self, user, include_locale=False):
return self.get('users.info',
params={'user': user, 'include_locale': include_locale})
Expand Down