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.1.0.tar.gz (10.8 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.1.0-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

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

Hashes for workhub_bot_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86f55fec654b1d5957aa85a922fb63719f79454c420a0878c49995950c34ef1b
MD5 468d40b7fd36d81fdbce8d4242bdaf66
BLAKE2b-256 0908dfc3c78f351bec2163035a3333aa97caf86d3ef5d67d8a10acb18b7aa3f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for workhub_bot_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5394e8150796596ba6abb34bb7b92e785548f734eaa64d8bb00ba098e8d88bda
MD5 03448916f6c00c7ef1dc6dfde9f8bba4
BLAKE2b-256 e526d3ebe5817465c68bf7e6ec5837d8d8f37fc734e61c265ceba5253f62e8b9

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