{"id":16965,"date":"2020-10-27T11:26:42","date_gmt":"2020-10-27T03:26:42","guid":{"rendered":"https:\/\/blog.tibame.com\/?p=16965"},"modified":"2022-04-08T18:31:10","modified_gmt":"2022-04-08T10:31:10","slug":"%e6%93%81%e6%8a%b1api%e5%84%bc%e7%84%b6%e6%88%90%e7%82%ba%e7%a8%8b%e5%bc%8f%e8%a8%ad%e8%a8%88%e5%b8%ab%e7%9a%84%e5%bf%85%e7%84%b6","status":"publish","type":"post","link":"https:\/\/blog.tibame.com\/?p=16965","title":{"rendered":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u5167\u5bb9\u76ee\u9304<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"\u986f\u793a\/\u96b1\u85cf\u5167\u5bb9\u76ee\u9304\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/blog.tibame.com\/?p=16965\/#%EF%BD%9E%E4%BD%BF%E7%94%A8Python%E8%B7%A8%E7%95%8C%E6%95%B4%E5%90%88Line_Bot%E5%88%B0AI%E6%9C%8D%E5%8B%99\" >\uff5e\u4f7f\u7528Python\u8de8\u754c\u6574\u5408Line Bot\u5230AI\u670d\u52d9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/blog.tibame.com\/?p=16965\/#API%E7%B6%93%E6%BF%9F%E5%88%A9%E7%9B%8A%E7%9A%84%E8%B6%A8%E5%8B%A2%EF%BC%8C%E5%B7%B2%E7%B6%93%E6%98%AF%E9%80%B2%E8%A1%8C%E5%BC%8F\" >API\u7d93\u6fdf\u5229\u76ca\u7684\u8da8\u52e2\uff0c\u5df2\u7d93\u662f\u9032\u884c\u5f0f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/blog.tibame.com\/?p=16965\/#%E5%AD%B8%E7%BF%92Python%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80%E8%A8%AD%E8%A8%88%E8%83%BD%E5%8A%9B%E7%9A%84%E7%9B%AE%E6%A8%99\" >\u5b78\u7fd2Python\u7a0b\u5f0f\u8a9e\u8a00\u8a2d\u8a08\u80fd\u529b\u7684\u76ee\u6a19<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/blog.tibame.com\/?p=16965\/#%E6%82%A8%E6%83%B3%E9%80%8F%E9%81%8EPython%E6%9E%B6%E6%A7%8B%E4%B8%80%E5%80%8B%E5%BE%AE%E6%9C%8D%E5%8B%99%E6%9E%B6%E6%A7%8B%E7%9A%84API%E7%B3%BB%E7%B5%B1%E5%97%8E%EF%BC%9F\" >\u60a8\u60f3\u900f\u904ePython\u67b6\u69cb\u4e00\u500b\u5fae\u670d\u52d9\u67b6\u69cb\u7684API\u7cfb\u7d71\u55ce\uff1f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/blog.tibame.com\/?p=16965\/#%E8%B7%A8%E9%A0%98%E5%9F%9F%E7%9A%84%E7%B3%BB%E7%B5%B1%E9%96%8B%E7%99%BC%E8%88%87%E6%95%B4%E5%90%88%E5%91%88%E7%8F%BE%E6%B7%B7%E6%90%AD%E7%9A%84%E5%94%AF%E4%B8%80%E4%BB%8B%E6%8E%A5_%E2%80%94RESTful_API\" >\u8de8\u9818\u57df\u7684\u7cfb\u7d71\u958b\u767c\u8207\u6574\u5408\u5448\u73fe\u6df7\u642d\u7684\u552f\u4e00\u4ecb\u63a5 \u2014RESTful API<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/blog.tibame.com\/?p=16965\/#%E6%B2%92%E6%9C%89%E4%B8%80%E6%8B%9B%E5%8D%8A%E5%BC%8F%E9%97%96%E8%95%A9%E6%B1%9F%E6%B9%96%E7%9A%84%E6%99%82%E4%BB%A3%E4%BA%86\" >\u6c92\u6709\u4e00\u62db\u534a\u5f0f\u95d6\u8569\u6c5f\u6e56\u7684\u6642\u4ee3\u4e86<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%EF%BD%9E%E4%BD%BF%E7%94%A8Python%E8%B7%A8%E7%95%8C%E6%95%B4%E5%90%88Line_Bot%E5%88%B0AI%E6%9C%8D%E5%8B%99\"><\/span>\uff5e<strong>\u4f7f\u7528Python\u8de8\u754c\u6574\u5408Line Bot\u5230AI\u670d\u52d9<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u64b0\u7a3f\u8005\uff1a<a href=\"https:\/\/www.ericodecollege.com\/blog-1\">\u9673\u5b97\u8208<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"API%E7%B6%93%E6%BF%9F%E5%88%A9%E7%9B%8A%E7%9A%84%E8%B6%A8%E5%8B%A2%EF%BC%8C%E5%B7%B2%E7%B6%93%E6%98%AF%E9%80%B2%E8%A1%8C%E5%BC%8F\"><\/span><strong>API\u7d93\u6fdf\u5229\u76ca\u7684\u8da8\u52e2\uff0c\u5df2\u7d93\u662f\u9032\u884c\u5f0f<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Open API\u767c\u5c55\uff0c\u4fc3\u9032\u4f01\u696d\u7d93\u6fdf\u6548\u76ca\uff0c\u5df2\u662f\u4e16\u754c\u5927\u5ee0\u65e2\u5b9a\u7684\u71df\u5229\u7372\u5229\u8da8\u52e2\uff0c\u5176\u4e2d\u900f\u904e\u7db2\u969b\u7db2\u8def\u7684\u74b0\u5883\uff0c\u9032\u884c\u8cc7\u8a0a\u4ea4\u63db\uff0c\u63d0\u4f9b\u4f01\u696d\u670d\u52d9\u5404\u7a2e\u5834\u666f\uff0c\u8b93\u8cc7\u8a0a\u5f97\u4ee5\u5feb\u901f\u4ea4\u63db\uff0c\u9054\u5230\u7269\u6d41\u3001\u8cc7\u8a0a\u6d41\u3001\u91d1\u6d41\u7b49\u670d\u52d9\u7684\u8cc7\u8a0a\u4ea4\u6613\u8207\u6574\u5408\u3002\u9019\u5176\u4e2d\u884d\u751f\u51fa\u4f86\u4e00\u500b\u500b\u8cc7\u8a0a\u4ea4\u6d41\u5e73\u53f0\uff0c\u6211\u5011\u770b\u5230\u96fb\u5546\uff0c\u7dda\u4e0a\u96fb\u73a9\u5bf6\u7269\u7b49\u4ea4\u63db\uff0c\u4ee5\u53ca\u7269\u6d41\u8cc7\u8a0a\u7684\u4ea4\u63db\u6574\u5408\uff0c\u751a\u81f3\u5230\u9280\u884c\u696d\u8a02\u5b9a\u7684Open API\uff0c\u898f\u7bc4\u91d1\u6d41\u4ea4\u63db\u67b6\u69cb\u8207\u898f\u683c\uff1b\u5728\u5728\u8b93\u8cc7\u8a0a\u5728\u7db2\u969b\u7db2\u8def\u7684\u74b0\u5883\u4e0b\uff0c\u5b8c\u5168\u66a2\u901a\u8207\u6574\u5408\u3002\u800c Open API\u5728Linux\u57fa\u91d1\u6703\u4e0b\u9762\u7684OAI(OpenAPIInitiative)\u7dad\u8b77\uff0c\u8a72\u898f\u7bc4\u76ee\u524d\u696d\u5df2\u6210\u70ba\u6700\u6d41\u884c\u7684HTTP API\u898f\u7bc4\u4e4b\u4e00\u3002<\/p>\n\n\n\n<p>\u4f86\u81ea\u8457\u540dIT\u516c\u53f8\u7684\u5c08\u5bb6\u5011\u5408\u4f5c\u5b9a\u7fa9\u4e86\u4e00\u7a2e\u63cf\u8ff0REST API\u7684\u6a19\u6e96\u70ba\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>HTTP\u901a\u8a0a\u5354\u5b9a<\/li><li>TLS\u52a0\u5bc6\u50b3\u8f38<\/li><li>JSON\u50b3\u8f38\u8cc7\u6599\u683c\u5f0f<\/li><\/ol>\n\n\n\n<p>\u8af8\u591a\u5927\u5ee0\u7684\u8cc7\u8a0a\u670d\u52d9\uff0c\u5747\u501f\u52a9RESTful API\u5b8c\u6210\uff0c\u5982\u4e9e\u99ac\u905c\u5927\u5ee0\uff0c\u898f\u5b9a\u6240\u6709\u7684\u8cc7\u6599\u670d\u52d9\u8207\u5b58\u53d6\uff0c\u5747\u9808\u900f\u904eAPI\u67b6\u69cb\u9032\u884c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img decoding=\"async\" src=\"https:\/\/blog.wiedu.tw\/wp-content\/uploads\/2020\/10\/01-1024x586.png\" alt=\"\" class=\"wp-image-16966\" width=\"688\" height=\"394\" srcset=\"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/01-1024x586.png 1024w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/01-300x172.png 300w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/01-768x440.png 768w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/01.png 1083w\" sizes=\"(max-width: 688px) 100vw, 688px\" \/><figcaption><strong> \u5716\u4e00 Open API\u5275\u9020\u7684\u9644\u52a0\u50f9\u503c <\/strong><\/figcaption><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AD%B8%E7%BF%92Python%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80%E8%A8%AD%E8%A8%88%E8%83%BD%E5%8A%9B%E7%9A%84%E7%9B%AE%E6%A8%99\"><\/span><strong>\u5b78\u7fd2Python\u7a0b\u5f0f\u8a9e\u8a00\u8a2d\u8a08\u80fd\u529b\u7684\u76ee\u6a19<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u56de\u5230Python\u7a0b\u5f0f\u4f86\u8ac7\uff0cPython\u7684\u78ba\u662f\u4e00\u7a2e\u6613\u65bc\u5b78\u7fd2\u7684\u7a0b\u5f0f\u8a9e\u8a00\uff0c\u53ef\u4ee5\u8b93\u4e0d\u5177\u6709\u7a0b\u5f0f\u8a2d\u8a08\u80cc\u666f\u7684\u611b\u597d\u8005\uff0c\u5feb\u901f\u9032\u5165\u9019\u4e00\u500b\u8a9e\u8a00\u7684\u6280\u5de7\u8207\u61c9\u7528\u3002<\/p>\n\n\n\n<p>\u4e00\u7a2e\u5177\u6709\u5ee3\u5927\u7684\u5957\u4ef6\u8207\u6a21\u7d44\u652f\u63f4\uff0c\u8b93\u60a8\u5728\u8f03\u77ed\u7684\u6642\u9593\u5167\uff0c\u5b8c\u6210\u7cfb\u7d71\u9700\u6c42\u3002\u5982\u8cc7\u6599\u79d1\u5b78\u5206\u6790\uff0c\u4ee5\u53ca\u7db2\u8def\u722c\u87f2\u7a0b\u5f0f\u8a2d\u8a08\u7b49\u61c9\u7528\u3002\u751a\u81f3\u5230AI\u76f8\u95dc\u7684\u6a21\u7d44\u7684\u8a2d\u8a08\u8207\u6f14\u7b97\uff0cPython\u7a0b\u5f0f\u8a9e\u8a00\u914d\u5408\u5ee3\u6cdb\u5957\u4ef6\u8207\u6a21\u7d44\u4e0b\uff0c\u8b93\u57ce\u5e02\u6a21\u7d44\u958b\u767c\u9700\u6c42\uff0c\u5747\u53ef\u4ee5\u5feb\u901f\u5b8c\u6210\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\uff0c\u4e00\u822c\u5b78\u7fd2Python\u7684\u76ee\u6a19\u5f80\u5f80\u662f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u914d\u5408\u76f8\u95dc\u7684AI\u6a21\u7d44\uff0c\u5982Tensorflow\uff0cPyTorch\uff0cKeras\u7b49\u6a21\u7d44\u5b8c\u6210AI\u5efa\u6a21\u8207\u6f14\u7b97\u3002<\/li><li>\u4f7f\u7528Pandas\uff0cNumpy\uff0crequests\u7b49\u6a21\u7d44\uff0c\u8a2d\u8a08\u51fa\u7db2\u8def\u722c\u87f2\u7a0b\u5f0f\uff0c\u64f7\u53d6\u6240\u9700\u8981\u7684\u5916\u5728\u8cc7\u6599\u3002<\/li><li>\u914d\u5408Flask\u6216\u8005\u662f<a href=\"https:\/\/developer.mozilla.org\/zh-TW\/docs\/Learn\/Server-side\/Django\/Introduction\">Django Framework\uff0c\u8a2d\u8a08\u51faPython Web\u3002<\/a><\/li><\/ol>\n\n\n\n<p>\u800c\u5927\u90e8\u5206\u5b78\u7fd2\u8005\uff0c\u5b78\u7fd2Python\uff0c\u5f80\u5f80\u662f\u805a\u7126\u5728AI\u6a21\u7d44\u8207\u7db2\u8def\u722c\u87f2\u4e0a\uff0c\u6240\u4ee5\u64b0\u5beb\u7684\u7a0b\u5f0f\u78bc\uff0c\u5e38\u8da8\u65bc\u4e00\u7a2e\u7cbe\u7c21\u4e14\u55ae\u7d14\u7684\u55ae\u4e00\u7a0b\u5f0f\u904b\u7b97\u67b6\u69cb\u3002\u8f03\u7f3a\u4e4f\u6574\u9ad4\u61c9\u7528\u7cfb\u7d71\u4e0a\u7684\u69cb\u601d\u8207\u9700\u6c42\u3002\u5bb9\u6613\u5ffd\u7565\u5230Python\u7528\u5728\u529f\u80fd\u5c0e\u5411\u7684\u7cfb\u7d71\u4e0a\u9032\u884c\u958b\u767c\u8207\u5efa\u7f6e\uff0c\u518d\u900f\u904e\u670d\u52d9\u7a97\u53e3\u5b8c\u6210\u7cfb\u7d71\u6574\u5408\u9700\u6c42\uff1b\u9019\u6a23\u7684\u7cfb\u7d71\u9700\u6c42\uff0c\u5373\u662f\u5be6\u73fePython Web\u4e0a\uff0c\u8f03\u5bb9\u6613\u8868\u73fe\u51fa\u4f86\u7684\u4e00\u7a2e\u958b\u767c\u6548\u80fd\u3002<\/p>\n\n\n\n<p>\u56e0\u6b64\uff0c\u7b46\u8005\u5e38\u601d\u8003\uff0cPython\u7a0b\u5f0f\u96e3\u9053\u53ea\u662f\u7528\u5728\u7db2\u8def\u722c\u87f2\u529f\u80fd\uff0c\u6216\u8005\u5728AI\u6f14\u7b97\u5efa\u6a21\u4e0a\u55ce? \u7576\u60a8\u5b8c\u6210\u9019\u4e9b\u7cbe\u7c21\u7684\u7a0b\u5f0f\u6a21\u7d44\u4e4b\u5f8c\uff0c\u53c8\u8a72\u5982\u5982\u4f55\u9032\u884c\u64f4\u5145\uff0c\u751a\u81f3\u8f49\u63db\u6210\u4e00\u7a2e\u670d\u52d9\uff0c\u5982\u914d\u5408Open API\u6f14\u9032\u6210\u52a0\u503c\u7cfb\u7d71\u4e00\u90e8\u5206\uff0c\u63d0\u4f9b\u66f4\u5ee3\u5ea6\u7684\u670d\u52d9\u3002 <\/p>\n\n\n\n<p>\u6240\u4ee5\u6211\u5011\u80fd\u4e0d\u80fd\u601d\u8003\u4e00\u500b\u8de8\u754c\u7684\u67b6\u69cb\uff0c\u800c\u4e14\u771f\u6b63\u5be6\u73fe\u5fae\u670d\u52d9(Microservice)\u7684\u67b6\u69cb\uff0c\u8b93\u7cfb\u7d71\u53ef\u4ee5\u5c0f\u800c\u7f8e\uff0c\u4ea6\u53ef\u5c07\u5fae\u670d\u52d9\u9032\u884c\u591a\u91cd\u6574\u5408\uff0c\u5b8c\u6210\u4e00\u500b\u9f90\u5927\u7cfb\u7d71\u7684\u958b\u767c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1024\" height=\"612\" src=\"https:\/\/blog.wiedu.tw\/wp-content\/uploads\/2020\/10\/02-1024x612.png\" alt=\"\" class=\"wp-image-16967\" srcset=\"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/02-1024x612.png 1024w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/02-300x179.png 300w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/02-768x459.png 768w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/02.png 1275w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong>\u5716\u4e8c Python Microservice \u67b6\u69cb <\/strong><\/figcaption><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%82%A8%E6%83%B3%E9%80%8F%E9%81%8EPython%E6%9E%B6%E6%A7%8B%E4%B8%80%E5%80%8B%E5%BE%AE%E6%9C%8D%E5%8B%99%E6%9E%B6%E6%A7%8B%E7%9A%84API%E7%B3%BB%E7%B5%B1%E5%97%8E%EF%BC%9F\"><\/span><strong>\u60a8\u60f3\u900f\u904ePython\u67b6\u69cb\u4e00\u500b\u5fae\u670d\u52d9\u67b6\u69cb\u7684API\u7cfb\u7d71\u55ce\uff1f<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u7576\u60a8\u5df2\u7d93\u5b78\u6703Python\u7a0b\u5f0f\u8a9e\u8a00\u8a2d\u8a08\u7684\u57fa\u790e\u4e4b\u5f8c\uff0c\u751a\u81f3\u5b78\u6703\u5982\u4f55\u900f\u904ePython\u9032\u884c\u7db2\u8def\u722c\u87f2\u6216\u8005AI\u5efa\u6a21\u4e4b\u5f8c\uff0c\u60a8\u8a72\u5982\u4f55\u5c07\u9019\u4e9b\u8f9b\u8f9b\u82e6\u82e6\u5efa\u7acb\u597d\u7684\u529f\u80fd\u9762\u7684\u7a0b\u5f0f\uff0c\u5c01\u88dd\u6210\u53ef\u652f\u63f4\u7cfb\u7d71\u670d\u52d9\uff0c\u63d0\u4f9b\u5404\u985e\u578b\u524d\u7aefUI\u7cfb\u7d71\u61c9\u7528\u4e0a\u7684\u5ef6\u5c55\uff1b\u9019\u6642\u5019\u60a8\u5373\u53ef\u900f\u904ePython\u8a9e\u8a00\u7684\u57fa\u790e\uff0c\u914d\u5408Flask\u5fae\u6846\u67b6\u67b6\u69cb\uff0c\u5c07\u5df2\u7d93\u64b0\u5beb\u597d\u7684\u6a21\u7d44\u529f\u80fd\u5305\u88dd\uff0c\u8f49\u63db\u6210\u66f4\u5177\u6709\u9644\u52a0\u50f9\u503c\u7684\u96f2\u7aef\u670d\u52d9\u3002<\/p>\n\n\n\n<p>\u4eba\u6a5f\u4ecb\u9762\u7cfb\u7d71\uff0c\u53ef\u4ee5\u501f\u52a9\u76ee\u524d\u6b63\u592f\u7684\u804a\u5929\u8edf\u9ad4\uff0c\u5982Line Bot\u7b49\u7b49\uff1b\u800c\u9019\u4e9b\u61c9\u7528\u8edf\u9ad4\u7684\u5f8c\u53f0\u7cfb\u7d71\uff0c\u90fd\u662f\u6307\u5411Open API\u8da8\u52e2\u9032\u884c\u529f\u80fd\u652f\u63f4\u8a2d\u8a08\uff0c\u884d\u751f\u670d\u52d9\u5e73\u53f0\u3002<\/p>\n\n\n\n<p>\u804a\u5929\u6a5f\u5668\u4eba\u7684\u767c\u5c55\u8da8\u52e2\u8207\u4ecb\u63a5\u8da8\u52e2&nbsp;\uff0c\u4e00\u822c\u9700\u8981\u900f\u904eWebHook\u67b6\u69cb\uff0c\u9032\u884cRESTful API\u4ecb\u63a5\uff0c\u9806\u5229\u5c07\u8cc7\u8a0a\u63a8\u64ad\u8207\u50b3\u905e\uff0c\u5ef6\u5c55\u5230\u4ecb\u63a5\u670d\u52d9\u4e2d\u9032\u884c\u984d\u5916\u529f\u80fd\u8655\u7406\uff0c\u4e26\u4e14\u9032\u800c\u6574\u5408\u5230AI Service(\u540c\u6a23\u662fRESTful API)\u67b6\u69cb\u4e0a\uff0c\u9032\u884c\u76f8\u95dc\u8cc7\u8a0a\u7684\u50b3\u9001\u8207\u63a8\u6e2c\uff0c\u5982\u540c\u5728\u804a\u5929\u6a5f\u5668\u4eba\u88dd\u4e0a\u8166\u888b\uff0c\u8b93\u55ae\u7d14\u7684\u804a\u5929\u6a5f\u5668\u4eba\u5177\u6709AI\u601d\u8003\u7684\u9032\u968e\u529f\u80fd\u3002\u5982\u4e0b\u5716\u4e09\u6240\u793a\u4e00\u822c\u3002\u501f\u52a9\u5df2\u7d93\u5b78\u6703\u7684Python\u7a0b\u5f0f\u8a9e\u8a00\u80fd\u529b\uff0c\u63a8\u9032\u5230RESTful API\u958b\u767c\u9818\u57df\uff0c\u6574\u5408\u4eba\u6a5f\u4ecb\u9762\uff0c\u8207AI Service\u670d\u52d9\u7b49\u3002\u8b93\u60a8\u6709\u6a5f\u6703\u5c07Python\u7a0b\u5f0f\u8a9e\u8a00\u958b\u767c\u55ae\u5411\u529f\u80fd\u6a21\u7d44\u4e0b\uff0c\u9032\u5165\u5230\u7cfb\u7d71\u958b\u767c\u7684\u6574\u5408\u80fd\u529b\u7bc4\u7587\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1024\" height=\"464\" src=\"https:\/\/blog.wiedu.tw\/wp-content\/uploads\/2020\/10\/03-1024x464.png\" alt=\"\" class=\"wp-image-16968\" srcset=\"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/03-1024x464.png 1024w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/03-300x136.png 300w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/03-768x348.png 768w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/03.png 1275w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><strong>\u5716\u4e09 \u4f7f\u7528Python Flask\u958b\u767c\u5177\u6709\u81ea\u7136\u8a9e\u8a00\u89e3\u6790\u80fd\u529b\u7684Line\u804a\u5929\u6a5f\u5668\u4eba <\/strong><\/figcaption><\/figure>\n\n\n\n<p>\u90a3\u53c8\u8a72\u5982\u4f55\u5c07\u5177\u6709Python\u57fa\u790e\u7a0b\u5f0f\u8a2d\u8a08\u80fd\u529b\u7684\u5de5\u7a0b\u5e2b\uff0c\u671d\u5411\u667a\u80fd Line Bot\u804a\u5929\u6a5f\u5668\u4eba\u958b\u767c\u7684\u9818\u57df\u5462\uff1f<\/p>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u5faa\u5e8f\u6f38\u9032\u900f\u904e\u6574\u5408\u8207\u5b78\u7fd2\u7684\u65b9\u5f0f\u9032\u884c\u3002\u5982\u4e0b\u5716\u56db\u6240\u793a\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1024\" height=\"210\" src=\"https:\/\/blog.wiedu.tw\/wp-content\/uploads\/2020\/10\/04-1024x210.png\" alt=\"\" class=\"wp-image-16969\" srcset=\"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/04-1024x210.png 1024w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/04-300x62.png 300w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/04-768x158.png 768w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/04.png 1657w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption> <strong>\u5716\u56db Python\u5982\u4f55\u9032\u5165RESTful API\u3000\u5fae\u670d\u52d9\u67b6\u69cb\u958b\u767c\u9818\u57df <\/strong><\/figcaption><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%B7%A8%E9%A0%98%E5%9F%9F%E7%9A%84%E7%B3%BB%E7%B5%B1%E9%96%8B%E7%99%BC%E8%88%87%E6%95%B4%E5%90%88%E5%91%88%E7%8F%BE%E6%B7%B7%E6%90%AD%E7%9A%84%E5%94%AF%E4%B8%80%E4%BB%8B%E6%8E%A5_%E2%80%94RESTful_API\"><\/span><strong>\u8de8\u9818\u57df\u7684\u7cfb\u7d71\u958b\u767c\u8207\u6574\u5408\u5448\u73fe\u6df7\u642d\u7684\u552f\u4e00\u4ecb\u63a5 \u2014RESTful API  <\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Line Bot\u80cc\u5f8c\u662f\u4e00\u500b\u9f90\u5927\u8c50\u5bcc\u7684Messaging API\uff0c\u6211\u5011\u53ef\u4ee5\u900f\u904e\u8996\u89ba\u5316\u5de5\u5177\u5efa\u7f6eLUIS.ai(\u81ea\u7136\u8a9e\u8a00\u89e3\u6790\u670d\u52d9)\u670d\u52d9\uff0c\u63a5\u4e0b\u4f86\u53ef\u4f7f\u7528Python Flask\u958b\u767c\u7684\u4ecb\u63a5\u5fae\u670d\u52d9\uff0c\u9019\u4e09\u8005\u4e4b\u9593\u7684\u5171\u901a\u6027\uff0c\u90fd\u662f\u7b26\u5408Open API\u67b6\u69cb\u7684\u670d\u52d9\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u8aaa\uff0c\u6240\u8b02\u7684\u8de8\u754c\u6574\u5408\uff0c\u5176\u5be6\u90fd\u5728\u4e00\u5b9a\u7684\u6a19\u6e96\u4e0b\u9032\u884c\u6574\u5408\uff0c\u975e\u95dc\u74b0\u5883\u8207\u7a0b\u5f0f\u8a9e\u8a00\u7b49\u5dee\u7570\u6027\u3002\u6211\u5011\u53ef\u4ee5\u9806\u5229\u6574\u5408\u9019\u4e9b\u670d\u52d9\u7684\u512a\u52e2\u8207\u7279\u5b9a\u529f\u80fd\uff0c\u9054\u5230\u5275\u610f\u7684\u6fc0\u767c\u8207\u5be6\u8e10\u3002<\/p>\n\n\n\n<p>\u7b46\u8005\u5e38\u8aaa\uff0c\u6df7\u642d\u7684\u7cfb\u7d71\uff0c\u4e26\u4e0d\u662f\u4e00\u7a2e\u300a\u62fc\u88dd\u8ca8\u300b\uff0c\u56e0\u70ba\u5728\u7d71\u4e00\u7684\u898f\u7bc4\u4e0b\u884c\u4f7f\u8cc7\u8a0a\u4ea4\u63db\uff0c\u900f\u904e\u670d\u52d9\u672c\u8eab\u7684\u529f\u80fd\u9032\u884c\u904b\u7b97\u7b49\uff0c\u518d\u9001\u51fa\u6216\u8005\u63a5\u53d7\u5230\u7d71\u4e00\u898f\u683c\u7684\u8cc7\u8a0a(JSON\u6587\u4ef6\u898f\u683c)\uff0c\u53ef\u8b93\u60a8\u5c08\u6ce8\u5728\u81ea\u8eab\u719f\u6089\u7684\u7a0b\u5f0f\u8a9e\u8a00\u8207\u74b0\u5883\u4e0b\uff0c\u9032\u884c\u6574\u5408\u5176\u4ed6\u670d\u52d9\uff0c\u5c07\u4e0d\u53ef\u80fd\u55ae\u7368\u5be6\u73fe\u7684\u61c9\u7528\u7cfb\u7d71\uff0c\u9806\u5229\u5b8c\u6210\u3002<\/p>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u8f15\u9b06\u5730\u900f\u904e\u5169\u500b\u8996\u89ba\u5316\u5de5\u5177\u64cd\u4f5c\u8207\u8a2d\u8a08 (Line Bot\u804a\u5929\u6a5f\u5668\u4eba\/LUIS.ai \u81ea\u7136\u8a9e\u8a00\u89e3\u6790\u5efa\u6a21) \uff0c\u518d\u914d\u5408\u4e00\u500b\u60a8\u5df2\u7d93\u719f\u6089\u7684Python\u7a0b\u5f0f\u8a9e\u8a00\u9081\u5165RESTful API\u5f8c\u7aef\u958b\u767c\u5de5\u7a0b\u5e2b\u9818\u57df\u7684\u5b78\u7fd2\u8207\u5be6\u8e10\uff1b\u60a8\u7d55\u5c0d\u53ef\u4ee5\u8f15\u9b06\u5b78\u7fd2\u5230\u4e00\u500b\u804a\u5929\u6a5f\u5668\u4eba\uff0c\u4e14\u5177\u6709\u667a\u80fd\u670d\u52d9\u7684\u6a5f\u5668\u4eba\u7684\u7cfb\u7d71\u529f\u80fd\u3002<\/p>\n\n\n\n<p>\u4e00\u500b\u6df7\u642d\u98a8\u7684\u7cfb\u7d71\u611f\u89f8\uff0c\u53ef\u4ee5\u8b93\u60a8\u5c07Python\u958b\u767c\u7d93\u9a57\u5e36\u5411\u53e6\u4e00\u500b\u9818\u57df\uff0c\n\u7576\u60a8\u5b78\u7fd2\u5fae\u6846\u67b6Flask\uff0c\u5b8c\u6210Python Web\u7684\u958b\u767c\u7d93\u9a57\u8207\u5be6\u4f5c\uff0c\u60a8\u5275\u610f\u4e4b\u9580\u5373\u5c07\u6253\u958b\uff0c\u5be6\u73fe\u66f4\u591a\u7684\u69cb\u601d\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%B2%92%E6%9C%89%E4%B8%80%E6%8B%9B%E5%8D%8A%E5%BC%8F%E9%97%96%E8%95%A9%E6%B1%9F%E6%B9%96%E7%9A%84%E6%99%82%E4%BB%A3%E4%BA%86\"><\/span><strong>\u6c92\u6709\u4e00\u62db\u534a\u5f0f\u95d6\u8569\u6c5f\u6e56\u7684\u6642\u4ee3\u4e86<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u6574\u5408\u8207\u6df7\u5408\u6a21\u5f0f\u7cfb\u7d71\uff0c\u5982\u900f\u904e\u524d\u7aef\u4eba\u6a5f\u4ecb\u9762\uff0c\u8af8\u5982\u804a\u5929\u6a5f\u5668\u4eba\u3001\u7db2\u7ad9\u7cfb\u7d71\u3001\u624b\u6a5fAPP\u7b49\uff0c\u9032\u884c\u5f8c\u7aef\u5171\u540c\u5165\u53e3\u7684\u670d\u52d9\u7aef\u9ede\uff0c\u9032\u884c\u8cc7\u8a0a\u4ea4\u63db\u8207\u6e9d\u901a\uff0c\u751a\u81f3\u6574\u5408\u5230AI Service\u9032\u884c\u63a8\u6e2c\u8207\u6f14\u7b97\uff0c\u5728\u5728\u90fd\u662f\u8003\u9a57\u8457\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\uff0c\u9700\u8981\u64c1\u6709\u659c\u69d3\u80fd\u529b\u3002<\/p>\n\n\n\n<p>Line Bot\u804a\u5929\u6a5f\u5668\u4eba \/ Python Flask RESTful API \/ LUIS.ai Service \/ SQL Server\u8cc7\u6599\u5eab \/ Azure\u7db2\u7ad9\u7cfb\u7d71\u670d\u52d9 <\/p>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u60f3\u50cf\uff0c\u7576\u60a8\u5177\u6709\u9019\u4e9b\u659c\u69d3\u7684\u80fd\u529b\u6642\uff0c\u60a8\u5c07\u6703\u6fc0\u52f5\u51fa\u90a3\u4e9b\u706b\u82b1\uff1f\u8b93\u5275\u610f\u98db\u7fd4\u2026.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"591\" height=\"1024\" src=\"https:\/\/blog.wiedu.tw\/wp-content\/uploads\/2020\/10\/05-591x1024.png\" alt=\"\" class=\"wp-image-16970\" srcset=\"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/05-591x1024.png 591w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/05-173x300.png 173w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/05.png 666w\" sizes=\"(max-width: 591px) 100vw, 591px\" \/><figcaption> <strong>\u5716\u4e94 Python\u958b\u767c\u7684\u667a\u80fd\u804a\u5929\u6a5f\u5668\u4eba\u2014\u5ba2\u6236\u8207\u8a02\u55ae\u670d\u52d9\u6a5f\u5668\u4eba <\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"https:\/\/www.tibame.com\/event\/PythonAI_linebot?utm_source=menu&amp;utm_medium=explore\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/blog.wiedu.tw\/wp-content\/uploads\/2020\/10\/Python-AI-\u804a\u5929\u6a5f\u5668\u4eba\u8207\u96f2\u7aef\u670d\u52d9\u6574\u5408\u958b\u767c\u5b78\u7a0b_\u8ab2\u7a0b\u9801\u5716\u536101-1024x576.png\" alt=\"\" class=\"wp-image-16971\" width=\"512\" height=\"288\" srcset=\"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/Python-AI-\u804a\u5929\u6a5f\u5668\u4eba\u8207\u96f2\u7aef\u670d\u52d9\u6574\u5408\u958b\u767c\u5b78\u7a0b_\u8ab2\u7a0b\u9801\u5716\u536101-1024x576.png 1024w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/Python-AI-\u804a\u5929\u6a5f\u5668\u4eba\u8207\u96f2\u7aef\u670d\u52d9\u6574\u5408\u958b\u767c\u5b78\u7a0b_\u8ab2\u7a0b\u9801\u5716\u536101-300x169.png 300w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/Python-AI-\u804a\u5929\u6a5f\u5668\u4eba\u8207\u96f2\u7aef\u670d\u52d9\u6574\u5408\u958b\u767c\u5b78\u7a0b_\u8ab2\u7a0b\u9801\u5716\u536101-768x432.png 768w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/Python-AI-\u804a\u5929\u6a5f\u5668\u4eba\u8207\u96f2\u7aef\u670d\u52d9\u6574\u5408\u958b\u767c\u5b78\u7a0b_\u8ab2\u7a0b\u9801\u5716\u536101.png 1920w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>\u76f4\u64ad\u5b78\u7a0b\uff1a<a href=\"https:\/\/www.tibame.com\/event\/PythonAI_linebot?utm_source=menu&amp;utm_medium=explore\">Python AI \u804a\u5929\u6a5f\u5668\u4eba\u8207\u96f2\u7aef\u670d\u52d9\u6574\u5408\u958b\u767c\u76f4\u64ad\u5b78\u7a0b<\/a><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter is-resized\"><a href=\"https:\/\/bit.ly\/3lxytEm\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" src=\"https:\/\/blog.wiedu.tw\/wp-content\/uploads\/2020\/10\/Python-Flask-RESTful\u670d\u52d9\u8a2d\u8a08_\u5c01\u9762-1024x576.png\" alt=\"\" class=\"wp-image-16972\" width=\"512\" height=\"288\" srcset=\"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/Python-Flask-RESTful\u670d\u52d9\u8a2d\u8a08_\u5c01\u9762-1024x576.png 1024w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/Python-Flask-RESTful\u670d\u52d9\u8a2d\u8a08_\u5c01\u9762-300x169.png 300w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/Python-Flask-RESTful\u670d\u52d9\u8a2d\u8a08_\u5c01\u9762-768x432.png 768w, https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/Python-Flask-RESTful\u670d\u52d9\u8a2d\u8a08_\u5c01\u9762.png 1920w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><\/figure><\/div>\n\n\n\n<p>\u7dda\u4e0a\u8ab2\uff1a<a href=\"https:\/\/bit.ly\/3lxytEm\">Python Flask RESTful\u670d\u52d9\u8a2d\u8a08<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Open API\u767c\u5c55\uff0c\u4fc3\u9032\u4f01\u696d\u7d93\u6fdf\u6548\u76ca\uff0c\u5df2\u662f\u4e16\u754c\u5927\u5ee0\u65e2\u5b9a\u7684\u71df\u5229\u7372\u5229\u8da8\u52e2\uff0c\u5176\u4e2d\u900f\u904e\u7db2\u969b\u7db2\u8def\u7684\u74b0\u5883\uff0c\u9032\u884c\u8cc7\u8a0a\u4ea4\u63db\uff0c\u63d0\u4f9b\u4f01\u696d\u670d\u52d9\u5404\u7a2e\u5834\u666f\uff0c\u8b93\u8cc7\u8a0a\u5f97\u4ee5\u5feb\u901f\u4ea4\u63db\uff0c\u9054\u5230\u7269\u6d41\u3001\u8cc7\u8a0a\u6d41\u3001\u91d1\u6d41\u7b49\u670d\u52d9\u7684\u8cc7\u8a0a\u4ea4\u6613\u8207\u6574\u5408\u3002\u9019\u5176\u4e2d\u884d\u751f\u51fa\u4f86\u4e00\u500b\u500b\u8cc7\u8a0a\u4ea4\u6d41\u5e73\u53f0\uff0c\u6211\u5011\u770b\u5230\u96fb\u5546\uff0c\u7dda\u4e0a\u96fb\u73a9\u5bf6\u7269\u7b49\u4ea4\u63db\uff0c\u4ee5\u53ca\u7269\u6d41\u8cc7\u8a0a\u7684\u4ea4\u63db\u6574\u5408\uff0c\u751a\u81f3\u5230\u9280\u884c\u696d\u8a02\u5b9a\u7684Open API\uff0c\u898f\u7bc4\u91d1\u6d41\u4ea4\u63db\u67b6\u69cb\u8207\u898f\u683c\uff1b\u5728\u5728\u8b93\u8cc7\u8a0a\u5728\u7db2\u969b\u7db2\u8def\u7684\u74b0\u5883\u4e0b\uff0c\u5b8c\u5168\u66a2\u901a\u8207\u6574\u5408\u3002\u800c Open API\u5728Linux\u57fa\u91d1\u6703\u4e0b\u9762\u7684OAI(OpenAPIInitiative)\u7dad\u8b77\uff0c\u8a72\u898f\u7bc4\u76ee\u524d\u696d\u5df2\u6210\u70ba\u6700\u6d41\u884c\u7684HTTP API\u898f\u7bc4\u4e4b\u4e00\u3002<\/p>\n","protected":false},"author":19,"featured_media":16974,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[480,173,1543],"tags":[779,820,1066,1122,1123,1124,1125,353,632,677],"class_list":["post-16965","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","category-173","category-1543","tag-python","tag-820","tag-1066","tag-api","tag-linebot","tag-flask","tag-restful-api","tag-353","tag-632","tag-ai"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Open API\u767c\u5c55\uff0c\u4fc3\u9032\u4f01\u696d\u7d93\u6fdf\u6548\u76ca\uff0c\u5df2\u662f\u4e16\u754c\u5927\u5ee0\u65e2\u5b9a\u7684\u71df\u5229\u7372\u5229\u8da8\u52e2\uff0c\u5176\u4e2d\u900f\u904e\u7db2\u969b\u7db2\u8def\u7684\u74b0\u5883\uff0c\u9032\u884c\u8cc7\u8a0a\u4ea4\u63db\uff0c\u63d0\u4f9b\u4f01\u696d\u670d\u52d9\u5404\u7a2e\u5834\u666f\uff0c\u8b93\u8cc7\u8a0a\u5f97\u4ee5\u5feb\u901f\u4ea4\u63db\uff0c\u9054\u5230\u7269\u6d41\u3001\u8cc7\u8a0a\u6d41\u3001\u91d1\u6d41\u7b49\u670d\u52d9\u7684\u8cc7\u8a0a\u4ea4\u6613\u8207\u6574\u5408\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"TibaMe\u5c0f\u7de8\"\/>\n\t<meta name=\"google-site-verification\" content=\"5qHOkz_aS80gbg22PS-fvrR8c3e_cOK04gCj7qo10RM\" \/>\n\t<meta name=\"keywords\" content=\"\u7a0b\u5f0f\u8a2d\u8a08,api,linebot,python,\u4eba\u5de5\u667a\u6167,\u804a\u5929\u6a5f\u5668\u4eba,\u7db2\u8def\u722c\u87f2,flask,restful api,ai,\u7a0b\u5f0f\u8a2d\u8a08\u5e2b,\u79d1\u6280\u8da8\u52e2,\u6240\u6709\u6587\u7ae0,\u8edf\u9ad4\u958b\u767c\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/blog.tibame.com\/?p=16965\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\n\t\t<!-- Global site tag (gtag.js) - Google Analytics -->\n<script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=UA-53361606-4\"><\/script>\n<script>\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', 'UA-53361606-4');\n<\/script>\n\t\t<meta property=\"og:locale\" content=\"zh_TW\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TibaMe\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136\uff5e\u4f7f\u7528Python\u8de8\u754c\u6574\u5408Line Bot\u5230AI\u670d\u52d9 | \u7def\u80b2TibaMe Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Open API\u767c\u5c55\uff0c\u4fc3\u9032\u4f01\u696d\u7d93\u6fdf\u6548\u76ca\uff0c\u5df2\u662f\u4e16\u754c\u5927\u5ee0\u65e2\u5b9a\u7684\u71df\u5229\u7372\u5229\u8da8\u52e2\uff0c\u5176\u4e2d\u900f\u904e\u7db2\u969b\u7db2\u8def\u7684\u74b0\u5883\uff0c\u9032\u884c\u8cc7\u8a0a\u4ea4\u63db\uff0c\u63d0\u4f9b\u4f01\u696d\u670d\u52d9\u5404\u7a2e\u5834\u666f\uff0c\u8b93\u8cc7\u8a0a\u5f97\u4ee5\u5feb\u901f\u4ea4\u63db\uff0c\u9054\u5230\u7269\u6d41\u3001\u8cc7\u8a0a\u6d41\u3001\u91d1\u6d41\u7b49\u670d\u52d9\u7684\u8cc7\u8a0a\u4ea4\u6613\u8207\u6574\u5408\u3002\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/blog.tibame.com\/?p=16965\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/blog\u5c01\u9762\u5716-59.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/blog\u5c01\u9762\u5716-59.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1201\" \/>\n\t\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-10-27T03:26:42+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-04-08T10:31:10+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136\uff5e\u4f7f\u7528Python\u8de8\u754c\u6574\u5408Line Bot\u5230AI\u670d\u52d9 | \u7def\u80b2TibaMe Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Open API\u767c\u5c55\uff0c\u4fc3\u9032\u4f01\u696d\u7d93\u6fdf\u6548\u76ca\uff0c\u5df2\u662f\u4e16\u754c\u5927\u5ee0\u65e2\u5b9a\u7684\u71df\u5229\u7372\u5229\u8da8\u52e2\uff0c\u5176\u4e2d\u900f\u904e\u7db2\u969b\u7db2\u8def\u7684\u74b0\u5883\uff0c\u9032\u884c\u8cc7\u8a0a\u4ea4\u63db\uff0c\u63d0\u4f9b\u4f01\u696d\u670d\u52d9\u5404\u7a2e\u5834\u666f\uff0c\u8b93\u8cc7\u8a0a\u5f97\u4ee5\u5feb\u901f\u4ea4\u63db\uff0c\u9054\u5230\u7269\u6d41\u3001\u8cc7\u8a0a\u6d41\u3001\u91d1\u6d41\u7b49\u670d\u52d9\u7684\u8cc7\u8a0a\u4ea4\u6613\u8207\u6574\u5408\u3002\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/blog\u5c01\u9762\u5716-59.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965#blogposting\",\"name\":\"\\u64c1\\u62b1API\\u513c\\u7136\\u6210\\u70ba\\u7a0b\\u5f0f\\u8a2d\\u8a08\\u5e2b\\u7684\\u5fc5\\u7136\\uff5e\\u4f7f\\u7528Python\\u8de8\\u754c\\u6574\\u5408Line Bot\\u5230AI\\u670d\\u52d9 | \\u7def\\u80b2TibaMe Blog\",\"headline\":\"\\u64c1\\u62b1API\\u513c\\u7136\\u6210\\u70ba\\u7a0b\\u5f0f\\u8a2d\\u8a08\\u5e2b\\u7684\\u5fc5\\u7136\",\"author\":{\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?author=19#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/blog.tibame.com\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/blog\\u5c01\\u9762\\u5716-59.png\",\"width\":1201,\"height\":675,\"caption\":\"\\u64c1\\u62b1API\\u513c\\u7136\\u6210\\u70ba\\u7a0b\\u5f0f\\u8a2d\\u8a08\\u5e2b\\u7684\\u5fc5\\u7136\"},\"datePublished\":\"2020-10-27T11:26:42+08:00\",\"dateModified\":\"2022-04-08T18:31:10+08:00\",\"inLanguage\":\"zh-TW\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965#webpage\"},\"articleSection\":\"\\u79d1\\u6280\\u8da8\\u52e2, \\u6240\\u6709\\u6587\\u7ae0, \\u8edf\\u9ad4\\u958b\\u767c, Python, \\u7a0b\\u5f0f\\u8a2d\\u8a08\\u5e2b, \\u804a\\u5929\\u6a5f\\u5668\\u4eba, api, linebot, Flask, restful api, \\u4eba\\u5de5\\u667a\\u6167, \\u7db2\\u8def\\u722c\\u87f2, AI\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.tibame.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.tibame.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?cat=480#listItem\",\"name\":\"\\u79d1\\u6280\\u8da8\\u52e2\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?cat=480#listItem\",\"position\":2,\"name\":\"\\u79d1\\u6280\\u8da8\\u52e2\",\"item\":\"https:\\\/\\\/blog.tibame.com\\\/?cat=480\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?cat=1543#listItem\",\"name\":\"\\u8edf\\u9ad4\\u958b\\u767c\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.tibame.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?cat=1543#listItem\",\"position\":3,\"name\":\"\\u8edf\\u9ad4\\u958b\\u767c\",\"item\":\"https:\\\/\\\/blog.tibame.com\\\/?cat=1543\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965#listItem\",\"name\":\"\\u64c1\\u62b1API\\u513c\\u7136\\u6210\\u70ba\\u7a0b\\u5f0f\\u8a2d\\u8a08\\u5e2b\\u7684\\u5fc5\\u7136\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?cat=480#listItem\",\"name\":\"\\u79d1\\u6280\\u8da8\\u52e2\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965#listItem\",\"position\":4,\"name\":\"\\u64c1\\u62b1API\\u513c\\u7136\\u6210\\u70ba\\u7a0b\\u5f0f\\u8a2d\\u8a08\\u5e2b\\u7684\\u5fc5\\u7136\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?cat=1543#listItem\",\"name\":\"\\u8edf\\u9ad4\\u958b\\u767c\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/#organization\",\"name\":\"\\u7def\\u80b2TibaMe Blog\",\"description\":\"\\u63d0\\u62d4\\u6211\\u7684\\u5b78\\u7fd2\\u529b\",\"url\":\"https:\\\/\\\/blog.tibame.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/blog.wiedu.tw\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/tibame.jpg\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965\\\/#organizationLogo\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?author=19#author\",\"url\":\"https:\\\/\\\/blog.tibame.com\\\/?author=19\",\"name\":\"TibaMe\\u5c0f\\u7de8\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/acb4eaa72ec159908aa64f92bd2a7755b0a4a15ac59354446f2e3608f59b55d6?s=96&d=retro&r=g\",\"width\":96,\"height\":96,\"caption\":\"TibaMe\\u5c0f\\u7de8\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965#webpage\",\"url\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965\",\"name\":\"\\u64c1\\u62b1API\\u513c\\u7136\\u6210\\u70ba\\u7a0b\\u5f0f\\u8a2d\\u8a08\\u5e2b\\u7684\\u5fc5\\u7136\\uff5e\\u4f7f\\u7528Python\\u8de8\\u754c\\u6574\\u5408Line Bot\\u5230AI\\u670d\\u52d9 | \\u7def\\u80b2TibaMe Blog\",\"description\":\"Open API\\u767c\\u5c55\\uff0c\\u4fc3\\u9032\\u4f01\\u696d\\u7d93\\u6fdf\\u6548\\u76ca\\uff0c\\u5df2\\u662f\\u4e16\\u754c\\u5927\\u5ee0\\u65e2\\u5b9a\\u7684\\u71df\\u5229\\u7372\\u5229\\u8da8\\u52e2\\uff0c\\u5176\\u4e2d\\u900f\\u904e\\u7db2\\u969b\\u7db2\\u8def\\u7684\\u74b0\\u5883\\uff0c\\u9032\\u884c\\u8cc7\\u8a0a\\u4ea4\\u63db\\uff0c\\u63d0\\u4f9b\\u4f01\\u696d\\u670d\\u52d9\\u5404\\u7a2e\\u5834\\u666f\\uff0c\\u8b93\\u8cc7\\u8a0a\\u5f97\\u4ee5\\u5feb\\u901f\\u4ea4\\u63db\\uff0c\\u9054\\u5230\\u7269\\u6d41\\u3001\\u8cc7\\u8a0a\\u6d41\\u3001\\u91d1\\u6d41\\u7b49\\u670d\\u52d9\\u7684\\u8cc7\\u8a0a\\u4ea4\\u6613\\u8207\\u6574\\u5408\\u3002\",\"inLanguage\":\"zh-TW\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?author=19#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?author=19#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/blog.tibame.com\\\/wp-content\\\/uploads\\\/2020\\\/10\\\/blog\\u5c01\\u9762\\u5716-59.png\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965\\\/#mainImage\",\"width\":1201,\"height\":675,\"caption\":\"\\u64c1\\u62b1API\\u513c\\u7136\\u6210\\u70ba\\u7a0b\\u5f0f\\u8a2d\\u8a08\\u5e2b\\u7684\\u5fc5\\u7136\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/?p=16965#mainImage\"},\"datePublished\":\"2020-10-27T11:26:42+08:00\",\"dateModified\":\"2022-04-08T18:31:10+08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/#website\",\"url\":\"https:\\\/\\\/blog.tibame.com\\\/\",\"name\":\"\\u7def\\u80b2TibaMe Blog\",\"description\":\"\\u63d0\\u62d4\\u6211\\u7684\\u5b78\\u7fd2\\u529b\",\"inLanguage\":\"zh-TW\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.tibame.com\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136\uff5e\u4f7f\u7528Python\u8de8\u754c\u6574\u5408Line Bot\u5230AI\u670d\u52d9 | \u7def\u80b2TibaMe Blog","description":"Open API\u767c\u5c55\uff0c\u4fc3\u9032\u4f01\u696d\u7d93\u6fdf\u6548\u76ca\uff0c\u5df2\u662f\u4e16\u754c\u5927\u5ee0\u65e2\u5b9a\u7684\u71df\u5229\u7372\u5229\u8da8\u52e2\uff0c\u5176\u4e2d\u900f\u904e\u7db2\u969b\u7db2\u8def\u7684\u74b0\u5883\uff0c\u9032\u884c\u8cc7\u8a0a\u4ea4\u63db\uff0c\u63d0\u4f9b\u4f01\u696d\u670d\u52d9\u5404\u7a2e\u5834\u666f\uff0c\u8b93\u8cc7\u8a0a\u5f97\u4ee5\u5feb\u901f\u4ea4\u63db\uff0c\u9054\u5230\u7269\u6d41\u3001\u8cc7\u8a0a\u6d41\u3001\u91d1\u6d41\u7b49\u670d\u52d9\u7684\u8cc7\u8a0a\u4ea4\u6613\u8207\u6574\u5408\u3002","canonical_url":"https:\/\/blog.tibame.com\/?p=16965","robots":"max-image-preview:large","keywords":"\u7a0b\u5f0f\u8a2d\u8a08,api,linebot,python,\u4eba\u5de5\u667a\u6167,\u804a\u5929\u6a5f\u5668\u4eba,\u7db2\u8def\u722c\u87f2,flask,restful api,ai,\u7a0b\u5f0f\u8a2d\u8a08\u5e2b,\u79d1\u6280\u8da8\u52e2,\u6240\u6709\u6587\u7ae0,\u8edf\u9ad4\u958b\u767c","webmasterTools":{"google-site-verification":"5qHOkz_aS80gbg22PS-fvrR8c3e_cOK04gCj7qo10RM","miscellaneous":"&lt;!-- Global site tag (gtag.js) - Google Analytics --&gt;\n&lt;script async src=\"https:\/\/www.googletagmanager.com\/gtag\/js?id=UA-53361606-4\"&gt;&lt;\/script&gt;\n&lt;script&gt;\n&nbsp;window.dataLayer = window.dataLayer || [];\n&nbsp;function gtag(){dataLayer.push(arguments);}\n&nbsp;gtag('js', new Date());\n\n&nbsp;gtag('config', 'UA-53361606-4');\n&lt;\/script&gt;"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/blog.tibame.com\/?p=16965#blogposting","name":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136\uff5e\u4f7f\u7528Python\u8de8\u754c\u6574\u5408Line Bot\u5230AI\u670d\u52d9 | \u7def\u80b2TibaMe Blog","headline":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136","author":{"@id":"https:\/\/blog.tibame.com\/?author=19#author"},"publisher":{"@id":"https:\/\/blog.tibame.com\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/blog\u5c01\u9762\u5716-59.png","width":1201,"height":675,"caption":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136"},"datePublished":"2020-10-27T11:26:42+08:00","dateModified":"2022-04-08T18:31:10+08:00","inLanguage":"zh-TW","mainEntityOfPage":{"@id":"https:\/\/blog.tibame.com\/?p=16965#webpage"},"isPartOf":{"@id":"https:\/\/blog.tibame.com\/?p=16965#webpage"},"articleSection":"\u79d1\u6280\u8da8\u52e2, \u6240\u6709\u6587\u7ae0, \u8edf\u9ad4\u958b\u767c, Python, \u7a0b\u5f0f\u8a2d\u8a08\u5e2b, \u804a\u5929\u6a5f\u5668\u4eba, api, linebot, Flask, restful api, \u4eba\u5de5\u667a\u6167, \u7db2\u8def\u722c\u87f2, AI"},{"@type":"BreadcrumbList","@id":"https:\/\/blog.tibame.com\/?p=16965#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/blog.tibame.com#listItem","position":1,"name":"Home","item":"https:\/\/blog.tibame.com","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.tibame.com\/?cat=480#listItem","name":"\u79d1\u6280\u8da8\u52e2"}},{"@type":"ListItem","@id":"https:\/\/blog.tibame.com\/?cat=480#listItem","position":2,"name":"\u79d1\u6280\u8da8\u52e2","item":"https:\/\/blog.tibame.com\/?cat=480","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.tibame.com\/?cat=1543#listItem","name":"\u8edf\u9ad4\u958b\u767c"},"previousItem":{"@type":"ListItem","@id":"https:\/\/blog.tibame.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/blog.tibame.com\/?cat=1543#listItem","position":3,"name":"\u8edf\u9ad4\u958b\u767c","item":"https:\/\/blog.tibame.com\/?cat=1543","nextItem":{"@type":"ListItem","@id":"https:\/\/blog.tibame.com\/?p=16965#listItem","name":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136"},"previousItem":{"@type":"ListItem","@id":"https:\/\/blog.tibame.com\/?cat=480#listItem","name":"\u79d1\u6280\u8da8\u52e2"}},{"@type":"ListItem","@id":"https:\/\/blog.tibame.com\/?p=16965#listItem","position":4,"name":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136","previousItem":{"@type":"ListItem","@id":"https:\/\/blog.tibame.com\/?cat=1543#listItem","name":"\u8edf\u9ad4\u958b\u767c"}}]},{"@type":"Organization","@id":"https:\/\/blog.tibame.com\/#organization","name":"\u7def\u80b2TibaMe Blog","description":"\u63d0\u62d4\u6211\u7684\u5b78\u7fd2\u529b","url":"https:\/\/blog.tibame.com\/","logo":{"@type":"ImageObject","url":"https:\/\/blog.wiedu.tw\/wp-content\/uploads\/2019\/08\/tibame.jpg","@id":"https:\/\/blog.tibame.com\/?p=16965\/#organizationLogo"},"image":{"@id":"https:\/\/blog.tibame.com\/?p=16965\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/blog.tibame.com\/?author=19#author","url":"https:\/\/blog.tibame.com\/?author=19","name":"TibaMe\u5c0f\u7de8","image":{"@type":"ImageObject","@id":"https:\/\/blog.tibame.com\/?p=16965#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/acb4eaa72ec159908aa64f92bd2a7755b0a4a15ac59354446f2e3608f59b55d6?s=96&d=retro&r=g","width":96,"height":96,"caption":"TibaMe\u5c0f\u7de8"}},{"@type":"WebPage","@id":"https:\/\/blog.tibame.com\/?p=16965#webpage","url":"https:\/\/blog.tibame.com\/?p=16965","name":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136\uff5e\u4f7f\u7528Python\u8de8\u754c\u6574\u5408Line Bot\u5230AI\u670d\u52d9 | \u7def\u80b2TibaMe Blog","description":"Open API\u767c\u5c55\uff0c\u4fc3\u9032\u4f01\u696d\u7d93\u6fdf\u6548\u76ca\uff0c\u5df2\u662f\u4e16\u754c\u5927\u5ee0\u65e2\u5b9a\u7684\u71df\u5229\u7372\u5229\u8da8\u52e2\uff0c\u5176\u4e2d\u900f\u904e\u7db2\u969b\u7db2\u8def\u7684\u74b0\u5883\uff0c\u9032\u884c\u8cc7\u8a0a\u4ea4\u63db\uff0c\u63d0\u4f9b\u4f01\u696d\u670d\u52d9\u5404\u7a2e\u5834\u666f\uff0c\u8b93\u8cc7\u8a0a\u5f97\u4ee5\u5feb\u901f\u4ea4\u63db\uff0c\u9054\u5230\u7269\u6d41\u3001\u8cc7\u8a0a\u6d41\u3001\u91d1\u6d41\u7b49\u670d\u52d9\u7684\u8cc7\u8a0a\u4ea4\u6613\u8207\u6574\u5408\u3002","inLanguage":"zh-TW","isPartOf":{"@id":"https:\/\/blog.tibame.com\/#website"},"breadcrumb":{"@id":"https:\/\/blog.tibame.com\/?p=16965#breadcrumblist"},"author":{"@id":"https:\/\/blog.tibame.com\/?author=19#author"},"creator":{"@id":"https:\/\/blog.tibame.com\/?author=19#author"},"image":{"@type":"ImageObject","url":"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/blog\u5c01\u9762\u5716-59.png","@id":"https:\/\/blog.tibame.com\/?p=16965\/#mainImage","width":1201,"height":675,"caption":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136"},"primaryImageOfPage":{"@id":"https:\/\/blog.tibame.com\/?p=16965#mainImage"},"datePublished":"2020-10-27T11:26:42+08:00","dateModified":"2022-04-08T18:31:10+08:00"},{"@type":"WebSite","@id":"https:\/\/blog.tibame.com\/#website","url":"https:\/\/blog.tibame.com\/","name":"\u7def\u80b2TibaMe Blog","description":"\u63d0\u62d4\u6211\u7684\u5b78\u7fd2\u529b","inLanguage":"zh-TW","publisher":{"@id":"https:\/\/blog.tibame.com\/#organization"}}]},"og:locale":"zh_TW","og:site_name":"TibaMe","og:type":"article","og:title":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136\uff5e\u4f7f\u7528Python\u8de8\u754c\u6574\u5408Line Bot\u5230AI\u670d\u52d9 | \u7def\u80b2TibaMe Blog","og:description":"Open API\u767c\u5c55\uff0c\u4fc3\u9032\u4f01\u696d\u7d93\u6fdf\u6548\u76ca\uff0c\u5df2\u662f\u4e16\u754c\u5927\u5ee0\u65e2\u5b9a\u7684\u71df\u5229\u7372\u5229\u8da8\u52e2\uff0c\u5176\u4e2d\u900f\u904e\u7db2\u969b\u7db2\u8def\u7684\u74b0\u5883\uff0c\u9032\u884c\u8cc7\u8a0a\u4ea4\u63db\uff0c\u63d0\u4f9b\u4f01\u696d\u670d\u52d9\u5404\u7a2e\u5834\u666f\uff0c\u8b93\u8cc7\u8a0a\u5f97\u4ee5\u5feb\u901f\u4ea4\u63db\uff0c\u9054\u5230\u7269\u6d41\u3001\u8cc7\u8a0a\u6d41\u3001\u91d1\u6d41\u7b49\u670d\u52d9\u7684\u8cc7\u8a0a\u4ea4\u6613\u8207\u6574\u5408\u3002","og:url":"https:\/\/blog.tibame.com\/?p=16965","og:image":"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/blog\u5c01\u9762\u5716-59.png","og:image:secure_url":"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/blog\u5c01\u9762\u5716-59.png","og:image:width":1201,"og:image:height":675,"article:published_time":"2020-10-27T03:26:42+00:00","article:modified_time":"2022-04-08T10:31:10+00:00","twitter:card":"summary","twitter:title":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136\uff5e\u4f7f\u7528Python\u8de8\u754c\u6574\u5408Line Bot\u5230AI\u670d\u52d9 | \u7def\u80b2TibaMe Blog","twitter:description":"Open API\u767c\u5c55\uff0c\u4fc3\u9032\u4f01\u696d\u7d93\u6fdf\u6548\u76ca\uff0c\u5df2\u662f\u4e16\u754c\u5927\u5ee0\u65e2\u5b9a\u7684\u71df\u5229\u7372\u5229\u8da8\u52e2\uff0c\u5176\u4e2d\u900f\u904e\u7db2\u969b\u7db2\u8def\u7684\u74b0\u5883\uff0c\u9032\u884c\u8cc7\u8a0a\u4ea4\u63db\uff0c\u63d0\u4f9b\u4f01\u696d\u670d\u52d9\u5404\u7a2e\u5834\u666f\uff0c\u8b93\u8cc7\u8a0a\u5f97\u4ee5\u5feb\u901f\u4ea4\u63db\uff0c\u9054\u5230\u7269\u6d41\u3001\u8cc7\u8a0a\u6d41\u3001\u91d1\u6d41\u7b49\u670d\u52d9\u7684\u8cc7\u8a0a\u4ea4\u6613\u8207\u6574\u5408\u3002","twitter:image":"https:\/\/blog.tibame.com\/wp-content\/uploads\/2020\/10\/blog\u5c01\u9762\u5716-59.png"},"aioseo_meta_data":{"post_id":"16965","title":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136\uff5e\u4f7f\u7528Python\u8de8\u754c\u6574\u5408Line Bot\u5230AI\u670d\u52d9 | #site_title","description":"Open API\u767c\u5c55\uff0c\u4fc3\u9032\u4f01\u696d\u7d93\u6fdf\u6548\u76ca\uff0c\u5df2\u662f\u4e16\u754c\u5927\u5ee0\u65e2\u5b9a\u7684\u71df\u5229\u7372\u5229\u8da8\u52e2\uff0c\u5176\u4e2d\u900f\u904e\u7db2\u969b\u7db2\u8def\u7684\u74b0\u5883\uff0c\u9032\u884c\u8cc7\u8a0a\u4ea4\u63db\uff0c\u63d0\u4f9b\u4f01\u696d\u670d\u52d9\u5404\u7a2e\u5834\u666f\uff0c\u8b93\u8cc7\u8a0a\u5f97\u4ee5\u5feb\u901f\u4ea4\u63db\uff0c\u9054\u5230\u7269\u6d41\u3001\u8cc7\u8a0a\u6d41\u3001\u91d1\u6d41\u7b49\u670d\u52d9\u7684\u8cc7\u8a0a\u4ea4\u6613\u8207\u6574\u5408\u3002","keywords":[{"label":"\u7a0b\u5f0f\u8a2d\u8a08","value":"\u7a0b\u5f0f\u8a2d\u8a08"},{"label":"API","value":"API"},{"label":"LineBot","value":"LineBot"},{"label":"Python","value":"Python"},{"label":"\u4eba\u5de5\u667a\u6167","value":"\u4eba\u5de5\u667a\u6167"},{"label":"\u804a\u5929\u6a5f\u5668\u4eba","value":"\u804a\u5929\u6a5f\u5668\u4eba"},{"label":"\u7db2\u8def\u722c\u87f2","value":"\u7db2\u8def\u722c\u87f2"},{"label":"Flask","value":"Flask"},{"label":"restful api","value":"restful api"},{"label":"AI","value":"AI"}],"keyphrases":null,"canonical_url":"","og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","tabs":null,"priority":null,"frequency":null,"location":null,"local_seo":null,"created":"2021-02-20 02:50:11","updated":"2026-05-15 00:16:51","primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.tibame.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.tibame.com\/?cat=480\" title=\"\u79d1\u6280\u8da8\u52e2\">\u79d1\u6280\u8da8\u52e2<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/blog.tibame.com\/?cat=1543\" title=\"\u8edf\u9ad4\u958b\u767c\">\u8edf\u9ad4\u958b\u767c<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/blog.tibame.com"},{"label":"\u79d1\u6280\u8da8\u52e2","link":"https:\/\/blog.tibame.com\/?cat=480"},{"label":"\u8edf\u9ad4\u958b\u767c","link":"https:\/\/blog.tibame.com\/?cat=1543"},{"label":"\u64c1\u62b1API\u513c\u7136\u6210\u70ba\u7a0b\u5f0f\u8a2d\u8a08\u5e2b\u7684\u5fc5\u7136","link":"https:\/\/blog.tibame.com\/?p=16965"}],"views":3437,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.tibame.com\/index.php?rest_route=\/wp\/v2\/posts\/16965","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.tibame.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.tibame.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.tibame.com\/index.php?rest_route=\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.tibame.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16965"}],"version-history":[{"count":3,"href":"https:\/\/blog.tibame.com\/index.php?rest_route=\/wp\/v2\/posts\/16965\/revisions"}],"predecessor-version":[{"id":17076,"href":"https:\/\/blog.tibame.com\/index.php?rest_route=\/wp\/v2\/posts\/16965\/revisions\/17076"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.tibame.com\/index.php?rest_route=\/wp\/v2\/media\/16974"}],"wp:attachment":[{"href":"https:\/\/blog.tibame.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16965"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tibame.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16965"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tibame.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16965"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}