腾讯云 API 的非官方 .Net (C#) 封装 QcloudSharp

码农软件 · 软件分类 · .NET开发工具 · 2019-11-08 21:29:50

软件介绍

QcloudSharp

QcloudSharp 是腾讯云 API 的非官方 .Net 封装。提供 Nuget 包和 DynamicObject 用法。简化了 API 调用。

安装

PM> Install-Package QcloudSharp

范例

using QcloudSharp;
using Newtonsoft.Json;

dynamic client = new QcloudClient
{
    SecretId = "Your_Secret_Id",
    SecretKey = "Your_Secret_Key",
    Endpoint = Constants.Endpoint.Trade, // Endpoint 可被作为 Dynamic Methods 的第一个参数
    Region = Constants.Region.CAN, // Region 可被作为 Dynamic Methods 的第一个或第二个参数
};

var resultString = client.DescribeUserInfo();
// 预期返回值 {"code":0,"message": "","userInfo":{"name":"compName","isOwner":1,"mailStatus":1,"mail":"112233@qq.com","phone":"13811112222"}}

dynamic result = JsonConvert.DeserializeObject(resultString);

try
{
    Console.WriteLine(result.Code);
    Console.WriteLine(result.userInfo.name);
    Console.WriteLine(result.notExist);
}
catch(Exception ex)
{
    Console.WriteLine(ex.message);
}

本文地址:https://www.codercto.com/soft/d/18570.html

Beginning Google Maps API 3

Beginning Google Maps API 3

Gabriel Svennerberg / Apress / 2010-07-27 / $39.99

This book is about the next generation of the Google Maps API. It will provide the reader with the skills and knowledge necessary to incorporate Google Maps v3 on web pages in both desktop and mobile ......一起来看看 《Beginning Google Maps API 3》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具