예제 #1
0
        public async void DeleteBucket([FromBody] DeleteBucketModel bucket)
        {
            BucketsApi buckets = new BucketsApi();
            dynamic    token   = await OAuthController.GetInternalAsync();

            buckets.Configuration.AccessToken = token.access_token;
            buckets.DeleteBucket(bucket.bucketKey);
        }
예제 #2
0
        public async Task <dynamic> DeleteBucket([FromBody] DeleteBucketModel objInfo)
        {
            // get the bucket...

            BucketsApi Buck  = new BucketsApi();
            dynamic    token = await OAuthController.GetInternalAsync();

            Buck.Configuration.AccessToken = token.access_token;


            await Buck.DeleteBucketAsync(objInfo.bucketKey);

            return(Task.CompletedTask);
        }