{"id":6549,"date":"2024-04-14T15:38:22","date_gmt":"2024-04-14T07:38:22","guid":{"rendered":"https:\/\/webflow.tenten.co\/?p=6549"},"modified":"2024-04-14T15:38:22","modified_gmt":"2024-04-14T07:38:22","slug":"introduction-to-webflows-application-programming-interfaces","status":"publish","type":"post","link":"https:\/\/webflow.tenten.co\/zh_cn\/introduction-to-webflows-application-programming-interfaces\/","title":{"rendered":"Webflow \u5e94\u7528\u7a0b\u5e8f\u7f16\u7a0b\u63a5\u53e3\u7b80\u4ecb"},"content":{"rendered":"<div class=\"docs_rich-text w-richtext\">\n<p>\u5e94\u7528\u7a0b\u5e8f\u7f16\u7a0b\u63a5\u53e3 (API) \u4fc3\u8fdb\u4e0d\u540c\u8f6f\u4ef6\u5e94\u7528\u7a0b\u5e8f\u4e4b\u95f4\u7684\u4ea4\u4e92\u3002Webflow \u7684 API \u53ef\u4ee5\u94fe\u63a5\u5916\u90e8\u670d\u52a1\u3001\u589e\u5f3a Webflow \u7684\u4e3b\u8981\u529f\u80fd\uff0c\u5e76\u4e3a\u8bbe\u8ba1\u5e08\u548c\u5f00\u53d1\u4eba\u5458\u5f00\u53d1\u5c16\u7aef\u89e3\u51b3\u65b9\u6848\u3002\u00a0<\/p>\n<h6><strong>\u4e13\u5bb6\u63d0\u793a\uff1a <\/strong>\u5982\u679c\u4f60\u7f3a\u4e4f\u7f16\u7801\u6280\u80fd\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u5de5\u5177 <a href=\"https:\/\/webflow.com\/apps\/detail\/integrately\">\u7efc\u5408\u5730<\/a>, <a href=\"https:\/\/webflow.com\/apps\/detail\/make\">\u5236\u4f5c<\/a>\u6216 Zapier\uff0c\u5b83\u4eec\u53ef\u4ee5\u5c06 Webflow \u4e0e\u5927\u91cf\u7b2c\u4e09\u65b9\u5e94\u7528\u7a0b\u5e8f\u96c6\u6210\u2014\u2014\u800c\u65e0\u9700\u76f4\u63a5\u5904\u7406 API \u6216\u7f16\u5199\u4ee3\u7801\u3002\u00a0<\/h6>\n<p>\u672c\u6559\u7a0b\u5c06\u6db5\u76d6\u4ee5\u4e0b\u4e3b\u9898\uff1a\u00a0<\/p>\n<ol role=\"list\">\n<li>Webflow API \u7684\u53ef\u80fd\u7528\u9014\u00a0<\/li>\n<li>\u751f\u6210 API \u4ee4\u724c\u7684\u6b65\u9aa4\u00a0<\/li>\n<li>\u521b\u5efa webhook\u00a0<\/li>\n<\/ol>\n<h2>\u63a2\u7d22 Webflow \u7684 API \u53ef\u80fd\u6027\u00a0<\/h2>\n<p>Webflow\u7684API\u53ef\u6ee1\u8db3\u591a\u79cd\u573a\u666f\uff1a\u00a0<\/p>\n<ul role=\"list\">\n<li><a href=\"https:\/\/docs.developers.webflow.com\/v2.0.0\/reference\/list-sites\">\u7ad9\u70b9 API<\/a> \u2014 \u7528\u4e8e\u68c0\u7d22\u7ad9\u70b9\u4fe1\u606f\u00a0<\/li>\n<li><a href=\"https:\/\/docs.developers.webflow.com\/reference\/list-pages\">\u9875\u9762 API<\/a> \u2014 \u7528\u4e8e\u83b7\u53d6\u9875\u9762\u8be6\u7ec6\u4fe1\u606f\u548c\u76f8\u5173\u5143\u6570\u636e\u00a0<\/li>\n<li><a href=\"https:\/\/docs.developers.webflow.com\/v2.0.0\/reference\/list-assets\">\u8d44\u4ea7 API<\/a> \u2014 \u5728 Webflow \u7684\u8d44\u4ea7\u9762\u677f\u4e2d\u7ba1\u7406\u8d44\u4ea7\u3001\u5c06\u8d44\u4ea7\u5206\u914d\u5230\u6587\u4ef6\u5939\u6216\u5217\u51fa\u73b0\u6709\u8d44\u4ea7\u00a0<\/li>\n<li><a href=\"https:\/\/docs.developers.webflow.com\/v2.0.0\/reference\/collection_item_created\">\u5185\u5bb9\u7ba1\u7406\u7cfb\u7edf API<\/a> \u2014 \u7528\u4e8e CMS \u96c6\u5408\u548c\u96c6\u5408\u9879\u7684 CRUD \u64cd\u4f5c\u00a0<\/li>\n<li><a href=\"https:\/\/docs.developers.webflow.com\/v2.0.0\/reference\/list-products\">\u7535\u5b50\u5546\u52a1 API<\/a> \u2014 \u7528\u4e8e\u7535\u5b50\u5546\u52a1\u4ea7\u54c1\u548c\u8ba2\u5355\u7684 CRUD \u64cd\u4f5c\u00a0<\/li>\n<li><a href=\"https:\/\/docs.developers.webflow.com\/v2.0.0\/reference\/memberships_user_account_added\">\u7528\u6237\u5e10\u6237 API<\/a> \u2014 \u7ba1\u7406\u7528\u6237\u5e10\u6237\u00a0<\/li>\n<li><a href=\"https:\/\/docs.developers.webflow.com\/v2.0.0\/reference\/list-forms\">\u8868\u5355 API<\/a> \u2014 \u7528\u4e8e\u8868\u5355\u7ed3\u6784\u548c\u63d0\u4ea4\uff0c\u5c06\u8868\u5355\u8fde\u63a5\u5230\u5916\u90e8\u6570\u636e\u6e90\u00a0<\/li>\n<li><a href=\"https:\/\/docs.developers.webflow.com\/v2.0.0\/reference\/custom-code\">\u81ea\u5b9a\u4e49\u4ee3\u7801 API<\/a> \u2014 \u6dfb\u52a0\u548c\u5904\u7406\u81ea\u5b9a\u4e49\u811a\u672c\u00a0<\/li>\n<li><a href=\"https:\/\/docs.developers.webflow.com\/reference\/designer-api-reference\">\u8bbe\u8ba1\u5668 API<\/a> \u2014 \u7528\u4e8e\u4e0e\u8bbe\u8ba1\u5668\u753b\u5e03\u76f4\u63a5\u4ea4\u4e92\uff0c\u5305\u62ec\u7ba1\u7406\u5143\u7d20\u3001\u6837\u5f0f\u548c\u7ec4\u4ef6\u00a0<\/li>\n<\/ul>\n<p>\u8fd8\u53ef\u4ee5\u8bbe\u7f6e Webhook\uff0c\u4f7f Webflow \u80fd\u591f\u4e0e\u7b2c\u4e09\u65b9\u5e94\u7528\u7a0b\u5e8f\u901a\u4fe1\u3002\u8be6\u7ec6\u4e86\u89e3 Webflow \u7684 API \u529f\u80fd <a href=\"https:\/\/docs.developers.webflow.com\/v2.0.0\/reference\/structure-1\">\u8fd9\u91cc<\/a>.\u00a0<\/p>\n<h2>\u521b\u5efa API \u4ee4\u724c\u00a0<\/h2>\n<p>\u8bbf\u95ee Webflow \u7684 API \u9700\u8981\u8bbf\u95ee\u4ee4\u724c\u4ee5\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1\uff0c\u53ef\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u83b7\u53d6 <a href=\"https:\/\/developers.webflow.com\/reference\/authorization\">\u5f00\u653e\u6388\u6743<\/a> \u6216\u901a\u8fc7\u751f\u6210\u7ad9\u70b9 API \u4ee4\u724c\u3002\u00a0<\/p>\n<p>\u5bf9\u4e8e\u5185\u90e8\u9879\u76ee\uff0c\u751f\u6210\u7ad9\u70b9 API \u4ee4\u724c\u53ef\u4ee5\u52a0\u5feb\u6d41\u7a0b\u3002\u4f46\u662f\uff0c\u5bf9\u4e8e\u65e8\u5728\u66f4\u5e7f\u6cdb\u4f7f\u7528\u7684\u9879\u76ee\uff0c\u4f7f\u7528 Webflow App \u8fdb\u884c <a href=\"https:\/\/developers.webflow.com\/reference\/authorization\">OAuth \u8eab\u4efd\u9a8c\u8bc1<\/a> \u88ab\u63a8\u8350\u3002\u00a0<\/p>\n<p>\u672c\u90e8\u5206\u5c06\u6307\u5bfc\u60a8\u751f\u6210 API \u4ee4\u724c\u4ee5\u66ff\u4ee3 API \u4f7f\u7528\u4e2d\u7684\u5bc6\u7801\u3002\u5c31\u50cf\u5bc6\u7801\u4e00\u6837\uff0cAPI \u4ee4\u724c\uff08\u4e5f\u79f0\u4e3a\u201cAPI \u5bc6\u94a5\u201d\u6216\u201c\u8bbf\u95ee\u4ee4\u724c\u201d\uff09\u53ef\u8bc6\u522b\u8bf7\u6c42\u7684\u7ad9\u70b9\u6216\u5e94\u7528\u7a0b\u5e8f\u3002API \u4ee4\u724c\u8fd8\u914d\u5907\u4e86\u6743\u9650\uff08\u201c\u8303\u56f4\u201d\uff09\uff0c\u7528\u4e8e\u6982\u8ff0\u548c\u7ba1\u7406\u5176\u529f\u80fd\u3002\u00a0<\/p>\n<h6><strong>\u7b14\u8bb0\uff1a<\/strong> API \u4ee4\u724c\u5c06\u5728 365 \u5929\u4e0d\u6d3b\u52a8\u540e\u8fc7\u671f\u3002<\/h6>\n<p>\u8981\u751f\u6210 API \u4ee4\u724c\uff1a\u00a0<\/p>\n<ol role=\"list\">\n<li>\u5bfc\u822a <strong>\u7ad9\u70b9\u8bbe\u7f6e<\/strong> &gt; <strong>\u5e94\u7528\u7a0b\u5e8f\u548c\u96c6\u6210<\/strong> \u6807\u7b7e &gt;<strong> API \u8bbf\u95ee<\/strong><\/li>\n<li>\u70b9\u51fb <strong>\u751f\u6210 API \u4ee4\u724c\u00a0<\/strong><\/li>\n<li>\u8f93\u5165 <strong>\u59d3\u540d<\/strong> \u60a8\u7684 API \u4ee4\u724c<\/li>\n<li>\u4e3a\u6bcf\u4e2a Webflow API \u9009\u62e9\u6240\u9700\u7684\u6743\u9650\uff08\u4f8b\u5982\u65e0\u8bbf\u95ee\u6743\u9650\u3001\u53ea\u8bfb\u6216\u8bfb\u5199\uff09<\/li>\n<li>\u70b9\u51fb <strong>\u751f\u6210 token<\/strong><\/li>\n<li>\u5c06\u751f\u6210\u7684\u4ee4\u724c\u590d\u5236\u5230\u526a\u8d34\u677f<\/li>\n<\/ol>\n<blockquote><p><strong>\u91cd\u8981\u7684\uff1a <\/strong>\u5b89\u5168\u5b58\u50a8\u60a8\u7684 API \u4ee4\u724c\uff0c\u56e0\u4e3a\u5b83\u5305\u542b\u4e2a\u4eba\u548c\u654f\u611f\u4fe1\u606f\uff0c\u7c7b\u4f3c\u4e8e\u5bc6\u7801\u3002\u521b\u5efa\u540e\uff0c\u65e0\u6cd5\u518d\u5728\u4eea\u8868\u677f\u4e2d\u67e5\u770b\u4ee4\u724c\u3002\u62c5\u5fc3\u4ee4\u724c\u88ab\u76d7\u7528\uff1f\u8bf7\u8bbf\u95ee\u4ee5\u4e0b\u7f51\u5740\u751f\u6210\u65b0\u4ee4\u724c <strong>\u7ad9\u70b9\u8bbe\u7f6e<\/strong> &gt;<strong> \u5e94\u7528\u7a0b\u5e8f\u548c\u96c6\u6210<\/strong> \u6807\u7b7e &gt; <strong>API \u8bbf\u95ee<\/strong>\uff0c\u7136\u540e\u5728\u4efb\u4f55\u7b2c\u4e09\u65b9\u8fde\u63a5\u4e2d\u66ff\u6362\u53d7\u635f\u7684\u4ee4\u724c\u3002\u00a0<\/p><\/blockquote>\n<h2>\u5efa\u7acb Webhook\u00a0<\/h2>\n<p>Webhook \u7528\u4e8e\u5728\u7279\u5b9a\u7ad9\u70b9\u4e8b\u4ef6\u53d1\u751f\u65f6\u5c06\u5b9e\u65f6\u6570\u636e\u4ece Webflow \u4f20\u8f93\u5230\u5916\u90e8\u5e94\u7528\u7a0b\u5e8f\u3002\u4ece\u6211\u4eec\u7684\u5f00\u53d1\u4eba\u5458 documentation \u4e86\u89e3\u6709\u5173\u53ef\u7528 webhook \u4e8b\u4ef6\u7684\u66f4\u591a\u4fe1\u606f <a href=\"https:\/\/docs.developers.webflow.com\/reference\/all-events\">\u8fd9\u91cc<\/a>.\u00a0<\/p>\n<p>\u8981\u8bbe\u7f6e webhook\uff1a\u00a0<\/p>\n<ol role=\"list\">\n<li>\u4f7f\u7528\u6743 <strong>\u7ad9\u70b9\u8bbe\u7f6e<\/strong> &gt; <strong>\u5e94\u7528\u7a0b\u5e8f\u548c\u96c6\u6210<\/strong> \u6807\u7b7e &gt; <strong>Webhook<\/strong><\/li>\n<li>\u70b9\u51fb <strong>\u6dfb\u52a0 webhook<\/strong>\u00a0<\/li>\n<li>\u9009\u62e9\u89e6\u53d1\u5668\u7c7b\u578b\uff08\u4f8b\u5982\u8868\u5355\u63d0\u4ea4\u3001\u7f51\u7ad9\u53d1\u5e03\u7b49\uff09\u00a0<\/li>\n<li>\u9009\u62e9 API \u7248\u672c\uff08\u4f8b\u5982 v1 \u6216 v2\uff09<\/li>\n<li>\u63d2\u5165 webhook URL\uff08\u4f8b\u5982 https:\/\/yourdomain.com\/webhook\/webflow\uff09<\/li>\n<\/ol>\n<\/div>","protected":false},"excerpt":{"rendered":"\u4f7f\u7528 Webflow \u7684 API \u6765\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u6216\u4ee5\u7f16\u7a0b\u65b9\u5f0f\u7ba1\u7406\u60a8\u7684\u9759\u6001\u548c\u52a8\u6001\u7ad9\u70b9\u5185\u5bb9\u3002","protected":false},"author":2,"featured_media":5240,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"om_disable_all_campaigns":false,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":"","footnotes":""},"categories":[300],"tags":[],"class_list":{"0":"post-6549","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-cms-dynamic-content","8":"cs-entry"},"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/posts\/6549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/comments?post=6549"}],"version-history":[{"count":0,"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/posts\/6549\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/media\/5189"}],"wp:attachment":[{"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/media?parent=6549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/categories?post=6549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webflow.tenten.co\/zh_cn\/wp-json\/wp\/v2\/tags?post=6549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}