{"id":1039748,"date":"2024-12-31T12:35:17","date_gmt":"2024-12-31T04:35:17","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1039748.html"},"modified":"2024-12-31T12:35:20","modified_gmt":"2024-12-31T04:35:20","slug":"python%e5%a6%82%e4%bd%95%e8%b0%83%e7%94%a8%e5%be%ae%e4%bf%a1%e6%94%af%e4%bb%98%e5%ae%9d","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1039748.html","title":{"rendered":"python\u5982\u4f55\u8c03\u7528\u5fae\u4fe1\u652f\u4ed8\u5b9d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/b88cdba0-12ca-40b3-a67d-e35620c6b50b.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u8c03\u7528\u5fae\u4fe1\u652f\u4ed8\u5b9d\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u8c03\u7528\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u7684\u63a5\u53e3\u4e3b\u8981\u7528\u4e8e\u652f\u4ed8\u96c6\u6210\u3001\u53d1\u9001\u6d88\u606f\u3001\u7528\u6237\u9a8c\u8bc1\u7b49\u529f\u80fd\u3002<strong>\u4e86\u89e3\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u7684API\u6587\u6863\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u3001\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570<\/strong>\u7b49\u662fPython\u8c03\u7528\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u7684\u4e3b\u8981\u65b9\u5f0f\u3002\u6211\u4eec\u5c06\u8be6\u7ec6\u8bb2\u89e3\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\u7684\u4e00\u4e2a\uff1a\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\uff0c\u5e76\u63d0\u4f9b\u5177\u4f53\u7684\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4e86\u89e3\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u7684API\u6587\u6863<\/p>\n<\/p>\n<p><p>\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u90fd\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684API\u6587\u6863\uff0c\u8fd9\u4e9b\u6587\u6863\u8be6\u7ec6\u63cf\u8ff0\u4e86\u5982\u4f55\u8c03\u7528\u5404\u4e2a\u63a5\u53e3\uff0c\u5305\u62ec\u6240\u9700\u7684\u53c2\u6570\u3001\u8fd4\u56de\u503c\u4ee5\u53ca\u4e00\u4e9b\u6ce8\u610f\u4e8b\u9879\u3002\u9605\u8bfb\u5e76\u7406\u89e3\u8fd9\u4e9b\u6587\u6863\u662f\u5b9e\u65bd\u4efb\u4f55\u96c6\u6210\u5de5\u4f5c\u7684\u7b2c\u4e00\u6b65\u3002<\/p>\n<\/p>\n<p><p>\u5fae\u4fe1\u7684API\u6587\u6863\u53ef\u4ee5\u5728\u5176\u5b98\u65b9\u7f51\u7ad9\u627e\u5230\uff0c\u652f\u4ed8\u5b9d\u7684API\u6587\u6863\u540c\u6837\u53ef\u4ee5\u5728\u5176\u5b98\u65b9\u7f51\u7ad9\u627e\u5230\u3002\u4f60\u9700\u8981\u5728\u8fd9\u4e9b\u5e73\u53f0\u4e0a\u6ce8\u518c\u5e76\u83b7\u5f97\u76f8\u5e94\u7684API Key\u548c\u5bc6\u94a5\uff0c\u4ee5\u4fbf\u8fdb\u884c\u63a5\u53e3\u8c03\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6709\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u65b9\u4fbf\u5730\u8c03\u7528\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u7684API\u3002\u4f8b\u5982\uff0c<code>wechatpy<\/code>\u662f\u4e00\u4e2a\u6d41\u884c\u7684\u5fae\u4fe1\u5f00\u53d1\u5e93\uff0c\u800c<code>alipay-sdk-python<\/code>\u662f\u652f\u4ed8\u5b9d\u7684\u5b98\u65b9SDK\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5\u7b2c\u4e09\u65b9\u5e93<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b89\u88c5\u8fd9\u4e9b\u5e93\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pip install wechatpy<\/p>\n<p>pip install alipay-sdk-python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528wechatpy\u8c03\u7528\u5fae\u4fe1API<\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u5c55\u793a\u5982\u4f55\u4f7f\u7528<code>wechatpy<\/code>\u53d1\u9001\u4e00\u4e2a\u6a21\u677f\u6d88\u606f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from wechatpy import WeChatClient<\/p>\n<h2><strong>\u521b\u5efaWeChatClient\u5b9e\u4f8b<\/strong><\/h2>\n<p>client = WeChatClient(&#39;your_appid&#39;, &#39;your_secret&#39;)<\/p>\n<h2><strong>\u51c6\u5907\u6d88\u606f\u6570\u636e<\/strong><\/h2>\n<p>data = {<\/p>\n<p>    &quot;touser&quot;: &quot;user_openid&quot;,<\/p>\n<p>    &quot;template_id&quot;: &quot;template_id&quot;,<\/p>\n<p>    &quot;url&quot;: &quot;http:\/\/weixin.qq.com\/download&quot;,<\/p>\n<p>    &quot;data&quot;: {<\/p>\n<p>        &quot;first&quot;: {<\/p>\n<p>            &quot;value&quot;: &quot;Hello&quot;,<\/p>\n<p>            &quot;color&quot;: &quot;#173177&quot;<\/p>\n<p>        },<\/p>\n<p>        &quot;keyword1&quot;: {<\/p>\n<p>            &quot;value&quot;: &quot;Keyword1&quot;,<\/p>\n<p>            &quot;color&quot;: &quot;#173177&quot;<\/p>\n<p>        },<\/p>\n<p>        &quot;keyword2&quot;: {<\/p>\n<p>            &quot;value&quot;: &quot;Keyword2&quot;,<\/p>\n<p>            &quot;color&quot;: &quot;#173177&quot;<\/p>\n<p>        },<\/p>\n<p>        &quot;remark&quot;: {<\/p>\n<p>            &quot;value&quot;: &quot;Goodbye&quot;,<\/p>\n<p>            &quot;color&quot;: &quot;#173177&quot;<\/p>\n<p>        }<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<h2><strong>\u53d1\u9001\u6a21\u677f\u6d88\u606f<\/strong><\/h2>\n<p>response = client.message.send_template(data)<\/p>\n<p>print(response)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u4f7f\u7528alipay-sdk-python\u8c03\u7528\u652f\u4ed8\u5b9dAPI<\/li>\n<\/ol>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u5c55\u793a\u5982\u4f55\u4f7f\u7528<code>alipay-sdk-python<\/code>\u8fdb\u884c\u652f\u4ed8\u8bf7\u6c42\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from alipay import AliPay<\/p>\n<h2><strong>\u521b\u5efaAliPay\u5b9e\u4f8b<\/strong><\/h2>\n<p>alipay = AliPay(<\/p>\n<p>    appid=&quot;your_appid&quot;,<\/p>\n<p>    app_notify_url=&quot;http:\/\/example.com\/notify&quot;,  # \u9ed8\u8ba4\u56de\u8c03url<\/p>\n<p>    app_private_key_string=open(&quot;path\/to\/your\/private_key.pem&quot;).read(),<\/p>\n<p>    alipay_public_key_string=open(&quot;path\/to\/alipay_public_key.pem&quot;).read(),<\/p>\n<p>    sign_type=&quot;RSA2&quot;,  # RSA or RSA2<\/p>\n<p>    debug=True  # False by default<\/p>\n<p>)<\/p>\n<h2><strong>\u51c6\u5907\u8ba2\u5355\u6570\u636e<\/strong><\/h2>\n<p>order_string = alipay.api_alipay_trade_page_pay(<\/p>\n<p>    out_trade_no=&quot;20161112&quot;,<\/p>\n<p>    total_amount=88.88,<\/p>\n<p>    subject=&quot;Test Order&quot;,<\/p>\n<p>    return_url=&quot;http:\/\/example.com\/return&quot;,<\/p>\n<p>    notify_url=&quot;http:\/\/example.com\/notify&quot;  # \u53ef\u9009, \u4e0d\u586b\u5219\u4f7f\u7528\u9ed8\u8ba4notify url<\/p>\n<p>)<\/p>\n<h2><strong>\u751f\u6210\u652f\u4ed8\u9875\u9762URL<\/strong><\/h2>\n<p>url = &quot;https:\/\/openapi.alipaydev.com\/gateway.do?&quot; + order_string<\/p>\n<p>print(url)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u5c06\u8fd9\u4e9b\u8c03\u7528\u5c01\u88c5\u6210\u51fd\u6570\uff0c\u4ee5\u4fbf\u5728\u9879\u76ee\u4e2d\u66f4\u65b9\u4fbf\u5730\u4f7f\u7528\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f8b\u5b50\uff0c\u5c55\u793a\u5982\u4f55\u5c01\u88c5\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u7684\u652f\u4ed8\u529f\u80fd\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def send_wechat_template_message(appid, secret, openid, template_id, url, data):<\/p>\n<p>    from wechatpy import WeChatClient<\/p>\n<p>    client = WeChatClient(appid, secret)<\/p>\n<p>    message_data = {<\/p>\n<p>        &quot;touser&quot;: openid,<\/p>\n<p>        &quot;template_id&quot;: template_id,<\/p>\n<p>        &quot;url&quot;: url,<\/p>\n<p>        &quot;data&quot;: data<\/p>\n<p>    }<\/p>\n<p>    response = client.message.send_template(message_data)<\/p>\n<p>    return response<\/p>\n<p>def create_alipay_payment(appid, private_key_path, alipay_public_key_path, out_trade_no, total_amount, subject, return_url, notify_url):<\/p>\n<p>    from alipay import AliPay<\/p>\n<p>    alipay = AliPay(<\/p>\n<p>        appid=appid,<\/p>\n<p>        app_notify_url=notify_url,<\/p>\n<p>        app_private_key_string=open(private_key_path).read(),<\/p>\n<p>        alipay_public_key_string=open(alipay_public_key_path).read(),<\/p>\n<p>        sign_type=&quot;RSA2&quot;,<\/p>\n<p>        debug=True<\/p>\n<p>    )<\/p>\n<p>    order_string = alipay.api_alipay_trade_page_pay(<\/p>\n<p>        out_trade_no=out_trade_no,<\/p>\n<p>        total_amount=total_amount,<\/p>\n<p>        subject=subject,<\/p>\n<p>        return_url=return_url,<\/p>\n<p>        notify_url=notify_url<\/p>\n<p>    )<\/p>\n<p>    url = &quot;https:\/\/openapi.alipaydev.com\/gateway.do?&quot; + order_string<\/p>\n<p>    return url<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u9879\u76ee\u5b9e\u8df5\u4e2d\u7684\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u5168\u6027\uff1a<\/strong>\u5728\u5904\u7406\u652f\u4ed8\u4fe1\u606f\u65f6\uff0c\u52a1\u5fc5\u786e\u4fdd\u4f60\u7684API\u5bc6\u94a5\u548c\u8bc1\u4e66\u6587\u4ef6\u7684\u5b89\u5168\u3002\u4e0d\u8981\u5c06\u5b83\u4eec\u786c\u7f16\u7801\u5728\u4ee3\u7801\u4e2d\uff0c\u5efa\u8bae\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u6216\u914d\u7f6e\u6587\u4ef6\u7ba1\u7406\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9519\u8bef\u5904\u7406\uff1a<\/strong>\u5728\u8c03\u7528API\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u5404\u79cd\u9519\u8bef\u60c5\u51b5\uff0c\u5982\u7f51\u7edc\u5f02\u5e38\u3001\u53c2\u6570\u9519\u8bef\u3001\u6743\u9650\u4e0d\u8db3\u7b49\u3002\u8bf7\u52a1\u5fc5\u6dfb\u52a0\u9519\u8bef\u5904\u7406\u903b\u8f91\uff0c\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u7684\u5065\u58ee\u6027\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u65e5\u5fd7\u8bb0\u5f55\uff1a<\/strong>\u8bb0\u5f55API\u8c03\u7528\u7684\u65e5\u5fd7\u4fe1\u606f\uff0c\u4ee5\u4fbf\u5728\u51fa\u73b0\u95ee\u9898\u65f6\u80fd\u591f\u8ffd\u8e2a\u548c\u8c03\u8bd5\u3002\u8fd9\u4e9b\u65e5\u5fd7\u5305\u62ec\u8bf7\u6c42\u7684\u53c2\u6570\u3001\u54cd\u5e94\u7ed3\u679c\u3001\u9519\u8bef\u4fe1\u606f\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6d4b\u8bd5\u73af\u5883\uff1a<\/strong>\u5728\u4e0a\u7ebf\u4e4b\u524d\uff0c\u4e00\u5b9a\u8981\u5728\u6d4b\u8bd5\u73af\u5883\u4e2d\u8fdb\u884c\u5145\u5206\u7684\u6d4b\u8bd5\u3002\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u90fd\u63d0\u4f9b\u4e86\u6c99\u7bb1\u73af\u5883\uff0c\u53ef\u4ee5\u6a21\u62df\u771f\u5b9e\u7684\u652f\u4ed8\u573a\u666f\u8fdb\u884c\u6d4b\u8bd5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5728Python\u4e2d\u65b9\u4fbf\u5730\u8c03\u7528\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u7684API\uff0c\u4ece\u800c\u5b9e\u73b0\u652f\u4ed8\u96c6\u6210\u3001\u53d1\u9001\u6d88\u606f\u7b49\u529f\u80fd\u3002<strong>\u4e86\u89e3\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u7684API\u6587\u6863\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u3001\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570<\/strong>\u662f\u5b9e\u73b0\u8fd9\u4e9b\u529f\u80fd\u7684\u5173\u952e\u6b65\u9aa4\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u5982\u679c\u4f60\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\u9047\u5230\u4efb\u4f55\u95ee\u9898\uff0c\u5efa\u8bae\u67e5\u9605\u5b98\u65b9\u6587\u6863\u6216\u5bfb\u6c42\u4e13\u4e1a\u6280\u672f\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u4e0e\u5fae\u4fe1\u652f\u4ed8\u8fdb\u884c\u96c6\u6210\uff1f<\/strong><br \/>\u8981\u5728Python\u4e2d\u96c6\u6210\u5fae\u4fe1\u652f\u4ed8\uff0c\u53ef\u4ee5\u4f7f\u7528\u5fae\u4fe1\u63d0\u4f9b\u7684API\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5728\u5fae\u4fe1\u5546\u6237\u5e73\u53f0\u6ce8\u518c\u5e76\u83b7\u53d6\u5546\u6237\u53f7\u548cAPI\u5bc6\u94a5\u3002\u63a5\u7740\uff0c\u4f7f\u7528Python\u7684requests\u5e93\u53d1\u9001HTTP\u8bf7\u6c42\uff0c\u8c03\u7528\u5fae\u4fe1\u652f\u4ed8\u7684\u76f8\u5173\u63a5\u53e3\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u8ba2\u5355\u3001\u67e5\u8be2\u8ba2\u5355\u72b6\u6001\u4ee5\u53ca\u5904\u7406\u652f\u4ed8\u7ed3\u679c\u7b49\u3002\u5728\u4ee3\u7801\u4e2d\uff0c\u786e\u4fdd\u6b63\u786e\u5904\u7406\u8fd4\u56de\u7684JSON\u6570\u636e\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u9519\u8bef\u5904\u7406\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5b9e\u73b0\u652f\u4ed8\u5b9d\u7684\u652f\u4ed8\u529f\u80fd\uff1f<\/strong><br \/>\u8981\u5728Python\u4e2d\u5b9e\u73b0\u652f\u4ed8\u5b9d\u652f\u4ed8\uff0c\u60a8\u9700\u8981\u5728\u652f\u4ed8\u5b9d\u5f00\u653e\u5e73\u53f0\u6ce8\u518c\u8d26\u53f7\u5e76\u7533\u8bf7\u76f8\u5173\u7684\u63a5\u53e3\u6743\u9650\u3002\u83b7\u53d6\u5fc5\u8981\u7684\u53c2\u6570\u540e\uff0c\u4f7f\u7528Python\u7684\u5e93\uff0c\u5982Alipay-Python-SDK\uff0c\u6765\u6784\u5efa\u652f\u4ed8\u8bf7\u6c42\u3002\u901a\u8fc7\u6784\u5efa\u8ba2\u5355\u4fe1\u606f\u5e76\u8c03\u7528\u652f\u4ed8\u5b9d\u7684API\u63a5\u53e3\uff0c\u60a8\u53ef\u4ee5\u5b9e\u73b0\u652f\u4ed8\u529f\u80fd\u3002\u8bb0\u5f97\u5904\u7406\u5f02\u6b65\u901a\u77e5\uff0c\u4ee5\u786e\u4fdd\u80fd\u591f\u53ca\u65f6\u66f4\u65b0\u8ba2\u5355\u72b6\u6001\u3002<\/p>\n<p><strong>\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u652f\u4ed8\u7684\u5b89\u5168\u6027\u5982\u4f55\u4fdd\u8bc1\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Python\u8c03\u7528\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u652f\u4ed8\u65f6\uff0c\u5b89\u5168\u6027\u81f3\u5173\u91cd\u8981\u3002\u786e\u4fdd\u901a\u8fc7HTTPS\u534f\u8bae\u8fdb\u884c\u6240\u6709\u8bf7\u6c42\uff0c\u4ee5\u4fdd\u62a4\u6570\u636e\u4f20\u8f93\u7684\u5b89\u5168\u3002\u540c\u65f6\uff0c\u4f7f\u7528API\u5bc6\u94a5\u548c\u5546\u6237\u53f7\u7b49\u654f\u611f\u4fe1\u606f\u65f6\uff0c\u8981\u91c7\u53d6\u9002\u5f53\u7684\u63aa\u65bd\uff0c\u5982\u73af\u5883\u53d8\u91cf\u5b58\u50a8\u548c\u52a0\u5bc6\u3002\u5bf9\u8fd4\u56de\u7684\u6570\u636e\u8fdb\u884c\u6821\u9a8c\uff0c\u4ee5\u9632\u6b62\u4f2a\u9020\u8bf7\u6c42\u548c\u91cd\u653e\u653b\u51fb\u3002\u6b64\u5916\uff0c\u719f\u6089\u5e76\u9075\u5faa\u5404\u81ea\u5e73\u53f0\u7684\u5b89\u5168\u6700\u4f73\u5b9e\u8df5\u4e5f\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8c03\u7528\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u7684\u63a5\u53e3\u4e3b\u8981\u7528\u4e8e\u652f\u4ed8\u96c6\u6210\u3001\u53d1\u9001\u6d88\u606f\u3001\u7528\u6237\u9a8c\u8bc1\u7b49\u529f\u80fd\u3002\u4e86\u89e3\u5fae\u4fe1\u548c\u652f\u4ed8\u5b9d\u7684API\u6587\u6863 [&hellip;]","protected":false},"author":3,"featured_media":1039764,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1039748"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1039748"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1039748\/revisions"}],"predecessor-version":[{"id":1039770,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1039748\/revisions\/1039770"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1039764"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1039748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1039748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1039748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}