NuoNuoOpenSdk 1.0.3
dotnet add package NuoNuoOpenSdk --version 1.0.3
NuGet\Install-Package NuoNuoOpenSdk -Version 1.0.3
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="NuoNuoOpenSdk" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NuoNuoOpenSdk --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NuoNuoOpenSdk, 1.0.3"
#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 NuoNuoOpenSdk as a Cake Addin #addin nuget:?package=NuoNuoOpenSdk&version=1.0.3 // Install NuoNuoOpenSdk as a Cake Tool #tool nuget:?package=NuoNuoOpenSdk&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
NuoNuoSdk
诺诺开放平台SDK
相较于官方其他语言的SDK优点是使用了模型参数,开箱即用
安装
dotnet add package NuoNuoOpenSdk
使用示例
//添加诺诺开放平台SDK
builder.Services.AddNuoNuoSdk(builder.Configuration, "NuoNuo");
//获取token,根据token有效期自行维护缓存
var token = await _nuoNuoSdk.GetMerchantToken();
//查询余票
var stockRes = await _nuoNuoSdk.ExecuteAsync<GetInvoiceStockRequest, GetInvoiceStockResponse>(new GetInvoiceStockRequest
{
AccessToken = token.AccessToken
});
//使用默认接口实现
var stockRes2 = await _nuoNuoSdk.GetInvoiceStockAsync(new GetInvoiceStockRequest
{
AccessToken = token.AccessToken
});
具体参数使用方法请参考诺诺官方文档,如果缺少对应的参数模型欢迎自行实现然后PR
<details><summary>参数模型生成小技巧</summary> <p>
使用ChatGpt帮我们完成
- 复制文档内容使用咒语
- 得到结果
- 纠正结果
</p> </details>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 is compatible. 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 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.Extensions.Http (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net7.0
- Microsoft.Extensions.Http (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.3)
-
net8.0
- Microsoft.Extensions.Http (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.