百度智能云

All Product Document

          CDN

          CdnClient

          Create CdnClien

          Access to CDN via AK/SK

          func GetDefaultClient() *cdn.Client { 
          	 ak := "your_access_key_id" 
          	 sk := "your_secret_key_id" 
          	 endpoint := "https://cdn.baidubce.com" 
          	
          	 // ignore error in test, but you should handle error in dev 
          	 client, _ := cdn.NewClient(ak, sk, endpoint) 
          	 return client 
          } 

          The above-mentioned code snippet displays how to create a cdn.Client object, and the user must specify AK/SK at first and use https: //cdn.baidubce.comfor endpoint.

          Previous
          Getting Started
          Next
          Domain Name Operation Interface