{"id":165373,"date":"2020-10-06T06:54:36","date_gmt":"2020-10-05T22:54:36","guid":{"rendered":"http:\/\/4563.org\/?p=165373"},"modified":"2020-10-06T06:54:36","modified_gmt":"2020-10-05T22:54:36","slug":"%e4%b8%ba%e4%bb%80%e4%b9%88%e5%9b%bd%e5%86%85%e4%ba%91%e6%9c%8d%e5%8a%a1%e5%95%86%e7%9a%84-api-%e9%89%b4%e6%9d%83%e6%9c%ba%e5%88%b6%e5%be%80%e5%be%80%e6%af%94%e8%be%83%e5%a4%8d%e6%9d%82%e8%80%8c","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=165373","title":{"rendered":"\u4e3a\u4ec0\u4e48\u56fd\u5185\u4e91\u670d\u52a1\u5546\u7684 API \u9274\u6743\u673a\u5236\u5f80\u5f80\u6bd4\u8f83\u590d\u6742\u800c\u56fd\u5916\u7684\u76f8\u5bf9\u7b80\u5355\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4e3a\u4ec0\u4e48\u56fd\u5185\u4e91\u670d\u52a1\u5546\u7684 API \u9274\u6743\u673a\u5236\u5f80\u5f80\u6bd4\u8f83\u590d\u6742\u800c\u56fd\u5916\u7684\u76f8\u5bf9\u7b80\u5355\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Explr <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u817e\u8baf\u4e91\u548c\u963f\u91cc\u4e91\u7684 API \u9274\u6743\u90fd\u662f\u516c\u5171\u53c2\u6570+\u63a5\u53e3\u53c2\u6570\u6392\u5e8f\u540e\u8ba1\u7b97 HMAC \u5f53\u4f5c\u7b7e\u540d\u3002\u800c Cloudflare\uff0cGithub\uff0cGodaddy \u7684 API \u5f80\u5f80\u90fd\u662f\u76f4\u63a5\u628a\u51ed\u636e\u5199\u8fdb HTTP \u5934\uff0c\u7136\u540e\u76f4\u63a5\u53d1\u8bf7\u6c42\u3002<\/p>\n<p>\u817e\u8baf\u4e91 API<\/p>\n<p>\u963f\u91cc\u4e91 API<\/p>\n<p>Cloudflare API<\/p>\n<p>Github API<\/p>\n<p>\u4f7f\u7528 HMAC \u7684\u4f18\u70b9\u662f\u51ed\u636e\u65e0\u9700\u901a\u8fc7\u4e92\u8054\u7f51\u4f20\u8f93\uff0c\u7136\u800c API Key \u7684\u7279\u70b9\u5c31\u662f\u5f88\u957f\uff0c\u4fdd\u5b58\u5728\u8ba1\u7b97\u673a\u4e0a\u800c\u4e0d\u662f\u7528\u8111\u5b50\u8bb0\uff0c\u53ef\u4ee5\u5b9a\u671f\u66f4\u6362\uff0c\u6cc4\u9732\u4e5f\u4e0d\u4f1a\u5bfc\u81f4\u649e\u5e93\u653b\u51fb\uff0c\u4e3a\u4ec0\u4e48\u8981\u5bf9 API Key \u91c7\u53d6\u6bd4\u5bc6\u7801\u66f4\u4e25\u683c\u7684\u4fdd\u62a4\u63aa\u65bd\uff1f\u4ee5\u53ca HMAC \u65b9\u6848\u5e94\u5bf9\u7684\u5a01\u80c1\u6a21\u578b\u662f\u4ec0\u4e48\uff1f<\/p>\n<p>\u53e6\u5916\uff0c\u963f\u91cc\u4e91\u548c\u817e\u8baf\u4e91\u7684 API \u90fd\u5355\u72ec\u5177\u6709\u6297\u91cd\u653e\u653b\u51fb\u6027\uff0c\u5728\u4e24\u7aef\u70b9\u4e0d\u88ab\u5165\u4fb5\u7684\u60c5\u51b5\u4e0b HTTPS \u5df2\u7ecf\u786e\u4fdd\u4e86\u8fd9\u4e00\u70b9\u3002\u5982\u679c\u5ba2\u6237\u673a\u6216\u670d\u52a1\u5668\u88ab\u5165\u4fb5\uff0cHMAC \u7b7e\u540d\u4f3c\u4e4e\u4e5f\u53ea\u80fd\u589e\u5927\u4e00\u70b9\u70b9\u653b\u51fb\u96be\u5ea6\uff0c\u7406\u8bba\u4e0a\u5e76\u4e0d\u80fd\u963b\u6b62\u5165\u4fb5\u6216\u975e\u6cd5\u8c03\u7528 API \u3002<\/p>\n<p>\u518d\u8005\u5c31\u662f\uff0c\u5982\u679c\u4e00\u5b9a\u8981\u7528\u6570\u5b57\u7b7e\u540d\uff0c\u4e3a\u4ec0\u4e48\u4ed6\u4eec\u4e0d\u7528JWS\u4e4b\u7c7b\u7684\u65b9\u6848\uff0c\u800c\u8981\u7528\u6392\u5e8f\u63a5\u53e3\u53c2\u6570\u518d\u7b7e\u540d\u7684\u65b9\u6848\uff1f\u6587\u6863\u4e0a\u4e5f\u5f80\u5f80\u6ca1\u6709\u5177\u4f53\u8bf4\u6392\u5e8f\u7684\u6807\u51c6\uff0c\u5927\u5199\u5728\u524d\u8fd8\u662f\u5c0f\u5199\u5728\u524d\u4e5f\u4e0d\u6e05\u6670\uff0c\u5c3d\u7ba1\u63a5\u53e3\u884c\u4e3a\u5f80\u5f80\u548c\u7f16\u7a0b\u8bed\u8a00\u7684\u6392\u5e8f\u5e93\u884c\u4e3a\u4e00\u81f4\uff0c\u4e0d\u8fc7\u4f5c\u4e3a API \u6587\u6863\u6765\u8bf4\uff0c\u8fd9\u662f\u6709\u6b67\u4e49\u7684\u3002<\/p>\n<p>\u5e76\u4e14\uff0c\u963f\u91cc\u4e91 API \u63a5\u53e3\u7f16\u7801\u6765\u7f16\u7801\u53bb\u7684\uff0c\u597d\u50cf\u4e5f\u6ca1\u6709\u6bd4 JWS \u7b80\u6d01\u591a\u5c11\u2026\u2026<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3644864\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : oott123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u6bd4\u8f83\u7684\u5bf9\u8c61\u9519\u4e86\uff0c\u4f60\u8981\u53bb\u770b\u770b AWS \u7684 API \u548b\u7b7e\u540d\u7684\uff0c\u56e0\u4e3a\u56fd\u5185\u8fd9\u4e9b\u4e91\u4e5f\u662f\u53c2\u8003 AWS \u4e4b\u7c7b\u7684\u4e1c\u897f\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3644865\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kangsheng9527 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u76f8\u4e92\u4f24\u5bb3\uff08\u589e\u52a0\u653b\u51fb\u6210\u672c\uff0c\u8ba1\u7b97\u6d88\u8017\u4e86\u653b\u51fb\u65b9 cpu \u65f6\u95f4\uff09\uff0c\u9632\u6b62\u4f4e\u6210\u672c\u653b\u51fb\u3002<br \/>\u6b63\u5982\u4f60\u8bf4\u7684\u4fdd\u62a4\u539f\u59cb key \u3002\u3002\u3002\u589e\u52a0\u63a5\u89e6 api \u7684\u4eba\u5458\u95e8\u69db\u6709\u52a9\u4e8e\u6574\u4e2a\u5708\u5b50\u7684\u5065\u5eb7\u3002\u3002\u3002<br \/>\u6211\u662f\u8ba4\u540c\u56fd\u5185\u8fd9\u4e00\u5957\u7684\u3002\u3002\u3002<br \/>\u521a\u597d\u6211\u4e5f\u7528\u8fc7\u963f\u91cc\u4e91 api \u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3644866\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Explr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @oott123 \u6709\u9053\u7406\uff0cAWS \u7684\u65b9\u6848\u662f\u76f8\u4f3c\u7684\uff0c\u6211\u6700\u8fd1\u5728\u7ef4\u62a4\u4e00\u4e2a ACME \u5ba2\u6237\u7aef\uff0c\u4ece Let&#8217;s encrypt \u81ea\u52a8\u83b7\u53d6\u6570\u5b57\u8bc1\u4e66\uff0c\u8981\u7528 API \u589e\u5220 DNS \u8bb0\u5f55\uff0c\u6240\u4ee5\u5c31\u628a\u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u548c Cloudflare \u3001Godaddy \u8054\u7cfb\u8d77\u6765\u4e86\u3002\u4e0d\u8fc7\u8bf4\u771f\u7684\uff0c\u4e3a\u5565\u4e0d\u7528 JWS\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3644867\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Explr <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @kangsheng9527 \u5bf9\uff0c\u4e0d\u8fc7\u6211\u603b\u4e0d\u80fd\u4e3a\u4e86\u589e\u5220\u4e00\u4e0b DNS \u8bb0\u5f55\uff0c\u5c31\u628a\u6574\u4e2a\u963f\u91cc\u4e91 SDK \u52a0\u8fdb\u9879\u76ee\u4f9d\u8d56\u5427\u2026\u2026API \u8c03\u7528\u8fd8\u5f97\u81ea\u5df1\u5199\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3644868\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lihongming <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b89\u5168\u6027\u548c\u65b9\u4fbf\u6027\u80af\u5b9a\u662f\u76f8\u5bf9\u7684\uff0c\u4f46\u6709 SDK \u7684\u60c5\u51b5\u4e0b\uff0c\u81ea\u5df1\u5176\u5b9e\u4e0d\u7528\u5904\u7406\u7b7e\u540d\uff0c\u901a\u8fc7 SDK \u53d1\u8d77\u8bf7\u6c42\u5c31\u597d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4ec0\u4e48\u56fd\u5185\u4e91\u670d\u52a1\u5546\u7684 API \u9274\u6743&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\/165373"}],"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=165373"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/165373\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=165373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=165373"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=165373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}