GeTuiPushV2 1.2.1
dotnet add package GeTuiPushV2 --version 1.2.1
NuGet\Install-Package GeTuiPushV2 -Version 1.2.1
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="GeTuiPushV2" Version="1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GeTuiPushV2 --version 1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GeTuiPushV2, 1.2.1"
#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 GeTuiPushV2 as a Cake Addin #addin nuget:?package=GeTuiPushV2&version=1.2.1 // Install GeTuiPushV2 as a Cake Tool #tool nuget:?package=GeTuiPushV2&version=1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
特点
声明式http客户端,依赖库 WebApiClientCore
安装
Install-Package GeTuiPushV2
注册
services
.AddGeTuiPush(x =>
{
x.AppId = "xxx";
x.AppKey = "xxx";
x.MasterSecret = "xxx";
})
//添加默认日志输出
//.AddDefaultLogger()
;
使用
推送 API 直接使用即可,系统会自动维护 token
private readonly IPushApi _pushApi;
var input = new PushSingleAliasInput
{
//...
};
var result = await _pushApi.PushSingleAliasAsync(input)
//如果返回错误,会抛出异常
.EnsureThrowErrorAsync();
已完成的 API
接口名 | 方法名 | 类别 | 说明 |
---|---|---|---|
IAuthApi | CreateTokenAsync | 鉴权API | 获取鉴权 |
IAuthApi | DeleteTokenAsync | 鉴权API | 删除鉴权 |
IPushApi | PushSingleCidAsync | 推送API | [toSingle]执行cid单推 |
IPushApi | PushSingleAliasAsync | 推送API | [toSingle]执行别名单推 |
IPushApi | PushSingleBatchCidAsync | 推送API | [toSingle]执行cid批量单推 |
IPushApi | PushSingleBatchAliasAsync | 推送API | [toSingle]执行别名批量单推 |
IPushApi | CreateListMessage | 推送API | [toList]创建消息 |
IPushApi | PushListCidAsync | 推送API | [toList]执行cid批量推 |
IPushApi | PushListAliasAsync | 推送API | [toList]执行别名批量推 |
IPushApi | PushAllAsync | 推送API | [toApp]执行群推 |
IPushApi | PushTagAsync | 推送API | [toApp]根据条件筛选用户推送 |
IPushApi | PushFastCustomTagAsync | 推送API | [toApp]使用标签快速推送 |
IPushApi | StopTaskAsync | 推送API | [任务]停止任务 |
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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | 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.1
- WebApiClientCore.Extensions.NewtonsoftJson (>= 2.0.4)
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.2.1 | 99 | 11/26/2024 |
1.1.0 | 136 | 3/30/2024 |
1.0.0 | 119 | 3/30/2024 |
1.0.0-beta1 | 110 | 3/30/2024 |