Skip to main content

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.2.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

workhub_bot_sdk-0.2.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file workhub_bot_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: workhub_bot_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for workhub_bot_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 319c7db3b0dc0abd10f71276b761095999be4ba3ba329f77ee6ae016cf553c38
MD5 52618de1c882d56bef4a2026e09d5391
BLAKE2b-256 dff0448cdbdb0f917a785665322550093dfa008770b8179fc381405ab374168c

See more details on using hashes here.

File details

Details for the file workhub_bot_sdk-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for workhub_bot_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49c3b78e79b7f6ef71bccfcf113e8852bcaca7c47132f2bc29634a37b8ec43e6
MD5 1df18ba7a7b7f1afa7e049c7a5e16a26
BLAKE2b-256 c9d82a01c7aeca0a516e56fce344599fe2010bc0b20a293f1ad68a48e53c3600

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page