add youtube embed endpoint

This commit is contained in:
Asim Aslam
2021-12-10 11:28:00 +00:00
parent 13dd1af1d4
commit 7d3bc9a5b2
4 changed files with 105 additions and 84 deletions

View File

@@ -1,5 +1,22 @@
{
"embed": [{
"title": "Embed a youtube video",
"run_check": false,
"description": "Embed a youtube video",
"request": {
"url": "https://www.youtube.com/watch?v=GWRWZu7XsJ0"
},
"response": {
{
"embed_url": "https://www.youtube.com/embed/GWRWZu7XsJ0",
"html_script": "<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/GWRWZu7XsJ0\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>",
"long_url": "https://www.youtube.com/watch?v=GWRWZu7XsJ0",
"short_url": "https://youtu.be/GWRWZu7XsJ0"
}
}
}],
"search": [{
"title": "Search for videos",
"run_check": false,