youtube
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseYoutube
YouTube
Integrate with YouTube for video management. Use when you need to: (1) upload videos to YouTube, (2) manage channel content, or (3) retrieve video analytics and insights.
与YouTube集成以进行视频管理。适用于以下场景:(1) 上传视频至YouTube,(2) 管理频道内容,或(3) 获取视频分析数据与洞察。
Input
输入
Provide input as JSON:
json
{
"video_file": "<file-reference>",
"video_title": "Title for your YouTube video",
"video_description": "Description for your YouTube video",
"video_tags": "Tags for your video (comma-separated)",
"privacy_status": "Privacy status: public, private, or unlisted"
}请以JSON格式提供输入:
json
{
"video_file": "<file-reference>",
"video_title": "Title for your YouTube video",
"video_description": "Description for your YouTube video",
"video_tags": "Tags for your video (comma-separated)",
"privacy_status": "Privacy status: public, private, or unlisted"
}Execution (Pattern C: Action)
执行(模式C:操作)
Step 1: Run the Skill and Get Run ID
步骤1:运行Skill并获取运行ID
bash
RESULT=$(refly skill run --id skpi-jdgmfvnvnx0fxm3npchfuqwg --input '{
"video_id": "dQw4w9WgXcQ",
"action": "get_details"
}')
RUN_ID=$(echo "$RESULT" | jq -r '.payload.workflowExecutions[0].id')bash
RESULT=$(refly skill run --id skpi-jdgmfvnvnx0fxm3npchfuqwg --input '{
"video_id": "dQw4w9WgXcQ",
"action": "get_details"
}')
RUN_ID=$(echo "$RESULT" | jq -r '.payload.workflowExecutions[0].id')RUN_ID is we-xxx format, use this for workflow commands
RUN_ID is we-xxx format, use this for workflow commands
undefinedundefinedStep 2: Open Workflow in Browser and Wait for Completion
步骤2:在浏览器中打开工作流并等待完成
bash
open "https://refly.ai/workflow/c-i7p2l6i0ceoa8urcbtk06rbi"
refly workflow status "$RUN_ID" --watch --interval 30000bash
open "https://refly.ai/workflow/c-i7p2l6i0ceoa8urcbtk06rbi"
refly workflow status "$RUN_ID" --watch --interval 30000Step 3: Confirm Action Status
步骤3:确认操作状态
bash
undefinedbash
undefinedConfirm action completed
Confirm action completed
STATUS=$(refly workflow detail "$RUN_ID" | jq -r '.payload.status')
echo "Action completed with status: $STATUS"
undefinedSTATUS=$(refly workflow detail "$RUN_ID" | jq -r '.payload.status')
echo "Action completed with status: $STATUS"
undefinedExpected Output
预期输出
- Type: API Response
- Format: JSON video/channel data
- Action: Confirm video uploaded or details retrieved
- 类型:API响应
- 格式:JSON格式的视频/频道数据
- 操作:确认视频已上传或详情已获取
Rules
规则
Follow base skill workflow:
~/.claude/skills/refly/SKILL.md遵循基础Skill工作流:
~/.claude/skills/refly/SKILL.md