接口名称 | 请求/响应 | 官方文档 |
---|---|---|
创建bucket | qiniu.SendAsync<BucketCreateResponse>(new BucketCreateRequest(bucket)) | 七牛开发文档 |
删除bucket | qiniu.SendAsync<BucketRemoveResponse>(new BucketRemoveRequest(bucket)) | 七牛开发文档 |
获取Bucket列表 | qiniu.SendAsync<BucketQueryResponse>(new BucketQueryRequest()) | 七牛开发文档 |
设置bucket访问权限 | qiniu.SendAsync<BucketAuthResponse>(new BucketAuthRequest(bucket,0)) | 七牛开发文档 |
获取 Bucket 空间域名 | qiniu.SendAsync<BucketDomainResponse>(new BucketDomainRequest(bucket)) | 七牛开发文档 |
查看空间标签 | qiniu.SendAsync<BucketTaggingResponse>(new BucketTaggingRequest(bucket)) | 七牛开发文档 |
修改文件状态 | qiniu.SendAsync<ChStatusResponse>(new ChStatusRequest(bucket,key,status)) | 七牛开发文档 |
修改文件存储类型 | qiniu.SendAsync<ChTypeResponse>(new ChTypeRequest(bucket,key,status)) | 七牛开发文档 |
资源元信息查询 | qiniu.SendAsync<StatResponse>(new StatRequest(bucket,key)) | 七牛开发文档 |
资源元信息修改 | qiniu.SendAsync<ChgmResponse>(new ChgmRequest(bucket,key,mimeType,metaKey,metaValue,cond)) | 七牛开发文档 |
资源移动/重命名 | qiniu.SendAsync<MoveResponse>(new MoveRequest(bucket,entryUriSrc,entryURIDest)) | 七牛开发文档 |
资源复制 | qiniu.SendAsync<CopyResponse>(new CopyRequest(bucket,entryUriSrc,entryURIDest)) | 七牛开发文档 |
资源删除 | qiniu.SendAsync<DeleteResponse>(new DeleteRequest(bucket,key)) | 七牛开发文档 |
资源列举 | qiniu.SendAsync<ListResponse>(new ListRequest(bucket)) | 七牛开发文档 |
批量操作 | qiniu.SendAsync<BatchResponse>(new BatchRequest(bucket,ops)) | 七牛开发文档 |
直传文件 | `` | 七牛开发文档 |
初始化上传任务 | qiniu.SendAsync<UploadIdResponse>(new UploadIdRequest(bucket,objectName)) | 七牛开发文档 |
分块上传数据 | qiniu.SendAsync<UploadPartResponse>(new UploadPartRequest(bucket,objectName,uploadId,partNumber)) | 七牛开发文档 |
完成文件上传 | qiniu.SendAsync<UploadCompleteResponse>(new UploadCompleteRequest(bucket,objectName,uploadId)) | 七牛开发文档 |
终止上传 | qiniu.SendAsync<UploadAbortResponse>(new UploadAbortRequest(bucket,objectName,uploadId)) | 七牛开发文档 |
列举已上传分片 | qiniu.SendAsync<UploadPartListResponse>(new UploadPartListRequest(bucket,objectName, uploadId,maxParts,partNumberMarker)) | 七牛开发文档 |
数据统计接口
接口名称 | 请求/响应 | 官方文档 |
---|---|---|
获取标准存储的存储量统计 | `` | 七牛开发文档 |
获取标准存储的文件数量统计 | `` | 七牛开发文档 |
获取上传tokenqiniu.GetUploadToken($"{bucket}:{key}",DateTime.Now.AddMinutes(m));