NuoNuoOpenSdk 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package NuoNuoOpenSdk --version 1.0.0                
NuGet\Install-Package NuoNuoOpenSdk -Version 1.0.0                
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.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NuoNuoOpenSdk --version 1.0.0                
#r "nuget: NuoNuoOpenSdk, 1.0.0"                
#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.0

// Install NuoNuoOpenSdk as a Cake Tool
#tool nuget:?package=NuoNuoOpenSdk&version=1.0.0                

NuoNuoSdk

诺诺开放平台SDK

优点是相较于官方其他语言的SDK优点是使用了模型参数,开箱即用

安装

dotnet add package NuoNuoSdk

使用示例


//添加诺诺开放平台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
});

具体参数使用方法请参考诺诺官方文档,如果缺少对应的参数模型欢迎自行实现然后PR

TODO

  1. 根据文档编写更多的请求返回模型
  2. isv支持
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 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. 
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.3 2,698 11/16/2023
1.0.2 1,580 8/3/2023
1.0.1 406 7/17/2023
1.0.0 175 7/17/2023