NuoNuoOpenSdkSass 1.0.2

dotnet add package NuoNuoOpenSdkSass --version 1.0.2                
NuGet\Install-Package NuoNuoOpenSdkSass -Version 1.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="NuoNuoOpenSdkSass" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NuoNuoOpenSdkSass --version 1.0.2                
#r "nuget: NuoNuoOpenSdkSass, 1.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 NuoNuoOpenSdkSass as a Cake Addin
#addin nuget:?package=NuoNuoOpenSdkSass&version=1.0.2

// Install NuoNuoOpenSdkSass as a Cake Tool
#tool nuget:?package=NuoNuoOpenSdkSass&version=1.0.2                

NuoNuoSdk NuoNuoOpenSdkNuoNuoOpenSdk

诺诺开放平台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帮我们完成

  1. 复制文档内容使用咒语

使用咒语

  1. 得到结果

得到结果

  1. 纠正结果

纠正结果

</p> </details>

Product 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 136 4/26/2024
1.0.1 118 4/1/2024
1.0.0 113 4/1/2024