CSharpSDKExamples.BucketFileManagement.fetch C# (CSharp) Method

fetch() public static method

拉取资源到空间
public static fetch ( ) : void
return void
        public static void fetch()
        {
            Mac mac = new Mac(Settings.AccessKey, Settings.SecretKey);

            string bucket = "BUCKET";
            string saveKey = "SAVE_KEY";
            string remoteUrl = "REMOTE_URI";

            BucketManager bm = new BucketManager(mac);
            bm.fetch(remoteUrl, bucket, saveKey);
        }