{"id":32490,"date":"2023-03-08T16:33:24","date_gmt":"2023-03-08T15:33:24","guid":{"rendered":"https:\/\/mimolive.com\/?post_type=user-manual&#038;p=32490"},"modified":"2024-10-08T11:01:10","modified_gmt":"2024-10-08T09:01:10","slug":"%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%e4%bd%bf%e7%94%a8%e7%a4%ba%e4%be%8b","status":"publish","type":"user-manual","link":"https:\/\/mimolive.com\/zh\/user-manual\/remote-control-automation\/http-api\/examples-of-api-usage\/","title":{"rendered":"API\u4f7f\u7528\u5b9e\u4f8b"},"content":{"rendered":"<h2 class=\"wp-block-heading\">\u5148\u51b3\u6761\u4ef6<\/h2>\n\n\n\n<p>- \u6253\u5f00\u4f60\u60f3\u5728mimoLive\u4e2d\u64cd\u4f5c\u7684\u6587\u4ef6\u3002<br>- \u786e\u4fdd\u6587\u6863\u5904\u4e8e\u5b8c\u6210\u72b6\u6001\uff0c\u8fd9\u6837\u50cfLayers\u8fd9\u6837\u7684API\u7aef\u70b9\u5c31\u4e0d\u4f1a\u518d\u6539\u53d8\u3002\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u4f60\u5220\u9664\u4e00\u4e2a\u56fe\u5c42\u5e76\u518d\u6b21\u6dfb\u52a0\u5b83\uff0c\u5f53\u901a\u8fc7API\u4e0e\u5b83\u5bf9\u8bdd\u65f6\uff0c\u8fd9\u4e2a\u56fe\u5c42\u5c06\u6709\u4e00\u4e2a\u4e0d\u540c\u7684\u56fe\u5c42ID\u3002\u7136\u800c\uff0c\u91cd\u65b0\u6392\u5e8f\u56fe\u5c42\u6216\u6dfb\u52a0\u56fe\u5c42\u53d8\u4f53\u4e0d\u4f1a\u6539\u53d8\u56fe\u5c42ID\u3002<br>- \u542f\u7528 <span class=\"caps\">HTTP<\/span>-\u670d\u52a1\u5668\u5728mimoLive\u8fdc\u7a0b\u63a7\u5236\u9996\u9009\u9879\u3002\u52fe\u9009 \"\u5141\u8bb8\u8fdc\u7a0b\u63a7\u5236\u8bbf\u95ee \"\u9009\u9879\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1000\" height=\"542\" src=\"https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/9e0a2b0b-6a64-4093-b15b-24aa12dead32.png\" alt=\"\" class=\"wp-image-32491\" style=\"width:570px;height:auto\" srcset=\"https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/9e0a2b0b-6a64-4093-b15b-24aa12dead32.png 1000w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/9e0a2b0b-6a64-4093-b15b-24aa12dead32-300x163.png 300w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/9e0a2b0b-6a64-4093-b15b-24aa12dead32-768x416.png 768w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/9e0a2b0b-6a64-4093-b15b-24aa12dead32-18x10.png 18w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>\u8bf7\u6ce8\u610f IP \u53f7\u6216 IP \u5730\u5740\u4e0e mimoLive \u7684\u7aef\u53e3\u53f7\uff0c\u4ee5\u4fbf\u5728\u4f7f\u7528\u65f6\u8fdb\u4e00\u6b65\u4f7f\u7528\u3002 <span class=\"caps\">HTTP<\/span> <span class=\"caps\">API<\/span>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8fdc\u7a0b\u63a7\u5236 mimoLive \u7684\u65b9\u6cd5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f7f\u7528\u9065\u63a7\u8868\u9762\u63a7\u5236 mimoLive<\/h3>\n\n\n\n<p>\u6700\u6709\u6548\u7684\u65b9\u6cd5\u662f\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49 <a href=\"https:\/\/mimolive.com\/zh\/%e7%94%a8%e6%88%b7%e6%89%8b%e5%86%8c\/%e4%bd%bf%e7%94%a8%e5%90%ab%e7%be%9e%e8%8d%89\/%e9%81%a5%e6%8e%a7%e8%a1%a8%e9%9d%a2\/\" data-type=\"user-manual\" data-id=\"31791\">\u9065\u63a7\u8868\u9762<\/a> \u60a8\u7684 mimoLive \u6587\u6863\u53ef\u4ee5\u5728 iPad\u3001iPhone \u6216\u4efb\u4f55\u5176\u4ed6\u5e26\u6709\u4e92\u8054\u7f51\u6d4f\u89c8\u5668\u7684\u8bbe\u5907\u4e0a\u8fd0\u884c\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7528 php \u63a7\u5236 mimoLive<\/h3>\n\n\n\n<p>\u6211\u4eec\u5728GitHub\u4e0a\u6709\u4e00\u4e2a\u8bb0\u5f55\u826f\u597d\u7684PHP\u811a\u672c\u6837\u672c\uff1a <br><a href=\"https:\/\/github.com\/boinx\/mimoLive-HTTP-Demo\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/boinx\/mimoLive-<span class=\"caps\">HTTP<\/span>-\u6f14\u793a<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u63a7\u5236mimoLive <span class=\"caps\">CURL<\/span><\/h3>\n\n\n\n<p>\u8981\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u63a7\u5236mimoLive <span class=\"caps\">HTTP<\/span> \u4f60\u53ef\u4ee5\u4f7f\u7528bash\u547d\u4ee4 \"curl\"\u3002\u4e3a\u4e86\u8ba9curl\u547d\u4ee4\u5de5\u4f5c\uff0c\u4f60\u9700\u8981\u627e\u5230\u4f60\u60f3\u64cd\u4f5c\u7684mimoLive\u6587\u6863\u7684ID\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7528\u81ea\u52a8\u5316\u5c42\u63a7\u5236mimoLive<\/h3>\n\n\n\n<p>\u01de\u01de\u01de <a href=\"https:\/\/mimolive.com\/zh\/%e7%94%a8%e6%88%b7%e6%89%8b%e5%86%8c\/%e8%87%aa%e5%8a%a8%e5%8c%96\/\">\u81ea\u52a8\u5316\u5c42<\/a> \u53ef\u4ee5\u6267\u884c\u4e00\u4e9b\u7b80\u5355\u7684\u547d\u4ee4\uff0c\u5728mimLive\u4e2d\u901a\u8fc7\u5b83\u4eec\u6765\u89e6\u53d1\u52a8\u4f5c\u3002 <span class=\"caps\">API<\/span> \u7aef\u70b9\u3002\u5b83\u4e5f\u6709\u4e00\u4e2ahttpRequest()\u547d\u4ee4\u6765\u6267\u884c\u4efb\u4f55\u7c7b\u578b\u7684 <span class=\"caps\">\u4e89\u53d6<\/span> \u8981\u6c42\u7684\u884c\u52a8 <span class=\"caps\">HTTP<\/span> <span class=\"caps\">API<\/span> \u662f\u6709\u80fd\u529b\u7684\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7528 Apple Script \u63a7\u5236 mimoLive<\/h3>\n\n\n\n<p>\u76ee\u524dmimoLive\u5e76\u4e0d\u652f\u6301Apple Script\u3002\u7136\u800c\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u53d8\u901a\u65b9\u6cd5\u6765\u8054\u7cfbmimoLive\uff1a\u5728apple script\u4e2d\u6709\u4e00\u4e2a \"do shell script \"\u547d\u4ee4\uff0c\u8ba9\u4f60\u6267\u884c\u50cf \"curl \"\u8fd9\u6837\u7684bash\u547d\u4ee4\u3002\u4e0a\u4e00\u8282\u89e3\u91ca\u4e86\u5982\u4f55\u521b\u5efa\u4e00\u4e2acurl\u547d\u4ee4\u6765\u64cd\u4f5c\u67d0\u4e2a\u56fe\u5c42\u6216\u56fe\u5c42\u503c\u3002<\/p>\n\n\n<section class=\"boinx_exclamation\">\n    <div class=\"main_div_exclamation\">\n        <div class=\"left_div_icon_exclamation\">\n                <i class=\"icon_exclamation\">\u2757<\/i>\n        <\/div>\n\n        <div class=\"right_div_text_exclamation\">\n                <div><p class=\"text_exclamation_headline\">\u82f9\u679c\u811a\u672c\u4e2d\u7684\u9677\u9631<\/p><\/div>\n                <div><p class=\"text_exclamation\">\u5728 Apple Script \u4e2d\uff0c\u5c06\u7c7b\u4f3c \"curl \"\u8fd9\u6837\u7684\u7ec8\u7aef\u547d\u4ee4\u79fb\u690d\u5230\u6267\u884c shell \u811a\u672c\u547d\u4ee4\u65f6\u6709\u4e24\u4e2a\u9677\u9631\uff1a1.\u6240\u6709\u7684\"\"\u90fd\u9700\u8981\u4ee5\\\u4e3a\u524d\u7f00\uff0c\u4ee5\u4fbf\u8ba9Apple\u811a\u672c\u89e3\u6790\u5668\u77e5\u9053\u8fd9\u4e9b\u4e0d\u662fdo shell\u811a\u672c\u547d\u4ee4\u7684\u7ed3\u675f\u6807\u8bb0\u3002\u8be5\u5b57\u7b26\u662f\u4e00\u4e2a\u8f6c\u4e49\u5b57\u7b26\uff0c\u7528\u4e8e\u544a\u8bc9\u89e3\u6790\u5668\u5ffd\u7565\u4e0b\u9762\u7684\u5b57\u7b26\u30022.2. \u5982\u679c\u4f60\u7528 &amp; \u6765\u8fde\u63a5\u591a\u4e2a\u6587\u672c\u90e8\u5206\uff0c\u90a3\u4e48\u5bf9\u4e8e\u82f9\u679c\u811a\u672c\u6765\u8bf4\uff0c\u8fd9\u5c31\u662f\u4e00\u4e2a \"\u6587\u672c\u5217\u8868\"\uff0c\u800c\u4e0d\u662f\u4e00\u4e2a\u5355\u72ec\u7684\u6587\u672c\u3002do shell\u547d\u4ee4\u65e0\u6cd5\u5904\u7406 \"\u6587\u672c\u5217\u8868\"\uff0c\u56e0\u6b64\u4f60\u9700\u8981\u5728curl\u547d\u4ee4\u6587\u672c\u672b\u5c3e\u6dfb\u52a0 \"as text\"\uff0c\u5c06\u5176\u8f6c\u6362\u56de\u5355\u4e00\u6587\u672c\u3002<\/p><\/div>\n        <\/div>    \n    <\/div>\n<\/section>\n\n\t\t<style>.boinx_exclamation {\n    margin:30px 0;\n    padding:10px;\n    background-color:rgb(242,222,222);\n    border-radius: 8px;\n}\n.icon_exclamation {\n    display:block;\n    padding:5px;\n    font-size:80px;\n    color:rgb(184,74,72);\n    line-height:60px;\n}\n.text_exclamation {\n    color:rgb(184,74,72);\n}\n\n.text_exclamation_headline{\n    font-weight:bold;\n    color:rgb(184,74,72);\n}\n\n\n.main_div_exclamation\n{\n    display:flex !IMPORTANT;\n    flex-wrap: wrap;\n    flex-direction: row;\n    justify-content : flex-start;\n    align-items : flex-start\n    align-content : flex-start;\n    \n}\n\n.left_div_icon_exclamation{\n    display:flex !IMPORTANT;\n    width:80px;\n    padding:10px;\n    margin:20px 20px 20px 0;\n    height:40px;\n}\n.right_div_text_exclamation{\n    display:flex !IMPORTANT;\n    flex-direction: column;\n    flex-grow: 1;\n    width:200px;\n    padding:10px;\n    margin:0;\n}<\/style>\n\t\t\n\n\n<p>\u4e00\u65e6\u4f60\u5bf9\u4f60\u7684curl\u547d\u4ee4\u611f\u5230\u6ee1\u610f\uff0c\u4f60\u9700\u8981\u5728Apple Script\u4e2d\u7528 \"do shell script \"\u547d\u4ee4\u6765\u5305\u88c5\u5b83\uff1a<\/p>\n\n\n<section class=\"boinx_section\">\n    <div class=\"main_div\">\n        <div class=\"left_div_icon\">\n                <i class=\"icon_highlight\">*<\/i>\n        <\/div>\n\n        <div class=\"right_div_text\">\n                <div><p class=\"text_highlight_headline\">\u8bf7\u786e\u4fdd\u5c06 xxxxxxxxx \u66ff\u6362\u4e3a\u60a8\u7684\u7279\u5b9a\u5c42 API \u7aef\u70b9\uff01<\/p><\/div>\n                <div><p class=\"text_highlight\"><\/p><\/div>\n        <\/div>    \n    <\/div>\n<\/section>\n\n\t\t<style>.boinx_section {\n    margin:30px 0;\n    padding:10px;\n    background-color:rgb(217,237,248);\n    border-radius: 8px;\n  \n}\n\n.icon_highlight {\n    display:block;\n    padding:5px;\n    font-size:80px;\n    color:rgb(58,134,172);\n    line-height:60px;\n}\n\n.text_highlight {\n    color:rgb(58,134,172);\n}\n\n.text_highlight_headline{\n    font-weight:bold;\n    color:rgb(58,134,172);\n}\n\n.main_div\n{\n    display:flex !IMPORTANT;\n    flex-wrap: wrap;\n    flex-direction: row;\n    justify-content : flex-start;\n    align-items : flex-start\n    align-content : flex-start;\n}\n.left_div_icon{\n    display:flex !IMPORTANT;\n    width:40px;\n    padding:0;\n    margin:10px 20px 10px 10px;\n    \n}\n.right_div_text{\n    display:flex !IMPORTANT;\n    flex-direction: column;\n    flex-grow: 1;\n    padding:10px;\n    margin:0;\n    width:200px;\n    }<\/style>\n\t\t\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>set layerAPIEndpoint to \"xxxxxxxxx\" -- in our example this would be \"http:\/\/172.28.30.202:8989\/api\/v1\/documents\/458706932\/layers\/BA868701-8131-49CB-8EDD-8C7E6E7CD60B\"\n\nset lowerThirdTitle to \"Hello World!\"\ndo shell script \"curl -d '{\\\"input-values\\\":{\\\"tvGroup_Content__Title\\\":\\\"\" &amp;amp; lowerThirdTitle &amp;amp; \"\\\"}}' -H \\\"Content-Type: application\/json\\\" -X PUT \\\"\" &amp;amp; layerAPIEndpoint &amp;amp; \"\\\"\" as text\n\n<\/code><\/pre>\n\n\n\n<p>\u4e0b\u9762\u7684\u82f9\u679c\u811a\u672c\u4f8b\u5b50\u663e\u793a\u4e86\u5982\u4f55\u5728\u6bcf\u534a\u5c0f\u65f6\u7684\u65f6\u95f4\u91cc\u6253\u5f00\u4e00\u4e2a\u56fe\u5c42\uff1a\u8fd9\u5bf9\u5546\u4e1a\u8986\u76d6\u6765\u8bf4\u662f\u5f88\u6709\u7528\u7684\u3002\u8bf7\u786e\u4fdd\u4f7f\u7528\u4e00\u4e2a\u5728\u4e00\u5b9a\u65f6\u95f4\u540e\u4f1a\u81ea\u52a8\u5173\u95ed\u7684\u56fe\u5c42\uff08\u4f8b\u5982\uff0c\u5177\u6709\u975e\u5faa\u73af\u7535\u5f71\u6e90\u7684Placer\u56fe\u5c42\u4f1a\u8fd9\u6837\u505a\uff09\u3002<\/p>\n\n\n<section class=\"boinx_section\">\n    <div class=\"main_div\">\n        <div class=\"left_div_icon\">\n                <i class=\"icon_highlight\">*<\/i>\n        <\/div>\n\n        <div class=\"right_div_text\">\n                <div><p class=\"text_highlight_headline\">\u8bf7\u786e\u4fdd\u5c06 xxxxxxxxx \u66ff\u6362\u4e3a\u60a8\u7684\u7279\u5b9a\u5c42 API \u7aef\u70b9\uff01<\/p><\/div>\n                <div><p class=\"text_highlight\"><\/p><\/div>\n        <\/div>    \n    <\/div>\n<\/section>\n\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>-- configure your Layer API Endpoint:\nset layerAPIEndpoint to \"xxxxxxxxx\" -- in our example this would be \"http:\/\/172.28.30.202:8989\/api\/v1\/documents\/458706932\/layers\/BA868701-8131-49CB-8EDD-8C7E6E7CD60B\"\n-- repeat endlessly:\nrepeat\n\t-- get the seconds last in this hour\n\tset currentDate to current date\n\tset secondsToNextHour to 3600 - ((minutes of currentDate) * 60 + (seconds of currentDate))\n\t-- --------------------------------------------\n\t-- The following code snippet is useful only if you want to\n\t-- switch the layer live on half hours also.\n\t-- if you don't want this behaviour you can delete this part.\n\t-- --------------------------------------------\n\t-- check if we are currently in the first half of the hour\n\tif secondsToNextHour &amp;gt; 1800 then\n\t\t-- yes, we are in the first half of the hour, so only wait half the time\n\t\tset secondsToNextHour to secondsToNextHour - 1800\n\tend if\n\t-- --------------------------------------------\n\t-- wait until the time to trigger the layer\n\tdelay secondsToNextHour\n\t-- set the specified layer to live:\n\tdo shell script \"curl \\\"\" &amp;amp; layerAPIEndpoint &amp;amp; \"\/setLive\\\"\" as text\n\t-- wait a couple of seconds to make sure we don't glitch in time\n\tdelay 5\nend repeat\n\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728 mimoLive \u4e2d\u63a7\u5236\u7528\u6237\u754c\u9762\u5143\u7d20<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u83b7\u5f97\u4e00\u4e2a <span class=\"caps\">API<\/span> \u7aef\u70b9<\/h3>\n\n\n\n<p><\/p>\n\n\n\n<p>API \u7aef\u70b9\u5bf9\u4e8e\u5904\u7406 mimoLive \u6587\u6863\u4e2d\u7684\u7279\u5b9a\u5143\u7d20\u81f3\u5173\u91cd\u8981\u3002\u6709\u5173\u53ef\u7528 API \u7aef\u70b9\u7684\u5217\u8868\uff0c\u8bf7\u53c2\u9605 <a href=\"https:\/\/mimolive.com\/zh\/%e7%94%a8%e6%88%b7%e6%89%8b%e5%86%8c\/%e5%ae%9a%e5%88%b6\/http-api\/%e7%ab%af%e7%82%b9\/\" data-type=\"user-manual\" data-id=\"32488\">\u5e94\u7528\u7a0b\u5e8f\u63a5\u53e3\u7aef\u70b9<\/a>.<br><br>\u5728mimoLive 5.5\u4e4b\u524d\uff0c\u5f88\u96be\u901a\u8fc7\u7ec8\u7aef\u547d\u4ee4\u6765\u83b7\u5f97\u6587\u4ef6ID\u548c\u6bd4\u5982\u8bf4\u5c42\u7684ID\uff0c\u901a\u8fc7\u957f\u957f\u7684\u547d\u4ee4\u6765\u5bfb\u627e <span class=\"caps\">JSON<\/span> \u6570\u636e\u3002\u4ecemimoLive 5.5\u5f00\u59cb\uff0c\u8fd9\u5c31\u5bb9\u6613\u591a\u4e86\uff1a<\/p>\n\n\n\n<p>\u9996\u5148\uff0c\u590d\u5236mimoLive <span class=\"caps\">HTTP<\/span> \u670d\u52a1\u5668\u57fa\u5730 <span class=\"caps\">URL<\/span> \u4ecemimoLive\u504f\u597d\u7a97\u53e3\u7684\u8fdc\u7a0b\u63a7\u5236\u90e8\u5206\uff08\u89c1\u4e0a\u9762\u7684\u622a\u56fe\uff09\u3002\u6253\u5f00\u4e00\u4e2a\u6587\u672c\u7f16\u8f91\u5668\uff08\u4f8b\u5982\u82f9\u679c\u7684TextEdit\uff09\u5e76\u5c06\u526a\u8d34\u677f\u7684\u5185\u5bb9\u7c98\u8d34\u5230\u4e00\u4e2a\u65b0\u521b\u5efa\u7684\u6587\u672c\u6587\u4ef6\u3002\u8bf7\u786e\u4fdd\uff0c\u6709 <strong>\u4e0d<\/strong> \u7684\u672b\u5c3e\u7684\u53cd\u659c\u6760\u3002 <span class=\"caps\">URL<\/span>!\u7ed3\u679c\u5e94\u8be5\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>http:&#47;&#47;172.28.30.202:8989<\/code><\/pre>\n\n\n\n<p>\u5728mimoLive\u6587\u6863\u7a97\u53e3\u7528\u4f60\u7684\u9f20\u6807\uff0c\u4f60\u53ef\u4ee5\u53f3\u51fb\uff08\u6216\u63a7\u5236\u70b9\u51fb\uff0c\u6216\u53cc\u6307\u70b9\u51fb\uff09\u611f\u5174\u8da3\u7684\u5bf9\u8c61\uff08\u4f8b\u5982\u4e00\u4e2a\u56fe\u5c42\uff0c\u4e00\u4e2a\u6e90\uff0c\u4e00\u4e2a\u56fe\u5c42\u63a7\u4ef6\u7684\u6309\u94ae\uff09\u6765\u83b7\u5f97\u4e00\u4e2a\u4e0a\u4e0b\u6587\u83dc\u5355\u3002\u6709\u4e00\u4e2a\u83dc\u5355\u9879\uff0c\u53ef\u4ee5\u8ba9\u4f60\u590d\u5236 <span class=\"caps\">API<\/span> \u5728\u4f60\u7684 mimoLive \u4e2d\u4f7f\u7528 macOS \u526a\u8d34\u677f\u7684\u7aef\u70b9 <span class=\"caps\">API<\/span> \u9879\u76ee\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"1000\" height=\"740\" src=\"https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/bc6c7e19-e991-48a0-a9b8-b56d690f19b4.png\" alt=\"\" class=\"wp-image-32492\" style=\"width:501px;height:auto\" srcset=\"https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/bc6c7e19-e991-48a0-a9b8-b56d690f19b4.png 1000w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/bc6c7e19-e991-48a0-a9b8-b56d690f19b4-300x222.png 300w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/bc6c7e19-e991-48a0-a9b8-b56d690f19b4-768x568.png 768w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/bc6c7e19-e991-48a0-a9b8-b56d690f19b4-16x12.png 16w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>\u6709\u65f6\uff0c\u89e3\u51b3\u4e00\u4e2a\u7279\u5b9a\u7684\u56fe\u5c42\u53d8\u4f53\u800c\u4e0d\u662f\u4e00\u822c\u7684\u56fe\u5c42\u662f\u5f88\u91cd\u8981\u7684\u3002\u5982\u679c\u4f60\u53f3\u952e\u70b9\u51fb\u4e00\u4e2a\u56fe\u5c42\u7684\u53c2\u6570\uff0c\u4f60\u4f1a\u770b\u5230\u6709\u4e0d\u540c\u7684 <span class=\"caps\">API<\/span> \u5f53\u524d\u6d3b\u5c42\u6216\u7279\u5b9a\u5c42\u53d8\u4f53\u7684\u7aef\u70b9\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1000\" height=\"356\" src=\"https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/6120370f-a575-43db-891b-ef3a91d5aec5.png\" alt=\"\" class=\"wp-image-32493\" srcset=\"https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/6120370f-a575-43db-891b-ef3a91d5aec5.png 1000w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/6120370f-a575-43db-891b-ef3a91d5aec5-300x107.png 300w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/6120370f-a575-43db-891b-ef3a91d5aec5-768x273.png 768w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/6120370f-a575-43db-891b-ef3a91d5aec5-18x6.png 18w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p>\u56de\u5230\u4f60\u7684\u6587\u672c\u7f16\u8f91\u5668\u4e2d\uff0c\u7c98\u8d34\u521a\u521a\u590d\u5236\u7684 <span class=\"caps\">API<\/span> \u540e\u7684\u7aef\u70b9\u3002 <span class=\"caps\">HTTP<\/span> \u670d\u52a1\u5668\u57fa\u7840 <span class=\"caps\">URL<\/span>.\u73b0\u5728 <span class=\"caps\">URL<\/span> \u5728\u4f60\u7684\u6587\u672c\u6d4f\u89c8\u5668\u4e2d\uff0c\u5e94\u8be5\u770b\u8d77\u6765\u50cf\u8fd9\u6837\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>http:&#47;&#47;172.28.30.202:8989\/api\/v1\/documents\/458706932\/layers\/BA868701-8131-49CB-8EDD-8C7E6E7CD60B<\/code><\/pre>\n\n\n\n<p>\u8fd9\u662f\u6700\u540e <span class=\"caps\">API<\/span> \u7aef\u70b9\u6765\u89e3\u51b3\u4f60\u6587\u6863\u4e2d\u7684\u4e00\u4e2a\u5c42\u3002\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d <strong>458706932<\/strong> \u662f\u6587\u4ef6\u7684ID\uff0c\u800c <strong>BA868701-8131-49CB-8EDD-8C7E6E7CD60B<\/strong> \u662f\u672c\u6587\u4ef6\u4e2d\u67d0\u4e00\u56fe\u5c42\u7684\u5177\u4f53\u56fe\u5c42ID\u3002<\/p>\n\n\n\n<p>\u53f3\u952e\u5355\u51fb\u67d0\u4e9b\u7528\u6237\u754c\u9762\u5143\u7d20\u53ef\u663e\u793a\u4e00\u4e2a\u4e0a\u4e0b\u6587\u83dc\u5355\uff0c\u7528\u4e8e\u83b7\u53d6\u7279\u5b9a\u7684\u5e94\u7528\u7a0b\u5e8f\u63a5\u53e3\u7aef\u70b9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8d44\u6599\u6765\u6e90<\/li>\n\n\n\n<li>\u5206\u5c42<\/li>\n\n\n\n<li>\u56fe\u5c42\u53d8\u4f53<\/li>\n\n\n\n<li>\u5c42\u53c2\u6570<\/li>\n\n\n\n<li>\u8f93\u51fa\u76ee\u7684\u5730<\/li>\n\n\n\n<li>\u56fe\u5c42\u7ec4<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"266\" src=\"https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.19.00-1024x266.png\" alt=\"\" class=\"wp-image-39712\" style=\"width:575px;height:auto\" srcset=\"https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.19.00-1024x266.png 1024w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.19.00-300x78.png 300w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.19.00-768x199.png 768w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.19.00-18x5.png 18w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.19.00.png 1132w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e3e\u4f8b\u8bf4\u660e\uff1a\u5f00\u542f\u548c <span class=\"caps\">\u5173\u95ed<\/span> A\u5c42<\/h3>\n\n\n\n<p>\u7528\u68c0\u7d22\u5230\u7684 <span class=\"caps\">API<\/span> \u67d0\u4e2a\u5c42\u7684\u7aef\u70b9\uff0c\u4f60\u53ef\u4ee5\u7528\u4ee5\u4e0b\u7ec8\u7aef\u547d\u4ee4\u6765\u5207\u6362\u5b83\u7684\u5f00\u542f\u548c\u5173\u95ed\u3002<\/p>\n\n\n<section class=\"boinx_section\">\n    <div class=\"main_div\">\n        <div class=\"left_div_icon\">\n                <i class=\"icon_highlight\">*<\/i>\n        <\/div>\n\n        <div class=\"right_div_text\">\n                <div><p class=\"text_highlight_headline\"><\/p><\/div>\n                <div><p class=\"text_highlight\">\u8bf7\u786e\u4fdd\u5c06xxxxxxxx\u66ff\u6362\u4e3a\u4e0a\u4e00\u6b65\u7684API\u7aef\u70b9!<\/p><\/div>\n        <\/div>    \n    <\/div>\n<\/section>\n\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>curl xxxxxxxxx\/setLive\ncurl xxxxxxxxx\/setOff\ncurl xxxxxxxxx\/toggleLive\n# our example will look like this:\ncurl http:\/\/172.28.30.202:8989\/api\/v1\/documents\/458706932\/layers\/BA868701-8131-49CB-8EDD-8C7E6E7CD60B\/setLive<\/code><\/pre>\n\n\n<section class=\"boinx_section\">\n    <div class=\"main_div\">\n        <div class=\"left_div_icon\">\n                <i class=\"icon_highlight\">*<\/i>\n        <\/div>\n\n        <div class=\"right_div_text\">\n                <div><p class=\"text_highlight_headline\">\u8fd9\u4e9bURLs\u5728\u4e92\u8054\u7f51\u6d4f\u89c8\u5668\u4e2d\u4e5f\u53ef\u4ee5\u4f7f\u7528<\/p><\/div>\n                <div><p class=\"text_highlight\">\u8fd9\u4e9bURL\uff08\u6ca1\u6709 \"curl \"\u547d\u4ee4\uff09\u4e5f\u53ef\u4ee5\u653e\u5230\u4e92\u8054\u7f51\u6d4f\u89c8\u5668\u7684\u5730\u5740\u680f\u4e2d\u3002\u4e00\u65e6\u4f60\u70b9\u51fb\u8fd4\u56de\uff0c\u6d4f\u89c8\u5668\u5c06\u8c03\u7528mimoLive HTTP\u670d\u52a1\u5668\u5e76\u6267\u884c\u4f60\u6307\u5b9a\u7684\u547d\u4ee4\u3002\u5982\u679c\u4f60\u6709JSON\u6570\u636e\u9700\u8981\u53d1\u9001\u5230API\u7aef\u70b9\uff0c\u4f60\u4e5f\u53ef\u4ee5\u628a\u5b83\u6dfb\u52a0\u5230URL\u4e2d\uff0c\u89c1\u4e0b\u9762\u7684 \"\u5c06\u5e26\u6709JSON\u6570\u636e\u7684CURL\u547d\u4ee4\u8f6c\u6362\u4e3a\u7b80\u5355\u7684HTTP\u8bf7\u6c42\u7684HTTP URL\"\u3002<\/p><\/div>\n        <\/div>    \n    <\/div>\n<\/section>\n\n\n\n\n<p>\u8981\u83b7\u53d6\u5c06\u56fe\u5c42\u5b9e\u65f6\u72b6\u6001\u5207\u6362\u4e3a\u6253\u5f00\u6216\u5173\u95ed\u7684\u5b8c\u6574 HTTP URL\uff0c\u4e00\u4e2a\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u53f3\u952e\u5355\u51fb\u56fe\u5c42\u7684 \"\u5b9e\u65f6 \"\u6309\u94ae\u4ee5\u663e\u793a\u4e0a\u4e0b\u6587\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9 \"\u590d\u5236 URL \u4ee5\u8bbe\u7f6e\u56fe\u5c42\u5b9e\u65f6\"\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u5c06 URL \u590d\u5236\u5230\u526a\u8d34\u677f\u4e0a\uff0c\u4ee5\u4f9b\u4f7f\u7528\u3002\u5728\u622a\u56fe\u4e2d\uff0c\u60a8\u53ef\u4ee5\u770b\u5230 Lower Third \u56fe\u5c42\u5b9e\u65f6\u6309\u94ae\u7684\u4e0a\u4e0b\u6587\u83dc\u5355\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"249\" src=\"https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.13.16-1024x249.png\" alt=\"\" class=\"wp-image-39711\" style=\"width:643px;height:auto\" srcset=\"https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.13.16-1024x249.png 1024w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.13.16-300x73.png 300w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.13.16-768x187.png 768w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.13.16-18x4.png 18w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.13.16.png 1174w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u793a\u4f8b\uff1a\u66f4\u6539\u56fe\u5c42\u503c<\/h3>\n\n\n\n<p>- \u4e00\u4e2a\u5c42\u7684\u6240\u6709\u53c2\u6570\u90fd\u53ef\u4ee5\u901a\u8fc7 <span class=\"caps\">HTTP<\/span> <span class=\"caps\">API<\/span>.\u4f60\u9700\u8981\u627e\u5230\u6b63\u786e\u7684\u952e\uff0c\u4ee5\u4fbf\u8bbe\u7f6e\u4e00\u4e2a\u65b0\u7684\u503c\u3002\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5c06\u8bbe\u7f6e\u4e00\u4e2a\u540d\u4e3a \"Title \"\u7684\u5b57\u7b26\u4e32\u3002 <a href=\"https:\/\/mimolive.com\/zh\/%e7%94%a8%e6%88%b7%e6%89%8b%e5%86%8c\/%e4%b8%8b%e4%b8%89%e5%88%86%e4%b9%8b%e4%b8%80\/\">\u4e0b\u4e09\u5c42<\/a> \u4e0e\u952e\u503ctvGroup_Content__Title\u3002\u56e0\u4e3a\u6211\u4eec\u9700\u8981\u5c06\u65b0\u7684\u503c\u5728\u4e00\u4e2a <span class=\"caps\">JSON<\/span> \u6587\u4ef6\u5230 <span class=\"caps\">HTTP<\/span> \u7684\u670d\u52a1\u5668\u4e0a\u6709\u4e00\u4e2a <span class=\"caps\">\u62e8\u51fa<\/span> \u8bf7\u6c42curl\u547d\u4ee4\u53d8\u5f97\u6709\u70b9\u62e5\u6324\u3002<\/p>\n\n\n\n<p><i>*<\/i>\u8bf7\u786e\u4fdd\u7528\u4f60\u7684\u7279\u5b9a\u5c42\u66ff\u6362xxxxxxxx\u3002 <span class=\"caps\">API<\/span> \u7aef\u70b9!<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>curl -d '{\"input-values\":{\"tvGroup_Content__Title\":\"My new title\"}}' -H \"Content-Type: application\/json\" -X PUT \"xxxxxxxxx\"\n<\/code><\/pre>\n\n\n\n<p>\u83b7\u53d6\u5b8c\u6574 HTTP URL \u4ee5\u89e6\u53d1\u56fe\u5c42\u5c5e\u6027\u66f4\u65b0\u7684\u5feb\u901f\u65b9\u6cd5\u662f\u53f3\u952e\u5355\u51fb\u5c5e\u6027\u540d\u79f0\uff0c\u663e\u793a\u4e0a\u4e0b\u6587\u83dc\u5355\uff0c\u7136\u540e \u9009\u62e9 \"\u590d\u5236 URL \u4ee5\u66f4\u6539'.....'\"\u3002\"\u8be5\u83dc\u5355\u547d\u4ee4\u53ef\u5c06 HTTP URL \u590d\u5236\u5230\u526a\u8d34\u677f\uff0c\u5f53\u8c03\u7528\u8be5 URL \u65f6\uff08\u4f8b\u5982\u5728 Internet \u6d4f\u89c8\u5668\u4e2d\uff09\uff0c\u5c06\u628a\u5c5e\u6027\u8bbe\u7f6e\u4e3a\u5f53\u524d\u503c\u3002\u901a\u8fc7\u68c0\u67e5 URL\uff0c\u4f60\u53ef\u4ee5\u786e\u5b9a\u9700\u8981\u4fee\u6539\u5176\u4e2d\u7684\u54ea\u4e00\u90e8\u5206\uff0c\u4ee5\u4fbf\u5411\u8be5\u5c5e\u6027\u53d1\u9001\u81ea\u5df1\u7684\u6570\u636e\u3002\u5728\u622a\u56fe\u4e2d\uff0c\u60a8\u53ef\u4ee5\u770b\u5230\u590d\u5236 URL \u4ee5\u66f4\u6539 Lower Third \u56fe\u5c42\u5b57\u5e55\u7684\u4e0a\u4e0b\u6587\u83dc\u5355\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"752\" height=\"334\" src=\"https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.05.39.png\" alt=\"\" class=\"wp-image-39708\" style=\"width:349px;height:auto\" srcset=\"https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.05.39.png 752w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.05.39-300x133.png 300w,  https:\/\/mimolive.com\/wp-content\/uploads\/2023\/03\/Screenshot-2024-10-08-at-10.05.39-18x8.png 18w\" sizes=\"(max-width: 752px) 100vw, 752px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>http:\/\/127.0.0.1:8989\/api\/v1\/documents\/xxxxxxxxxxxx\/layers\/yyyyyyyyyyyy\/variants\/zzzzzzzzzzzz?include=data.attributes.input-values&amp;fields&#91;input-values]=tvGroup_Content__Subtitle&amp;update=%7B%22input-values%22:%7B%22tvGroup_Content__Subtitle%22:%22<strong>mimoLive%20User<\/strong>%22%7D%7D<\/code><\/pre>\n\n\n<section class=\"boinx_exclamation\">\n    <div class=\"main_div_exclamation\">\n        <div class=\"left_div_icon_exclamation\">\n                <i class=\"icon_exclamation\">\u2757<\/i>\n        <\/div>\n\n        <div class=\"right_div_text_exclamation\">\n                <div><p class=\"text_exclamation_headline\">URL \u4e2d\u7684\u65b0\u503c\u5fc5\u987b\u4f7f\u7528 URL \u7f16\u7801\uff01<\/p><\/div>\n                <div><p class=\"text_exclamation\">\u5728\u672c\u4f8b\u4e2d\uff0c\"mimoLive \"\u548c \"\u7528\u6237 \"\u4e4b\u95f4\u7684\u7a7a\u683c\u7f16\u7801\u4e3a<\/p><\/div>\n        <\/div>    \n    <\/div>\n<\/section>\n\n\n\n\n<h2 class=\"wp-block-heading\">\u6700\u4f73\u505a\u6cd5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u6536\u96c6\u6709\u7528\u7684 <span class=\"caps\">API<\/span> \u4f9b\u4f60\u63a2\u7d22\u7684\u547d\u4ee4<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">\u8bbe\u7f6e <span class=\"caps\">RTMP<\/span> <span class=\"caps\">URL<\/span> \u548c\u5b9e\u65f6\u6d41\u5a92\u4f53\u8f93\u51fa\u76ee\u7684\u5730\u7684\u6d41\u5a92\u4f53\u5bc6\u94a5\uff1a<\/h4>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>curl --data '{\"data\": { \"attributes\": {\"settings\": {\"rtmpurl\":\"rtmp:\/\/mystreaminghost.com\", \"streamingkey\":\"<strong>MYTOTALLYSECRETSTREAMKEY<\/strong>\"} } } }' --request PATCH http:\/\/192.168.0.100:8989\/api\/v1\/documents\/xxxxxxxxx\/output-destinations\/yyyyyyyyyyyyy<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u8bbe\u7f6e\u6587\u4ef6\u5199\u5165\u5668\u8f93\u51fa\u76ee\u7684\u5730\u7684\u6587\u4ef6\u540d\u548c\u8def\u5f84<\/h4>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>curl --data '{\"data\": { \"attributes\": {\"settings\": { \"location\": \"<strong>~\/Destktop\/Recordings<\/strong>\", \"filename\": \"<strong>MyGreatShow %year-%month-%day-%hour-%minute.%extension<\/strong>\" } } } }' --request PATCH http:\/\/192.168.0.100:8989\/api\/v1\/documents\/xxxxxxxxxxxx\/output-destinations\/yyyyyyyyyyyy<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u8bbe\u7f6e\u4e00\u4e2a\u94fa\u57ab\u5c42\u7684\u89c6\u9891\u6e90<\/h4>\n\n\n\n<p>yyyyyyyyyyyyy\u5c06\u662f <span class=\"caps\">UUID<\/span> \u7684\u89c6\u9891\u6e90\u3002(e.g CCAF4418-367A-415F-AD25-6536C3EF3512)<\/p>\n\n\n\n<p>xxxxxxxxxxxxx\u5c06\u662f <span class=\"caps\">API<\/span> \u67d0\u5c42\u53d8\u4f53\u7684\u7aef\u70b9\u3002(e.g. http:\/\/172.28.30.202:8989\/api\/v1\/documents\/2014814935\/layers\/BA868701-8131-49CB-8EDD-8C7E6E7CD60B\/variants\/AA868701-8131-49CB-8EDD-8C7E6E7CD60A)<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>curl -d '{\"input-values\":{\"tvIn_VideoSourceAImage\":\"yyyyyyyyyyyyy\"}}' -H \"Content-Type: application\/json\" -X PUT \"xxxxxxxxxxxxxxxx\"<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u8bbe\u7f6e\u6709\u97f3\u9891\u97f3\u91cf\u65cb\u94ae\u7684\u56fe\u5c42\u7684\u97f3\u91cf<\/h4>\n\n\n\n<p>\u7528\u8fd9\u4e2acurl\u547d\u4ee4\uff0c\u4f60\u53ef\u4ee5\u6539\u53d8\u4e00\u4e2a\u6709\u97f3\u9891\u8c03\u8282\u65cb\u94ae\u7684\u56fe\u5c42\u7684\u97f3\u9891\u97f3\u91cf\uff08\u5982 <a href=\"https:\/\/mimolive.com\/zh\/%e7%94%a8%e6%88%b7%e6%89%8b%e5%86%8c\/%e6%a0%87%e9%87%91\/\">\u6d46\u679c\u5c42<\/a>).\u91cf \"\u7684\u503c\u53ef\u4ee5\u4ece0.0\u52301.0\u3002<\/p>\n\n\n\n<p>xxxxxxxxxxxxx\u5c06\u662f <span class=\"caps\">API<\/span> \u5c42\u7684\u7aef\u70b9\uff08\u5982http:\/\/10.101.2.2:8989\/api\/v1\/documents\/13195157\/layers\/BA868701-8131-49CB-8EDD-8C7E6E7CD60B\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>curl -d '{\"volume\": 0.5}' -H \"Content-Type: application\/json\" -X PUT \"xxxxxxxxxxxxxxxx\"<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u8bbe\u7f6e\u80cc\u666f\u5c42\u7684\u989c\u8272<\/h4>\n\n\n\n<p>xxxxxxxxxxxxx\u5c06\u662f <span class=\"caps\">API<\/span> \u67d0\u5c42\u53d8\u4f53\u7684\u7aef\u70b9\u3002(e.g. http:\/\/172.28.30.202:8989\/api\/v1\/documents\/2014814935\/layers\/BA868701-8131-49CB-8EDD-8C7E6E7CD60B\/variants\/AA868701-8131-49CB-8EDD-8C7E6E7CD60A)<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>curl -d '{\"input-values\":{\"tvGroup_Appearance__Color_1\":{\"red\": 1.0, \"blue\": 0.5, \"green\": 0, \"alpha\": 0.5}}}' -H \"Content-Type: application\/json\" -X PUT \"xxxxxxxxxxxxxxxx\"<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6e05\u9664\u6700\u540e\u5f55\u5236\u7684\u89c6\u9891\u6e90\u7684\u6587\u4ef6\u8def\u5f84<\/h4>\n\n\n\n<p>\u5728\u4f60\u7684 <a href=\"https:\/\/mimolive.com\/zh\/%e7%94%a8%e6%88%b7%e6%89%8b%e5%86%8c\/%e8%b5%84%e6%ba%90%e5%92%8c%e8%b5%84%e6%ba%90%e5%ba%93\/\">\u8d44\u6e90\u5e93<\/a>\uff0c\u4f60\u53ef\u4ee5\u6709\u4e00\u4e2a <a href=\"https:\/\/mimolive.com\/zh\/%e7%94%a8%e6%88%b7%e6%89%8b%e5%86%8c\/%e6%9c%80%e5%90%8e%e5%bd%95%e9%9f%b3%e6%9d%a5%e6%ba%90\/\">\u6700\u540e\u7684\u8bb0\u5f55\u6765\u6e90<\/a> \u8fd9\u5c06\u63d0\u4f9b\u5bf9\u4efb\u4f55\u6587\u4ef6\u8bb0\u5f55\u8f93\u51fa\u76ee\u7684\u5730\u5c06\u5ba3\u5e03\u7684\u6700\u65b0\u8bb0\u5f55\u7684\u8bbf\u95ee\u3002\u5728\u81ea\u52a9\u670d\u52a1\u7ad9\u7684\u5e94\u7528\u4e2d\uff0c\u5c06\u6709\u5fc5\u8981\u6e05\u9664\u6700\u540e\u7684\u5f55\u97f3\u8def\u5f84\uff0c\u4ee5\u4fbf\u8be5\u7ad9\u7684\u4e0b\u4e00\u4e2a\u7528\u6237\u4e0d\u80fd\u591f\u5ba1\u67e5\u524d\u4e00\u4e2a\u7528\u6237\u7684\u5f55\u97f3\u3002\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f <a href=\"https:\/\/mimolive.com\/zh\/%e7%94%a8%e6%88%b7%e6%89%8b%e5%86%8c\/%e8%87%aa%e5%8a%a8%e5%8c%96\/\">\u81ea\u52a8\u5316\u5c42\u547d\u4ee4<\/a> \u4f60\u53ef\u4ee5\u4ece\u6700\u540e\u7684\u5f55\u97f3\u6e90\u4e2d\u6e05\u9664\u8fd9\u4e9b\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>httpRequest(http:\/\/127.0.0.1:8989\/api\/v1\/documents\/2014814935\/sources\/2014814935-413AC0A3-AC43-4A7D-A228-6D0181BF1476?update=%7B%22filepath%22%3A%22%22%7D)<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u50a8\u5b58 <span class=\"caps\">JSON<\/span> mimoLive\u6587\u4ef6\u4e2d\u7684\u6570\u636e<\/h4>\n\n\n\n<p>\u901a\u8fc7 \"datastores \"\u7aef\u70b9\uff0c\u4f60\u53ef\u4ee5\u5728mimoLive\u6587\u6863\u4e2d\u5b58\u50a8\u4efb\u4f55\u7c7b\u578b\u7684\u6570\u636e\uff0c\u4ee5\u4fbf\u5728\u6587\u6863\u91cd\u65b0\u52a0\u8f7d\u65f6\u4fdd\u6301\u5b83\u3002\u4f60\u9700\u8981\u4f7f\u7528\u4e00\u4e2a\"<span class=\"caps\">\u62e8\u51fa<\/span>\"\u8bf7\u6c42\u6765\u4fdd\u5b58\u6570\u636e\uff0c\u4ee5\u53ca\u4e00\u4e2a\"<span class=\"caps\">\u4e89\u53d6<\/span>\"\u8bf7\u6c42\u6765\u8bfb\u56de\u5b83\u3002\u4f60\u53ef\u4ee5\u5b58\u50a8\u4efb\u4f55\u7c7b\u578b\u7684\u6570\u636e\uff0c\u4f46\u662f\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5b58\u50a8\u7684\u662f <span class=\"caps\">JSON<\/span> \u6570\u636e\uff0c\u56e0\u4e3a\u8fd9\u4f3c\u4e4e\u662f\u4e00\u4e2a\u975e\u5e38\u666e\u904d\u7684\u4f7f\u7528\u60c5\u51b5\u3002\u5982\u679c\u4f60\u60f3\u5b58\u50a8\u4e0d\u540c\u7684\u6570\u636e\uff0c\u4f60\u9700\u8981\u76f8\u5e94\u5730\u8c03\u6574-H\u53c2\u6570\u3002<\/p>\n\n\n\n<p>Curl\u547d\u4ee4\u6765\u5b58\u50a8\u6570\u636e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>curl \u2014data '{\"myData1\": 1.5, \"myData2\":\"Some text\"}' -H \"Content-Type: application\/json\" -X PUT http:\/\/127.0.0.1:8989\/api\/v1\/documents\/1643911183\/datastores\/myDataStore1<\/code><\/pre>\n\n\n\n<p>Curl\u547d\u4ee4\u6765\u8bfb\u56de\u6570\u636e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>curl -X <span class=\"caps\">GET<\/span> http:\/\/127.0.0.1:8989\/api\/v1\/documents\/1643911183\/datastores\/myDataStore1<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u66f4\u65b0\u5a92\u4f53\u6587\u4ef6\u6e90\u7684\u6e90\u6587\u4ef6\u8def\u5f84<\/h4>\n\n\n\n<p>\u4f60\u53ef\u80fd\u60f3\u4ea4\u6362\u6240\u64ad\u653e\u7684\u7535\u5f71\uff0c\u6216\u7528\u4e00\u4e2a\u5e7f\u544a\u6765\u53d6\u4ee3\u6240\u663e\u793a\u7684\u5e7f\u544a\u3002 <a href=\"https:\/\/mimolive.com\/zh\/%e7%94%a8%e6%88%b7%e6%89%8b%e5%86%8c\/%e5%aa%92%e4%bd%93%e6%96%87%e4%bb%b6\/\">\u5a92\u4f53\u6587\u4ef6\u6765\u6e90<\/a>.\u8fd9\u53ef\u4ee5\u901a\u8fc7\u5728\u6e90\u7801\u4e0a\u6267\u884c\u66f4\u65b0\u547d\u4ee4\u6765\u5b8c\u6210 <span class=\"caps\">API<\/span> \u7aef\u70b9\u3002<\/p>\n\n\n\n<p>\u786e\u4fdd\u5a92\u4f53\u6e90\u7684\u6587\u4ef6\u53c2\u8003\u6a21\u5f0f\u88ab\u8bbe\u7f6e\u4e3a \"\u7edd\u5bf9\u8def\u5f84\"\u3002\u83b7\u53d6 <span class=\"caps\">API<\/span> \u901a\u8fc7\u5728\u5de6\u680f\u4e2d\u53f3\u952e\u5355\u51fb\u8be5\u6e90\uff0c\u5e76\u9009\u62e9 \"\u590d\u5236\u6e90\u7684 <span class=\"caps\">API<\/span> \u4e0a\u4e0b\u6587\u83dc\u5355\u4e2d\u7684 \"\u7aef\u70b9\u5230\u526a\u8d34\u677f\"\u3002\u521b\u4f5c\u4e00\u4e2a <span class=\"caps\">URL<\/span> \u7684\u5f62\u5f0f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>http:\/\/127.0.0.1:8989\/api\/v1\/documents\/&lt;YOUR DOCUMENT ID&gt;\/sources\/&lt;SOURCE API ENDPOINT&gt;?update={\"filepath\":\"&lt;LOCAL FILE PATH&gt;\"}<\/code><\/pre>\n\n\n\n<p>\u8bf7\u786e\u4fdd\u5bf9\u4ee5\u4e0b\u5185\u5bb9\u8fdb\u884c\u7f16\u7801 <span class=\"caps\">JSON<\/span> \u4e2d\u7684\u6570\u636e\u3002 <span class=\"caps\">URL<\/span> \u4ee5\u83b7\u5f97\u4e00\u4e2a\u6709\u6548\u7684 <span class=\"caps\">URL<\/span> \u53ef\u4ee5\u5728curl\u547d\u4ee4\u4e2d\u8fd9\u6837\u4f7f\u7528\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>curl -X GET http:\/\/127.0.0.1:8989\/api\/v1\/documents\/1748069974\/sources\/1748069974-334DA2E4-DFF3-4225-8F4A-D09D40A6BD5D?update=%7B%22filepath%22:%22~\/Desktop\/Screen%20Recording%202022-07-27%20at%2012.18.23.mov%22%7D<\/code><\/pre>\n\n\n\n<p><i>*<\/i>\u8bf7\u6ce8\u610f\uff0c\u4f60\u53ef\u4ee5\u5229\u7528\u6587\u4ef6\u8def\u5f84\u5f00\u5934\u7684\"~\"\u6765\u5f15\u7528\u5f53\u524d\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8f6c\u6362\u4e00\u4e2a <span class=\"caps\">CURL<\/span> \u547d\u4ee4\u4e0e <span class=\"caps\">JSON<\/span> \u6570\u636e\u5230\u4e00\u4e2a <span class=\"caps\">HTTP<\/span> <span class=\"caps\">URL<\/span> \u7b80\u5355\u7684 <span class=\"caps\">HTTP<\/span> \u8981\u6c42<\/h3>\n\n\n\n<p>\u6709\u65f6\u53ea\u80fd\u53d1\u9001\u4e00\u4e2a\u7b80\u5355\u7684 <span class=\"caps\">HTTP<\/span> \u8bf7\u6c42\u5230mimoLive\u800c\u4e0d\u662f\u4f7f\u7528curl\u547d\u4ee4\uff0c\u4f8b\u5982\u5728\u7b2c\u4e09\u65b9\u81ea\u52a8\u5316\u5e94\u7528\u7a0b\u5e8f\u6216\u81ea\u52a8\u5316\u5c42mimoLive\u672c\u8eab\u3002\u8fd9\u9700\u8981\u5c06curl\u547d\u4ee4\u7684\u6570\u636e\u5757\u8f6c\u6362\u4e3a <span class=\"caps\">URL<\/span>.\u4f60\u53ef\u4ee5\u6309\u4ee5\u4e0b\u65b9\u5f0f\u8fdb\u884c\uff1a<\/p>\n\n\n\n<p>\u8ba9\u6211\u4eec\u5047\u8bbe\u6211\u4eec\u6709\u4ee5\u4e0bcurl\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>curl --data '{\"data\": { \"attributes\": {\"settings\": {\"rtmpurl\":\"rtmp:\/\/mystreaminghost.com\", \"streamingkey\":\"MYTOTALLYSECRETSTREAMKEY\"} } } }' --request PATCH http:\/\/192.168.0.100:8989\/api\/v1\/documents\/458706932\/output-destinations\/4D072496-1CE3-418E-B73E-59A2927A2110<\/code><\/pre>\n\n\n\n<p>\u4f60\u4f1a\u628a <strong><span class=\"caps\">HTTP<\/span> \u90e8\u5206<\/strong> \u9996\u5148\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>http:&#47;&#47;192.168.0.100:8989\/api\/v1\/documents\/458706932\/output-destinations\/4D072496-1CE3-418E-B73E-59A2927A2110<\/code><\/pre>\n\n\n\n<p>\u6dfb\u52a0 <strong>\u66f4\u65b0=<\/strong> \u5230\u5b83\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>http:&#47;&#47;192.168.0.100:8989\/api\/v1\/documents\/458706932\/output-destinations\/4D072496-1CE3-418E-B73E-59A2927A2110?update=<\/code><\/pre>\n\n\n\n<p>\u83b7\u53d6\u6240\u6709 <strong>-data\u5b57\u7b26\u4e32<\/strong> \u5e76\u5220\u9664\u6240\u6709\u4e0d\u5fc5\u8981\u7684\u7a7a\u683c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>{\"data\":{\"attributes\":{\"settings\":{\"rtmpurl\":\"rtmp:\/\/mystreaminghost.com\",\"streamingkey\":\"MYTOTALLYSECRETSTREAMKEY\"}}}}<\/code><\/pre>\n\n\n\n<p>\u5c06\u6b64\u7f16\u7801\u4e3a\u5176 <span class=\"caps\">URL<\/span> \u5f62\u6210\u7531 <strong>\u8f6c\u4e49\u975eURL\u7b26\u5408\u7684\u5b57\u7b26<\/strong> (\u4f8b\u5982\uff0c\u4f7f\u7528https:\/\/www.urlencoder.org\/)<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>%7B%22data%22%3A%7B%22attributes%22%3A%7B%22settings%22%3A%7B%22rtmpurl%22%3A%22rtmp%3A%2F%2Fmystreaminghost.com%22%2C%22streamingkey%22%3A%22MYTOTALLYSECRETSTREAMKEY%22%7D%7D%7D%7D<\/code><\/pre>\n\n\n\n<p>\u6700\u540e\uff0c\u628a\u8fd9\u4e00\u5207 <strong>\u66f4\u65b0\u540e<\/strong> \u50cf\u8fd9\u6837\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\"><code>http:&#47;&#47;192.168.0.100:8989\/api\/v1\/documents\/458706932\/output-destinations\/4D072496-1CE3-418E-B73E-59A2927A2110?update=%7B%22data%22%3A%7B%22attributes%22%3A%7B%22settings%22%3A%7B%22rtmpurl%22%3A%22rtmp%3A%2F%2Fmystreaminghost.com%22%2C%22streamingkey%22%3A%22MYTOTALLYSECRETSTREAMKEY%22%7D%7D%7D%7D<\/code><\/pre>\n\n\n\n<p>\u73b0\u5728\u4f60\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a <span class=\"caps\">URL<\/span> \u5728\u4e00\u4e2a\u7b80\u5355\u7684 <span class=\"caps\">HTTP<\/span> \u8981\u6c42\u3002<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Prerequisites &#8211; Open the document you want to manipulate in mimoLive.&#8211; Make sure the document is in a finished state so that the API endpoints like Layers do not change anymore. Please be aware that if you remove a layer and add it again this layer will have a different Layer ID when talking to [&hellip;]<\/p>","protected":false},"author":3,"featured_media":0,"parent":32486,"menu_order":2,"template":"","meta":{"_acf_changed":false,"_angie_page":false,"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[258],"tags":[],"class_list":["post-32490","user-manual","type-user-manual","status-publish","hentry","category-manual"],"acf":[],"_links":{"self":[{"href":"https:\/\/mimolive.com\/zh\/wp-json\/wp\/v2\/user-manual\/32490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mimolive.com\/zh\/wp-json\/wp\/v2\/user-manual"}],"about":[{"href":"https:\/\/mimolive.com\/zh\/wp-json\/wp\/v2\/types\/user-manual"}],"author":[{"embeddable":true,"href":"https:\/\/mimolive.com\/zh\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":8,"href":"https:\/\/mimolive.com\/zh\/wp-json\/wp\/v2\/user-manual\/32490\/revisions"}],"predecessor-version":[{"id":39724,"href":"https:\/\/mimolive.com\/zh\/wp-json\/wp\/v2\/user-manual\/32490\/revisions\/39724"}],"up":[{"embeddable":true,"href":"https:\/\/mimolive.com\/zh\/wp-json\/wp\/v2\/user-manual\/32486"}],"wp:attachment":[{"href":"https:\/\/mimolive.com\/zh\/wp-json\/wp\/v2\/media?parent=32490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mimolive.com\/zh\/wp-json\/wp\/v2\/categories?post=32490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mimolive.com\/zh\/wp-json\/wp\/v2\/tags?post=32490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}