{"id":969406,"date":"2024-12-27T05:16:37","date_gmt":"2024-12-26T21:16:37","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/969406.html"},"modified":"2024-12-27T05:16:40","modified_gmt":"2024-12-26T21:16:40","slug":"python%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0app%e9%81%a5%e6%8e%a7","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/969406.html","title":{"rendered":"python\u5982\u4f55\u5b9e\u73b0app\u9065\u63a7"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24183705\/fd7f87cc-9a68-458d-aa3d-d441b09bd7c2.webp\" alt=\"python\u5982\u4f55\u5b9e\u73b0app\u9065\u63a7\" \/><\/p>\n<p><p> <strong>Python\u5b9e\u73b0APP\u9065\u63a7\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\uff1a\u4f7f\u7528\u84dd\u7259\u901a\u4fe1\u3001\u501f\u52a9Wi-Fi\u7f51\u7edc\u3001\u901a\u8fc7\u7ea2\u5916\u9065\u63a7\u3001\u5229\u7528\u4e91\u670d\u52a1\u3002<\/strong>\u5176\u4e2d\uff0c<strong>\u501f\u52a9Wi-Fi\u7f51\u7edc<\/strong>\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7Python\u7f16\u5199\u7684\u670d\u52a1\u5668\u7aef\u4e0e\u79fb\u52a8\u8bbe\u5907\u7684\u5ba2\u6237\u7aef\u8fdb\u884c\u6570\u636e\u4ea4\u4e92\uff0c\u5b9e\u73b0\u5bf9APP\u7684\u9065\u63a7\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Python\u5b9e\u73b0APP\u9065\u63a7\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u84dd\u7259\u901a\u4fe1<\/p>\n<\/p>\n<p><p>\u84dd\u7259\u901a\u4fe1\u662f\u4e00\u79cd\u77ed\u8ddd\u79bb\u65e0\u7ebf\u4f20\u8f93\u6280\u672f\uff0c\u9002\u7528\u4e8e\u8fd1\u8ddd\u79bb\u8bbe\u5907\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u8f93\u3002Python\u53ef\u4ee5\u901a\u8fc7<code>pybluez<\/code>\u5e93\u5b9e\u73b0\u84dd\u7259\u901a\u4fe1\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5PyBluez\u5e93<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5PyBluez\u5e93\uff0c\u5b83\u662fPython\u4e2d\u7528\u4e8e\u84dd\u7259\u901a\u4fe1\u7684\u5e93\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pybluez<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u84dd\u7259\u670d\u52a1\u7aef<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u521b\u5efa\u4e00\u4e2a\u84dd\u7259\u670d\u52a1\u7aef\uff0c\u76d1\u542c\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u8bf7\u6c42\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import bluetooth<\/p>\n<p>server_socket = bluetooth.BluetoothSocket(bluetooth.RFCOMM)<\/p>\n<p>server_socket.bind((&quot;&quot;, bluetooth.PORT_ANY))<\/p>\n<p>server_socket.listen(1)<\/p>\n<p>port = server_socket.getsockname()[1]<\/p>\n<p>bluetooth.advertise_service(server_socket, &quot;SampleServer&quot;, service_id=&quot;&quot;, service_classes=[bluetooth.SERIAL_PORT_CLASS])<\/p>\n<p>print(&quot;W<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ting for connection on RFCOMM channel&quot;, port)<\/p>\n<p>client_socket, client_info = server_socket.accept()<\/p>\n<p>print(&quot;Accepted connection from&quot;, client_info)<\/p>\n<p>try:<\/p>\n<p>    while True:<\/p>\n<p>        data = client_socket.recv(1024)<\/p>\n<p>        if not data:<\/p>\n<p>            break<\/p>\n<p>        print(&quot;Received&quot;, data)<\/p>\n<p>except OSError:<\/p>\n<p>    pass<\/p>\n<p>client_socket.close()<\/p>\n<p>server_socket.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u84dd\u7259\u5ba2\u6237\u7aef<\/strong><\/p>\n<\/p>\n<p><p>\u5ba2\u6237\u7aef\u53ef\u4ee5\u662f\u53e6\u4e00\u53f0\u8bbe\u5907\u4e0a\u7684Python\u7a0b\u5e8f\uff0c\u7528\u4e8e\u8fde\u63a5\u5230\u670d\u52a1\u5668\u5e76\u53d1\u9001\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import bluetooth<\/p>\n<p>server_mac_address = &#39;00:1A:7D:DA:71:13&#39;  # \u66ff\u6362\u4e3a\u5b9e\u9645\u8bbe\u5907\u7684MAC\u5730\u5740<\/p>\n<p>port = 1<\/p>\n<p>client_socket = bluetooth.BluetoothSocket(bluetooth.RFCOMM)<\/p>\n<p>client_socket.connect((server_mac_address, port))<\/p>\n<p>client_socket.send(&quot;Hello from client&quot;)<\/p>\n<p>client_socket.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u84dd\u7259\u901a\u4fe1\u7684\u4f18\u70b9\u662f\u6613\u4e8e\u5b9e\u73b0\u548c\u90e8\u7f72\uff0c\u4f46\u5b83\u7684\u901a\u4fe1\u8ddd\u79bb\u8f83\u77ed\uff0c\u901a\u5e38\u4e0d\u8d85\u8fc710\u7c73\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u501f\u52a9Wi-Fi\u7f51\u7edc<\/p>\n<\/p>\n<p><p>Wi-Fi\u662f\u53e6\u4e00\u79cd\u5e38\u7528\u7684\u65e0\u7ebf\u901a\u4fe1\u6280\u672f\uff0c\u9002\u7528\u4e8e\u9700\u8981\u66f4\u5927\u8303\u56f4\u7684\u8bbe\u5907\u8fde\u63a5\u3002Python\u53ef\u4ee5\u901a\u8fc7<code>socket<\/code>\u5e93\u5b9e\u73b0Wi-Fi\u7f51\u7edc\u901a\u4fe1\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efaTCP\u670d\u52a1\u5668<\/strong><\/p>\n<\/p>\n<p><p>\u670d\u52a1\u5668\u7aef\u7528\u4e8e\u76d1\u542c\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\u8bf7\u6c42\u5e76\u63a5\u6536\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import socket<\/p>\n<p>server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<\/p>\n<p>server_socket.bind((&#39;0.0.0.0&#39;, 12345))<\/p>\n<p>server_socket.listen(1)<\/p>\n<p>print(&quot;Waiting for connection...&quot;)<\/p>\n<p>client_socket, client_address = server_socket.accept()<\/p>\n<p>print(&quot;Connection from:&quot;, client_address)<\/p>\n<p>try:<\/p>\n<p>    while True:<\/p>\n<p>        data = client_socket.recv(1024)<\/p>\n<p>        if not data:<\/p>\n<p>            break<\/p>\n<p>        print(&quot;Received:&quot;, data.decode(&#39;utf-8&#39;))<\/p>\n<p>except ConnectionError:<\/p>\n<p>    pass<\/p>\n<p>client_socket.close()<\/p>\n<p>server_socket.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efaTCP\u5ba2\u6237\u7aef<\/strong><\/p>\n<\/p>\n<p><p>\u5ba2\u6237\u7aef\u7a0b\u5e8f\u7528\u4e8e\u8fde\u63a5\u5230\u670d\u52a1\u5668\u5e76\u53d1\u9001\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import socket<\/p>\n<p>server_address = &#39;192.168.1.2&#39;  # \u670d\u52a1\u5668IP\u5730\u5740<\/p>\n<p>server_port = 12345<\/p>\n<p>client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)<\/p>\n<p>client_socket.connect((server_address, server_port))<\/p>\n<p>client_socket.sendall(b&quot;Hello from client&quot;)<\/p>\n<p>client_socket.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>Wi-Fi\u7f51\u7edc\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u8f83\u5927\u7684\u8986\u76d6\u8303\u56f4\u548c\u8f83\u9ad8\u7684\u4f20\u8f93\u901f\u5ea6\uff0c\u975e\u5e38\u9002\u5408\u667a\u80fd\u5bb6\u5c45\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u901a\u8fc7\u7ea2\u5916\u9065\u63a7<\/p>\n<\/p>\n<p><p>\u7ea2\u5916\u9065\u63a7\u9002\u7528\u4e8e\u77ed\u8ddd\u79bb\u8bbe\u5907\u63a7\u5236\uff0c\u9700\u8981\u4f7f\u7528Python\u652f\u6301\u7684\u7ea2\u5916\u4f20\u611f\u5668\u548c\u53d1\u5c04\u5668\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u786c\u4ef6\u51c6\u5907<\/strong><\/p>\n<\/p>\n<p><p>\u9700\u8981\u51c6\u5907\u7ea2\u5916\u53d1\u5c04\u5668\u548c\u63a5\u6536\u5668\uff0c\u5e76\u5c06\u5176\u8fde\u63a5\u5230\u8ba1\u7b97\u673a\u6216\u5f00\u53d1\u677f\uff08\u5982Raspberry Pi\uff09\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u5fc5\u8981\u5e93<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>lirc<\/code>\u5e93\u6765\u63a7\u5236\u7ea2\u5916\u8bbe\u5907\u3002\u5b89\u88c5\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt-get install lirc<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6eLIRC<\/strong><\/p>\n<\/p>\n<p><p>\u914d\u7f6eLIRC\u4ee5\u652f\u6301\u7279\u5b9a\u7684\u7ea2\u5916\u8bbe\u5907\u3002\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e<code>\/etc\/lirc\/lircd.conf<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Python\u63a7\u5236\u7ea2\u5916\u8bbe\u5907<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u63a7\u5236\u7ea2\u5916\u8bbe\u5907\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import lirc<\/p>\n<p>sockid = lirc.init(&quot;myprogram&quot;)<\/p>\n<p>lirc.send_once(sockid, &quot;remote_name&quot;, &quot;key_name&quot;)<\/p>\n<p>lirc.deinit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u7ea2\u5916\u9065\u63a7\u9002\u7528\u4e8e\u7b80\u5355\u7684\u8bbe\u5907\u63a7\u5236\uff0c\u4f46\u8981\u6c42\u8bbe\u5907\u6709\u7ea2\u5916\u63a5\u6536\u80fd\u529b\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5229\u7528\u4e91\u670d\u52a1<\/p>\n<\/p>\n<p><p>\u5229\u7528\u4e91\u670d\u52a1\u53ef\u4ee5\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u548c\u8de8\u5730\u57df\u8bbe\u5907\u7ba1\u7406\u3002\u53ef\u4ee5\u4f7f\u7528<code>Flask<\/code>\u6216<code>Django<\/code>\u642d\u5efa\u4e00\u4e2aWeb\u670d\u52a1\uff0c\u7ed3\u5408\u4e91\u5e73\u53f0\u8fdb\u884c\u6570\u636e\u4f20\u8f93\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Flask<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Flask\u5feb\u901f\u521b\u5efa\u4e00\u4e2aWeb\u670d\u52a1\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install flask<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efaFlask\u5e94\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Flask\u5e94\u7528\uff0c\u63a5\u6536\u5ba2\u6237\u7aef\u7684HTTP\u8bf7\u6c42\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from flask import Flask, request<\/p>\n<p>app = Flask(__name__)<\/p>\n<p>@app.route(&#39;\/control&#39;, methods=[&#39;POST&#39;])<\/p>\n<p>def control():<\/p>\n<p>    command = request.json.get(&#39;command&#39;)<\/p>\n<p>    print(&quot;Received command:&quot;, command)<\/p>\n<p>    # \u5904\u7406\u547d\u4ee4<\/p>\n<p>    return &quot;Command received&quot;, 200<\/p>\n<p>if __name__ == &#39;__main__&#39;:<\/p>\n<p>    app.run(host=&#39;0.0.0.0&#39;, port=5000)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u90e8\u7f72\u5230\u4e91\u5e73\u53f0<\/strong><\/p>\n<\/p>\n<p><p>\u5c06Flask\u5e94\u7528\u90e8\u7f72\u5230\u4e91\u5e73\u53f0\uff08\u5982AWS\u3001Google Cloud\uff09\u4ee5\u5b9e\u73b0\u8fdc\u7a0b\u8bbf\u95ee\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5ba2\u6237\u7aef\u53d1\u9001\u8bf7\u6c42<\/strong><\/p>\n<\/p>\n<p><p>\u5ba2\u6237\u7aef\u53ef\u4ee5\u901a\u8fc7HTTP\u8bf7\u6c42\u53d1\u9001\u63a7\u5236\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>url = &#39;http:\/\/your-cloud-service-url\/control&#39;<\/p>\n<p>data = {&#39;command&#39;: &#39;TURN_ON_LIGHT&#39;}<\/p>\n<p>response = requests.post(url, json=data)<\/p>\n<p>print(&quot;Response:&quot;, response.text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u5229\u7528\u4e91\u670d\u52a1\u5b9e\u73b0\u7684\u9065\u63a7\u529f\u80fd\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u6269\u5c55\u5230\u5168\u7403\u8303\u56f4\uff0c\u8fd8\u53ef\u4ee5\u7ed3\u5408\u5176\u4ed6\u4e91\u670d\u52a1\uff08\u5982\u6570\u636e\u5e93\u3001<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\uff09\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\uff0cPython\u5b9e\u73b0APP\u9065\u63a7\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u7684\u9700\u6c42\u548c\u6280\u672f\u6761\u4ef6\u9009\u62e9\u5408\u9002\u7684\u65b9\u6848\u3002\u65e0\u8bba\u662f\u84dd\u7259\u3001Wi-Fi\u3001\u7ea2\u5916\u8fd8\u662f\u4e91\u670d\u52a1\uff0c\u6bcf\u79cd\u6280\u672f\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u52bf\u548c\u5e94\u7528\u573a\u666f\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u591a\u79cd\u6280\u672f\u4ee5\u5b9e\u73b0\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\u548c\u7cfb\u7edf\u6027\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5b9e\u73b0\u5bf9\u624b\u673a\u5e94\u7528\u7684\u9065\u63a7\u529f\u80fd\uff1f<\/strong><br \/>\u8981\u901a\u8fc7Python\u5b9e\u73b0\u5bf9\u624b\u673a\u5e94\u7528\u7684\u9065\u63a7\uff0c\u901a\u5e38\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\uff0c\u4f8b\u5982ADB\uff08Android Debug Bridge\uff09\u6216Appium\u7b49\u3002\u8fd9\u4e9b\u5de5\u5177\u5141\u8bb8\u4f60\u4e0e\u8bbe\u5907\u8fdb\u884c\u4ea4\u4e92\uff0c\u53d1\u9001\u547d\u4ee4\uff0c\u6a21\u62df\u7528\u6237\u64cd\u4f5c\u3002\u4f60\u9700\u8981\u786e\u4fdd\u624b\u673a\u5f00\u542f\u4e86\u5f00\u53d1\u8005\u6a21\u5f0f\u5e76\u8fde\u63a5\u5230\u7535\u8111\u3002<\/p>\n<p><strong>\u5b9e\u73b0app\u9065\u63a7\u9700\u8981\u54ea\u4e9b\u524d\u671f\u51c6\u5907\uff1f<\/strong><br \/>\u5728\u5f00\u59cb\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u5df2\u5b89\u88c5Python\u53ca\u76f8\u5173\u7684\u5e93\uff0c\u4f8b\u5982<code>adb<\/code>\u6216<code>Appium-Python-Client<\/code>\u3002\u6b64\u5916\uff0c\u9700\u8981\u5728\u624b\u673a\u4e0a\u542f\u7528USB\u8c03\u8bd5\uff0c\u5e76\u5c06\u8bbe\u5907\u4e0e\u7535\u8111\u8fde\u63a5\u3002\u4e86\u89e3\u8981\u9065\u63a7\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u5177\u4f53\u64cd\u4f5c\u4e5f\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u8fd9\u6837\u4f60\u624d\u80fd\u7f16\u5199\u51fa\u6709\u6548\u7684\u63a7\u5236\u811a\u672c\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u9065\u63a7\u5e94\u7528\u65f6\u53ef\u80fd\u9047\u5230\u54ea\u4e9b\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Python\u8fdb\u884c\u5e94\u7528\u9065\u63a7\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u95ee\u9898\uff0c\u6bd4\u5982\u8fde\u63a5\u4e0d\u7a33\u5b9a\u3001\u547d\u4ee4\u6267\u884c\u5931\u8d25\u6216\u517c\u5bb9\u6027\u95ee\u9898\u7b49\u3002\u5982\u679c\u51fa\u73b0\u8fd9\u4e9b\u60c5\u51b5\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u68c0\u67e5USB\u8fde\u63a5\u3001\u66f4\u65b0\u9a71\u52a8\u7a0b\u5e8f\u6216\u786e\u8ba4\u624b\u673a\u7684\u5f00\u53d1\u8005\u9009\u9879\u8bbe\u7f6e\u662f\u5426\u6b63\u786e\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u4f7f\u7528\u7684\u5e93\u7248\u672c\u4e0e\u8bbe\u5907\u517c\u5bb9\u4e5f\u975e\u5e38\u91cd\u8981\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5b9e\u73b0APP\u9065\u63a7\u7684\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\uff1a\u4f7f\u7528\u84dd\u7259\u901a\u4fe1\u3001\u501f\u52a9Wi-Fi\u7f51\u7edc\u3001\u901a\u8fc7\u7ea2\u5916\u9065\u63a7\u3001\u5229\u7528\u4e91\u670d\u52a1\u3002\u5176\u4e2d\uff0c\u501f [&hellip;]","protected":false},"author":3,"featured_media":969415,"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\/969406"}],"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=969406"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/969406\/revisions"}],"predecessor-version":[{"id":969416,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/969406\/revisions\/969416"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/969415"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=969406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=969406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=969406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}