SOP-24: Embed Video in Post
API SOPCreate a forum post with embedded YouTube/Vimeo video via iframe in HTML content.
1 nodes · 0 edgesmedirank
apisopmedirankpostsvideo
Visual
ex-sop-24-embed-video.osop.yaml
# 原始:SOP-24: 嵌入影片到文章
osop_version: '1.0'
id: sop-24-embed-video
name: 'SOP-24: Embed Video in Post'
description: Create a forum post with embedded YouTube/Vimeo video via iframe in HTML content.
version: 1.0.0
tags:
- api
- sop
- medirank
- posts
- video
nodes:
- id: step_1
type: api
subtype: rest
name: POST /posts
description: Create a forum post containing an embedded YouTube or Vimeo video via iframe in HTML content.
runtime:
method: POST
url: https://medi-rank.com/api/v1
endpoint: /posts
headers:
Authorization: Bearer ${secrets.TOKEN}
body:
title: My Treatment Video Share
content: |-
<p>Watch my recovery:</p><div class="video-embed"><iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe></div><p>This is day 3 post-treatment.</p>