在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
做项目需要上传视频,获取时长,上传教程很多,获取信息很少,官方只有一条请求地址。 找了好久,都没有说这个请求地址怎么用。最后发现需要调用腾讯云SDK 官方地址:https://github.com/QcloudApi/qcloudapi-sdk-dotnet 百度云:k64s 1 public void GetBaseInfo() { 2 SortedDictionary<string, object> config = new SortedDictionary<string, object>(StringComparer.Ordinal); 3 config["SecretId"] = "你的SecretId"; 4 config["SecretKey"] = "你的SecretKey"; 5 config["RequestMethod"] = "GET"; 6 config["DefaultRegion"] = "gz"; 7 QCloudAPIModuleCenter module = new QCloudAPIModuleCenter(new Vod(), config); 8 SortedDictionary<string, object> requestParams = new SortedDictionary<string, object>(StringComparer.Ordinal); 9 requestParams["fileId"] = "5285890780671297749"; 10 requestParams["infoFilter.0"] = "basicInfo"; 11 //Console.WriteLine(module.GenerateUrl("DescribeInstances", requestParams)); 12 Console.WriteLine(module.Call("GetVideoInfo", requestParams)) 13 return; 14 }
|
请发表评论