{"id":27232040,"url":"https://github.com/codespilot/qcloudsharp","last_synced_at":"2025-04-10T13:45:50.761Z","repository":{"id":88814786,"uuid":"104826545","full_name":"Codespilot/QcloudSharp","owner":"Codespilot","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-26T02:35:26.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-14T14:56:33.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codespilot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-09-26T02:35:01.000Z","updated_at":"2023-07-14T14:56:35.592Z","dependencies_parsed_at":"2023-03-24T00:49:06.464Z","dependency_job_id":null,"html_url":"https://github.com/Codespilot/QcloudSharp","commit_stats":null,"previous_names":["codespilot/qcloudsharp"],"tags_count":4,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codespilot%2FQcloudSharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codespilot%2FQcloudSharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codespilot%2FQcloudSharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codespilot%2FQcloudSharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codespilot","download_url":"https://codeload.github.com/Codespilot/QcloudSharp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248226833,"owners_count":21068296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-10T13:45:50.061Z","updated_at":"2025-04-10T13:45:50.745Z","avatar_url":"https://github.com/Codespilot.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"QcloudSharp: Unoffical Qcloud.com API wrapper for .Net\n===\n\n[![AppVeyor](https://img.shields.io/appveyor/ci/7IN0SAN9/qcloudsharp.svg)](https://ci.appveyor.com/project/7IN0SAN9/qcloudsharp)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/JoyMoe/QcloudSmsSharp/master/LICENSE)\n[![NuGet](https://img.shields.io/nuget/v/QcloudSharp.svg)](https://www.nuget.org/packages/QcloudSharp)\n![net451](https://img.shields.io/badge/.Net-4.5.1-brightgreen.svg)\n![net462](https://img.shields.io/badge/.Net-4.6.2-brightgreen.svg)\n![netstandard1.5](https://img.shields.io/badge/.Net-netstandard1.5-brightgreen.svg)\n![netstandard2.0](https://img.shields.io/badge/.Net-netstandard2.0-brightgreen.svg)\n\n[中文说明](README.zh.md)\n\n### Installation\nTo install QcloudSharp, run the following command in the Package Manager Console\n```powershell\nPM\u003e Install-Package QcloudSharp\n```\n\n### Example\n```csharp\nusing QcloudSharp;\nusing Newtonsoft.Json;\n\ndynamic client = new QcloudClient\n{\n    SecretId = \"Your_Secret_Id\",\n    SecretKey = \"Your_Secret_Key\",\n    Endpoint = Constants.Endpoint.Trade, // Endpoint can be used as the first argument of Dynamic Methods\n    Region = Constants.Region.CAN, // Region can be used as the first or second argument of Dynamic Methods\n};\n\nvar resultString = client.DescribeUserInfo();\n// e.g. {\"code\":0,\"message\": \"\",\"userInfo\":{\"name\":\"compName\",\"isOwner\":1,\"mailStatus\":1,\"mail\":\"112233@qq.com\",\"phone\":\"13811112222\"}}\n\ndynamic result = JsonConvert.DeserializeObject\u003cApiResult\u003e(resultString);\n\ntry\n{\n    Console.WriteLine(result.Code);\n    Console.WriteLine(result.userInfo.name);\n    Console.WriteLine(result.notExist);\n}\ncatch(Exception ex)\n{\n    Console.WriteLine(ex.message);\n}\n```\n\nOr you can have a look at [sample](sample).\n\n### Constants\n\nAll Constants are provided by class `QcloudSharp.Constants`.\n\n```csharp\npublic static class Endpoint // Abbreviation for endpoint domain\n```\n\nMembers\n* Account\n* Bill\n* Bm\n* Cbs\n* Cdb\n* Cdn\n* Cmem\n* CmqQueue\n* CmqTopic\n* Cns\n* Csec\n* Cvm\n* Dayu\n* Dfw\n* Eip\n* Image\n* Iot\n* Kms\n* Lb\n* Live\n* Market\n* Mongodb\n* Monitor\n* Partners\n* Redis\n* Scaling\n* Snapshot\n* Sqlserver\n* Tdsql\n* Tmt\n* Trade\n* Vod\n* Vod2\n* Vpc\n* Wenzhi\n* Wss\n* Yunsou\n\n```csharp\npublic static class Region // IATA code for Region city\n```\n\nMembers\n* BJS `bj`\n* CAN `gz`\n* HKG `hk`\n* SHA `sh`\n* SIN `sg`\n* SJC `usw`\n* YTO `ca`\n* CAN1 `gzopen`\n* SHA2 `shjr`\n* SZX2 `szjr`\n\n### Classes\n\n#### QcloudClient\n\n```csharp\npublic class QcloudClient : DynamicObject\n```\n\nConstructors\n* `QcloudClient()`\n* `QcloudClient(SecretId, SecretKey)`\n\nProperties\n* string `SecretId`\n* string `SecretKey`\n* string `Region`\n* string `Endpoint`\n\nMethods\n* `void AddParameter(KeyValuePair\u003cstring, string\u003e)`\n* `void AddParameter(IEnumerable\u003cKeyValuePair\u003cstring, string\u003e\u003e)`\n* `void ClearParameter()`\n* `Submit(string, string, string)`\n* `Submit(string, string)`\n* `Submit(string)`\n\nDynamic Methods\n* `{Action}([string][, string][, IEnumerable\u003cKeyValuePair\u003cstring, string\u003e\u003e])`\n* `{Action}([string][, string][, KeyValuePair\u003cstring, string\u003e ...])`\n\n#### ApiResult\n\n```csharp\npublic class ApiResult : DynamicObject\n```\n\nConstructors\n* `ApiResult()`\n\nProperties\n* int `Code`\n* string `Message`\n\nDynamic Properties\n* object Any { Get; Set; }\n\n## Donate us\n\n[Donate us](https://7in0.me/#donate)\n\n## License\n\nThe MIT License\n\nMore info see [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodespilot%2Fqcloudsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodespilot%2Fqcloudsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodespilot%2Fqcloudsharp/lists"}