Install
openclaw skills install @elberren/cc-livestream-setupThis skill should be used when the user needs to create or configure a CC live streaming room via API, including room creation, authentication setup, and credential management.
openclaw skills install @elberren/cc-livestream-setupThis skill provides workflows for creating and configuring CC live streaming rooms through the HTTP API.
Use this skill when:
⚠️ CRITICAL: Never Store Credentials
This skill works through conversation. Follow these steps in order:
Ask: "请提供您的 CC 账户 ID 和 API 密钥"
IMPORTANT: This step must be performed on EVERY execution. Never skip or use cached values.
Ask: "直播间名称是什么?" (max 40 characters)
Ask: "直播模板是什么?"
Provide options:
If user selects template type 1, 2, 3, or 6, ask:
Ask: "默认为横屏观看方式,是否选择竖屏观看方式?"
mobileViewMode = 2Use the scripts/create_room.py script with:
Present to user:
Get these from CC admin console:
All CC API requests require THQS (Time-based Hash Query String) signature authentication using MD5:
import hashlib
import time
import urllib.parse
def get_thqs(params, api_key):
l = []
for k in params:
k_encoded = urllib.parse.quote_plus(str(k))
v_encoded = urllib.parse.quote_plus(str(params[k]))
l.append('%s=%s' % (k_encoded, v_encoded))
l.sort()
qs = '&'.join(l)
qftime = 'time=%d' % int(time.time())
salt = 'salt=%s' % api_key
qf = qs + '&' + qftime + '&' + salt
hash_value = hashlib.new('md5', qf.encode('utf-8')).hexdigest().upper()
return qs + '&' + qftime + '&hash=' + hash_value
GET https://api.csslcloud.net/api/room/create
| Value | Description |
|---|---|
| 1 | 大屏模式 |
| 2 | 问答、视频、聊天 |
| 3 | 视频、聊天 |
| 4 | 文档、视频、聊天 |
| 5 | 视频、文档、问答、聊天 |
| 6 | 视频、问答 |
| Value | Description | Applicable Templates |
|---|---|---|
| (default) | 横屏观看 | All |
| 2 | 竖屏观看 | 1, 2, 3, 6 |
references/api_docs.md: Full API documentation referencescripts/create_room.py: Python script for room creation