Workhub Bot SDK — Build bots for the Workhub collaboration platform
Project description
workhub-bot-sdk
Workhub 협업 플랫폼용 Python Bot SDK
설치
pip install workhub-bot-sdk
빠른 시작
from workhub_bot_sdk import WorkhubBot
bot = WorkhubBot(
base_url="https://your-workhub.com",
api_key="whb_xxxxxxxx_live_xxxxxxxxxxxxxxxx",
)
# 메시지 보내기
bot.send_message(channel_id="...", content="안녕하세요!")
# 태스크 생성
bot.create_task(topic_id="...", title="새 태스크", priority="high")
# 검색
result = bot.search("배포", type="tasks")
print(f"{result.total}건 검색됨")
웹훅 이벤트 수신
from workhub_bot_sdk import WorkhubBot, WebhookServer
bot = WorkhubBot(base_url="http://localhost:8080", api_key="whb_xxx")
webhook = WebhookServer(port=9000, secret="your-secret")
@webhook.on("message.created")
def on_message(event):
bot.send_message(channel_id=event.data["channel_id"], content="수신 확인!")
webhook.start()
API
| 메서드 | 설명 |
|---|---|
send_message() |
메시지 발송 |
read_messages() |
메시지 읽기 |
list_channels() |
채널/프로젝트/토픽 목록 |
create_task() |
태스크 생성 |
update_task() |
태스크 수정 |
list_tasks() |
태스크 목록 |
search() |
통합 검색 |
get_user() |
사용자 정보 |
list_users() |
사용자 목록 |
upload_file() |
파일 업로드 |
download_file() |
파일 다운로드 |
authenticate() |
API key 인증 확인 |
라이선스
MIT
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
workhub_bot_sdk-0.1.0.tar.gz
(10.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file workhub_bot_sdk-0.1.0.tar.gz.
File metadata
- Download URL: workhub_bot_sdk-0.1.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86f55fec654b1d5957aa85a922fb63719f79454c420a0878c49995950c34ef1b
|
|
| MD5 |
468d40b7fd36d81fdbce8d4242bdaf66
|
|
| BLAKE2b-256 |
0908dfc3c78f351bec2163035a3333aa97caf86d3ef5d67d8a10acb18b7aa3f0
|
File details
Details for the file workhub_bot_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: workhub_bot_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5394e8150796596ba6abb34bb7b92e785548f734eaa64d8bb00ba098e8d88bda
|
|
| MD5 |
03448916f6c00c7ef1dc6dfde9f8bba4
|
|
| BLAKE2b-256 |
e526d3ebe5817465c68bf7e6ec5837d8d8f37fc734e61c265ceba5253f62e8b9
|