/PushNotifications

腾讯信鸽推送 v2.0 RestAPI .NET SDK

Primary LanguageC#OtherNOASSERTION

PushNotifications

PushNotifications SDK 封装了腾讯信鸽推送服务端所有 v2.0 API RestAPI (http://xg.qq.com/) . 基于.NET 4.5框架。

AppVeyor branch NuGet

快速安装

使用 Nuget 安装

Install-Package PushNotifications.Xinge

简单使用

1. 推送到所有Android设备

//推送到所有Android设备
var client = new PushClient(AndroidAccessId, AndroidSecretKey);
var androidMsg = new AndroidNotification
{
    Title = "测试消息",
    Content = "这是一条测试消息"
};
var result = client.PushAllDeviceAsync(androidMsg);
Console.WriteLine(result.Result);

2. 推送到所有IOS设备

var client = new PushClient(IosAccessId, IosSecretKey);
var payload = new PayloadNotification("这是一条测试消息", 1);
var result = client.PushAllDeviceAsync(payload);
Console.WriteLine(result.Result);

3. 更多例子

/src/PushNotifications.Examples

修改日志

release notes.

联系我

Email: yiim@foxmail.com

Web: http://www.frllk.com

License

MIT

Copyright (c) 2016 - seamys