{"id":352773,"date":"2021-02-20T22:31:24","date_gmt":"2021-02-20T14:31:24","guid":{"rendered":"http:\/\/4563.org\/?p=352773"},"modified":"2021-02-20T22:31:24","modified_gmt":"2021-02-20T14:31:24","slug":"%e6%89%8b%e6%92%b8-golang-%e5%8e%9f%e7%94%9f%e8%85%be%e8%ae%af%e4%ba%91-sdk%ef%bc%8c%e5%a4%a7%e5%ae%b6%e7%bb%99%e5%93%81%e5%93%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=352773","title":{"rendered":"\u624b\u64b8 golang \u539f\u751f\u817e\u8baf\u4e91 SDK\uff0c\u5927\u5bb6\u7ed9\u54c1\u54c1"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u624b\u64b8 golang \u539f\u751f\u817e\u8baf\u4e91 SDK\uff0c\u5927\u5bb6\u7ed9\u54c1\u54c1               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Chrics <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u63d0\u4f9b\u7f51\u7edc\u6545\u969c\u91cd\u8bd5\u3001\u9891\u7387\u9650\u5236\u5ef6\u65f6\u91cd\u8bd5\u3001\u81ea\u52a8\u6ce8\u5165 ClientToken \u7b49\u529f\u80fd\uff0c\u6709\u4e0d\u9519\u7684\u6269\u5c55\u80fd\u529b<\/p>\n<p>\u4e0a\u4ed3\u5e93\u5730\u5740\uff1a https:\/\/github.com\/vincenthcui\/awesome-tencentcloud-go<\/p>\n<pre><code>package main  import (  \"context\"  cvm \"github.com\/tencentcloud\/tencentcloud-sdk-go\/tencentcloud\/cvm\/v20170312\"  tc \"github.com\/vincenthcui\/awesome-tencentcloud-go\/tencentcloud\" )  func main() {  client := tc.NewClient(tc.WithSecret(\"SECRETID\", \"SECRETKEY\"))   req := cvm.NewDescribeInstancesRequest()  resp := cvm.NewDescribeInstancesResponse()   err := client.Send(context.TODO(), tc.CVMDescribeInstances, req, resp)  if err != nil {   panic(err)     } } <\/code><\/pre>\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=\"5338187\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hotsymbol <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5357\u5c71\u7ea2\u5e3d\u5b50\u4f20\u7968\u51c6\u5907                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5338188\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : darksword21 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u5b9e\u817e\u8baf\u4e91\u5b98\u65b9\u7684 sdk \u7528\u8d77\u6765\u8fd8\u597d\u5566\uff0c\u7ecf\u5386\u8fc7\u534e\u4e3a\u7684\u4e4b\u540e\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5338189\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Chrics <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hotsymbol \u8c03\u7528 API \u4e0d\u53d7\u7248\u6743\u5f71\u54cd\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5338190\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Chrics <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @darksword21 \u5b8c\u5168\u6ee1\u8db3\u65e5\u5e38\u4f7f\u7528\u9700\u6c42\u3002\u5982\u679c\u8981\u6c42\u66f4\u9ad8\u7684\u4e00\u81f4\u6027\uff0c\u5c31\u9700\u8981\u5728\u4e1a\u52a1\u91cc\u641e\u91cd\u8bd5\u548c\u9891\u9650\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5338191\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lairdnote <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u975e\u6cd5\u8c03\u7528 API \u5357\u5c71\u7ea2\u5e3d\u5b50\u6765\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u624b\u64b8 golang \u539f\u751f\u817e\u8baf\u4e91 S&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\/352773"}],"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=352773"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/352773\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=352773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=352773"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=352773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}