A Python client library for Workstreams.ai
Project description
workstreams
A Workstreams Python Client Library
For an overview of the Workstream API Overview, click here.
Requirements
- Python >= 3.6
- Requests >= 2.19.0
workstreams
is very simple to use -- take a look at the below example:
from workstreams import WorkstreamsClient
workstreams = WorkstreamsClient('your token')
workstreams.tasks.create(team_id='T3T7BFHGV', channel_id='C3T7D66J1', data={
'title': 'test task',
'labels': [
'init-labelid123'
],
'dueDate': '2018-03-07T11:46:17Z',
'assignee': 'U3T716H3N'
})
GET ALL TASKS IN MULTIPLE CHANNELS WHICH CHANGED SINCE GIVEN TIMESTAMP
Tasks Resource
If there is a need to provide a user for given action, you can optionally
provide a user id ws_user_id=U123456
for all create
and update
operations.
Available methods:
create(team_id, channel_id, data, ws_user_id=None)
- Creates a taskupdate(task_id, data, ws_user_id=None)
- Updates a taskfetch(task_id)
- Fetch a single taskfetch_user_tasks(team_id, user_id)
- Fetch tasks for a single userfetch_tasks_for_users(team_id, user_ids)
- Fetch tasks for multiple users- Example:
fetch_tasks_for_users(team_id='T3T7BFHGV', 'U123456', 'U123457', 'U123458')
- Example:
fetch_tasks_for_channels(team_id, channel_ids)
- Fetch all tasks for multiple channels- Example:
fetch_tasks_for_channels(team_id='T3T7BFHGV', 'C3T7D66J1', 'C3T7D66J2')
- Example:
fetch_changed_tasks_for_channels(team_id, channel_ids, timestamp)
- Fetch all tasks for multiple channels which changed since given timestampfetch_archived_tasks_for_channels(team_id, channel_ids)
- Fetch all archived tasks for multiple channelsarchive_tasks(task_ids, ws_user_id=None)
- Archive multiple tasksrestore_tasks(task_ids, ws_user_id=None)
- Restore multiple tasks
Contributions
TBD
Bug Reports
TBD
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
workstreams-1.0.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for workstreams-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0b6c4d057944b3cac7908b76fa647a180824839e1e351b296b493f53e988a90 |
|
MD5 | a71f85d9a9344e955df427d7d8c5db47 |
|
BLAKE2b-256 | df2501922d5aed9d3b7fdb9b9fc9744892544af701b791b9962724a0ab85c2ba |