Yunpian.Sdk
0.0.2
dotnet add package Yunpian.Sdk --version 0.0.2
NuGet\Install-Package Yunpian.Sdk -Version 0.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Yunpian.Sdk" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Yunpian.Sdk --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Yunpian.Sdk, 0.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Yunpian.Sdk as a Cake Addin #addin nuget:?package=Yunpian.Sdk&version=0.0.2 // Install Yunpian.Sdk as a Cake Tool #tool nuget:?package=Yunpian.Sdk&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
yunpian-csharp-sdk
云片 SDK
快速开始
nuget获取yunpian-csharp-sdk
示例YunpianClient
//初始化clnt,使用单例方式
var clnt = new YunpianClient("apikey").Init();
//发送短信API
var param = new Dictionary<string, string>
{
[Const.Mobile] = "18616020***",
[Const.Text] = "【云片网】您的验证码是1234"
};
var r = clnt.Sms().SingleSend(param);
//获取返回结果, 返回码:r.Code, 返回码描述:r.Msg, API结果:r.Data, 其他说明:r.Detail, 调用异常:r.E
//账户:clnt.User().* 签名:clnt.Sign().* 模版:clnt.Tpl().* 短信:clnt.Sms().* 视频短信:clnt.VideoSms().* 语音:clnt.Voice().* 短链接:clnt.ShortUrl().*
//释放clnt
clnt.Dispose();
配置说明
- 自定义配置
- 使用构造器
new YunpianClient(string apikey,Dictionary<string, string> props)
- props内容参考YunpianConf
- 使用构造器
源码说明
- 工程源码
- yunpian-csharp-sdk 云片SDK源码工程,
namespace=Yunpian.Sdk
- Api/ 云片接口源码
- Model/ 模型对象定义
- Util/ 工具类
- YunpianClient 接口调用客户端
- YunpianConf 客户端配置
- yunpian-csharp-sdk-test 源码单元测试工程,
namespace=Yunpian.Sdk.Test
- Api/ 云片接口单元测试
- yunpian-csharp-sdk 云片SDK源码工程,
- 开发API可参考单元测试
- 在TestYunpianApi定义TestApikey,然后执行测试工程Api/里的单元测试
- YunpianClient使用单例方式,不要每次new
- 分支说明: master是发布版本,develop是待发布的分支(开源贡献可以pull request到develop)
联系我们
SDK开源QQ群
<img src="doc/sdk_qq.jpeg" width="15%" alt="SDK开源QQ群"/>
文档链接
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Newtonsoft.Json (>= 10.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.