python bot-client for workonflow
Project description
Установка
pip install workonflow-bot-client
Как использовать
import sys
from workonflow_bot_client.main import connect, Comment, Thread, Stream
def callback(*args):
return print('Get message from thread.create ---> ', args)
def bot():
global socket
socket = connect(creds={'email': 'email@bot.com', 'password': 'password'})
teamId = '5af002sssc890f001b2b742f'
query = {'title': 'New task', 'streamId': '5b20cae1234561001ed4e61e', 'status': '5b20cae3458202112ed4e61f'}
thread = Thread()
thread.create(socket, teamId, query, callback)
socket.wait()
if __name__ == "__main__":
try:
bot()
except KeyboardInterrupt:
print('Killed by user')
print(socket.disconnect())
sys.exit(0)
Запуск
WS_ENDPOINT=https://ws-bots.teslatele.com python3 nameFile.py
- Реализовано
comment (create, read, on_created, count)
thread (create, read, read_description, on_created, on_status_updated, on_budget_updated, on_deadline_updated, set_budget, set_deadline, set_description, set_priority, set_responsible, set_status, set_stream, set_title, set_add_customers, remove_customers)
stream (create, read, delete, on_user_deleted, on_user_set, set_admin, set_name, set_description, set_user)
Полная документация: https://github.com/workonflow/bot-client-docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file workonflow-bot-client-0.0.2.tar.gz.
File metadata
- Download URL: workonflow-bot-client-0.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac210ce142591fb95c98fc39c615fab04377d46555121ec25374b4a4e032665f
|
|
| MD5 |
753098db25fd44b07f91f4a027cb8818
|
|
| BLAKE2b-256 |
03f00a0c8f5189e336352fed6219867b043819cc94ceac0429eeb10a9ce67d06
|