{"id":151604,"date":"2020-08-26T13:06:18","date_gmt":"2020-08-26T05:06:18","guid":{"rendered":"http:\/\/4563.org\/?p=151604"},"modified":"2020-08-26T13:06:18","modified_gmt":"2020-08-26T05:06:18","slug":"%e8%bd%af%e4%bb%b6%e5%bc%80%e5%8f%91%e6%8a%80%e6%9c%af%e5%8d%9a%e6%96%87%e5%a4%b4%e6%9d%a1-api-%e6%8e%a5%e5%8f%a3","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=151604","title":{"rendered":"\u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\u535a\u6587\u5934\u6761 API \u63a5\u53e3"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\u535a\u6587\u5934\u6761 API \u63a5\u53e3               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Parry <\/span>  <span><i><\/i> 19<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\u535a\u6587\u5934\u6761 API \u63a5\u53e3<\/p>\n<p>\u63d0\u4f9b\u6280\u672f\u535a\u5ba2\u7684\u5934\u6761\u6587\u7ae0\u6570\u636e<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200907_5f563238da01d.jpg\" alt=\"\u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\u535a\u6587\u5934\u6761 API \u63a5\u53e3\" \/><\/p>\n<h1>1. \u4ea7\u54c1\u529f\u80fd<\/h1>\n<p> <\/p>\n<ul>\n<li>\u63d0\u4f9b\u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\u5934\u6761\u535a\u5ba2\u6587\u7ae0\u6570\u636e\uff1b<\/li>\n<li>\u6bcf\u65e5\u66f4\u65b0\u4e24\u6b21\u6570\u636e\uff1b<\/li>\n<li>\u6570\u636e\u6293\u53d6\u4e0e\u6587\u7ae0\u8d28\u91cf\u7b5b\u9009\u57fa\u4e8e\u673a\u5668\u5b66\u4e60\uff1b<\/li>\n<li>\u5168\u63a5\u53e3\u652f\u6301 HTTPS \uff08 TLS v1.0 \/ v1.1 \/ v1.2 \/ v1.3 \uff09\uff1b<\/li>\n<li>\u5168\u9762\u517c\u5bb9 Apple ATS \uff1b<\/li>\n<li>\u5168\u56fd\u591a\u8282\u70b9 CDN \u90e8\u7f72\uff1b<\/li>\n<li>\u63a5\u53e3\u6781\u901f\u54cd\u5e94\uff0c\u591a\u53f0\u670d\u52a1\u5668\u6784\u5efa API \u63a5\u53e3\u8d1f\u8f7d\u5747\u8861\u3002<\/li>\n<\/ul>\n<h1>2. API \u6587\u6863<\/h1>\n<p> <\/p>\n<p><strong>API \u8be6\u60c5\u5730\u5740:<\/strong> https:\/\/www.gugudata.com\/api\/details\/techblogs<\/p>\n<p><strong>\u63a5\u53e3\u8bf7\u6c42\u5730\u5740:<\/strong> https:\/\/api.gugudata.com\/news\/techblogs<\/p>\n<p><strong>\u8fd4\u56de\u683c\u5f0f:<\/strong> application\/json; charset=utf-8<\/p>\n<p><strong>\u8bf7\u6c42\u65b9\u5f0f:<\/strong> GET<\/p>\n<p><strong>\u8bf7\u6c42\u534f\u8bae:<\/strong> HTTPS<\/p>\n<p><strong>\u8bf7\u6c42\u793a\u4f8b:<\/strong> https:\/\/api.gugudata.com\/news\/techblogs?appkey=YOUR_APPKEY&amp;pagesize=10&amp;pageindex=1<\/p>\n<p><strong>\u63a5\u53e3\u6d4b\u8bd5:<\/strong> https:\/\/api.gugudata.com\/news\/techblogs\/demo<\/p>\n<h1>3. \u8bf7\u6c42\u53c2\u6570\uff08\u5982\u679c\u4e3a POST \u8bf7\u6c42\uff0c\u90a3\u4e48\u53c2\u6570\u4ee5 JSON \u7684\u683c\u5f0f\u4f20\u9012\uff09<\/h1>\n<p> <\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200907_5f56323eb6d25.png\" alt=\"\u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\u535a\u6587\u5934\u6761 API \u63a5\u53e3\" \/><\/p>\n<h1>4. \u8fd4\u56de\u53c2\u6570<\/h1>\n<p> <\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200907_5f563244b92f1.png\" alt=\"\u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\u535a\u6587\u5934\u6761 API \u63a5\u53e3\" \/><\/p>\n<h1>5. \u5f00\u53d1\u8bed\u8a00\u8bf7\u6c42\u793a\u4f8b\u4ee3\u7801<\/h1>\n<p> <\/p>\n<p>\u793a\u4f8b\u4ee3\u7801\u5305\u542b\u7684\u5f00\u53d1\u8bed\u8a00\uff1aC#, Go, Java, jQuery, Node.js, Objective-C, PHP, Python, Ruby, Swift \u7b49\uff0c\u5176\u4ed6\u8bed\u8a00\u8fdb\u884c\u5bf9\u5e94\u7684 RESTful API \u8bf7\u6c42\u5b9e\u73b0\u5373\u53ef\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200907_5f56324a7dead.png\" alt=\"\u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\u535a\u6587\u5934\u6761 API \u63a5\u53e3\" \/><\/p>\n<p>\u5495\u5495\u6570\u636e\uff0c\u4e13\u4e1a\u7684\u6570\u636e\u63d0\u4f9b\u5546\uff0c\u63d0\u4f9b\u4e13\u4e1a\u5168\u9762\u7684\u6570\u636e\u63a5\u53e3\u3001\u5546\u4e1a\u6570\u636e\u5206\u6790\uff0c\u8ba9\u6570\u636e\u6210\u4e3a\u60a8\u7684\u751f\u4ea7\u539f\u6599\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200907_5f56325387a56.png\" alt=\"\u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\u535a\u6587\u5934\u6761 API \u63a5\u53e3\" \/><\/p>\n<p>\u5495\u5495\u6570\u636e\u57fa\u4e8e\u6211\u4eec\u4e94\u5e74\u6765\u4e3a\u4f01\u4e1a\u5ba2\u6237\u63d0\u4f9b\u7684\u6d77\u91cf\u6570\u636e\u652f\u6491\uff0c\u5c06\u90e8\u5206\u901a\u7528\u6570\u636e\u3001\u901a\u7528\u529f\u80fd\u62bd\u8c61\u6210\u4ea7\u54c1\u7ea7 API\uff0c\u5927\u5927\u6ee1\u8db3\u4e86\u7528\u6237\u5728\u4ea7\u54c1\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u5bf9\u57fa\u7840\u6570\u636e\u7684\u9700\u6c42\uff0c\u540c\u65f6\u964d\u4f4e\u4e86\u590d\u6742\u529f\u80fd\u7684\u5b9e\u73b0\u95e8\u69db\u4e0e\u4eba\u529b\u6210\u672c\u3002<\/p>\n<p>\u9664\u4e86\u6211\u4eec\u5df2\u5f00\u653e\u7684\u5206\u7c7b\u6570\u636e\u4e0e\u63a5\u53e3\u5916\uff0c\u8fd8\u6709\u6d77\u91cf\u6570\u636e\u6b63\u5728\u6574\u7406\u3001\u6e05\u6d17\u3001\u6574\u5408\u3001\u6784\u5efa\u4e2d\uff0c\u540e\u671f\u4f1a\u5f00\u653e\u66f4\u591a\u7684\u6570\u636e\u4e0e\u4e91\u7aef\u529f\u80fd\u63a5\u53e3\u4f9b\u7528\u6237\u4f7f\u7528\u3002<\/p>\n<p><strong>\u76ee\u524d\u5df2\u5f00\u653e\u7684\u6570\u636e\u63a5\u53e3 API<\/strong><\/p>\n<ul>\n<li>[\u6761\u7801\u5de5\u5177] \u901a\u7528\u4e8c\u7ef4\u7801\u751f\u6210<\/li>\n<li>[\u6761\u7801\u5de5\u5177] Wi-Fi \u65e0\u7ebf\u7f51\u4e8c\u7ef4\u7801\u751f\u6210<\/li>\n<li>[\u6761\u7801\u5de5\u5177] \u901a\u7528\u6761\u5f62\u7801\u751f\u6210<\/li>\n<li>[\u56fe\u50cf\u8bc6\u522b] \u901a\u7528 OCR<\/li>\n<li>[\u533a\u57df \/\u5750\u6807] \u5168\u56fd\u5927\u5b66\u9ad8\u6821\u57fa\u7840\u4fe1\u606f<\/li>\n<li>[\u533a\u57df \/\u5750\u6807] \u5730\u7406\u5750\u6807\u9006\u7f16\u7801<\/li>\n<li>[\u533a\u57df \/\u5750\u6807] IP \u5730\u5740\u5b9a\u4f4d<\/li>\n<li>[\u533a\u57df \/\u5750\u6807] \u5168\u56fd\u7701\u5e02\u533a\u8857\u9053\u533a\u57df\u4fe1\u606f<\/li>\n<li>[\u533a\u57df \/\u5750\u6807] \u5730\u7406\u5750\u6807\u7cfb\u8f6c\u6362<\/li>\n<li>[\u5143\u6570\u636e \/\u5b57\u5178] \u5386\u5e74\u9ad8\u8003\u7701\u5f55\u53d6\u5206\u6570\u7ebf<\/li>\n<li>[\u65b0\u95fb \/\u8d44\u8baf] \u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\u535a\u6587\u5934\u6761<\/li>\n<li>[\u65b0\u95fb \/\u8d44\u8baf] \u83b7\u53d6\u4efb\u610f\u94fe\u63a5\u6587\u7ae0\u6b63\u6587<\/li>\n<li>[\u65b0\u95fb \/\u8d44\u8baf] \u516c\u4f17\u53f7\u5934\u6761\u6587\u7ae0<\/li>\n<li>[\u65b0\u95fb \/\u8d44\u8baf] \u5e7d\u9ed8\u7b11\u8bdd\u5927\u5168<\/li>\n<li>[\u77ed\u4fe1 \/\u8bed\u97f3] \u624b\u673a\u5f52\u5c5e\u5730\u67e5\u8be2<\/li>\n<li>[\u6587\u5b57 \/\u6587\u672c] \u4e2d\u6587\u6587\u672c\u5206\u8bcd<\/li>\n<li>[\u6587\u5b57 \/\u6587\u672c] \u4e2d\u82f1\u6587\u6392\u7248\u89c4\u8303\u5316<\/li>\n<li>[\u5929\u6c14 \/\u7a7a\u6c14\u8d28\u91cf] \u5168\u56fd\u5929\u6c14\u9884\u62a5\u4fe1\u606f<\/li>\n<li>[\u7f51\u7ad9\u5de5\u5177] \u83b7\u53d6\u4efb\u610f\u7ad9\u70b9\u6807\u9898\u4e0e\u56fe\u6807<\/li>\n<li>[\u80a1\u7968\u884c\u60c5] \u7f8e\u80a1\u5386\u53f2\u884c\u60c5\u6570\u636e<\/li>\n<\/ul><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>0<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\u535a\u6587\u5934\u6761 API \u63a5\u53e3&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/151604"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=151604"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/151604\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=151604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=151604"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=151604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}