Project Description (项目介绍)
JPush.NET is .NET Server SDK for JPush. It can help you send, monitor and manage all your JPush messages by programming, following JPush official REST API.
(JPush.NET 是基于.NET平台的JPush服务器端的SDK。用来帮助开发者以编程的方式使用JPush官方REST API来发送、监视和管理所有的JPush推送消息。)
Source Code: C#
.NET framework: 4.0
Click here to view JPush official document.
(点击 这里 查看JPush官方文档.)
IMPORTANT NOTE (重要通告):
New way to install JPush.NET: run the following NuGet command in the Package Manager Console
(新增安装JPush.NET 的方式: 使用NuGet来安装)
PM> Install-Package JPush.NET
This project contains following parts:(项目包含2部分)
IMPORTANT NOTE (重要通告):
Sample for class JPushClientV3: (使用 类JPushClientV3的示例)
Here is a sample based on .NET console application.(这是一个基于.NET控制台应用程序的示例)
using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Text; using System.Threading; using ifunction.JPush.V3; using Newtonsoft.Json; namespace ifunction.JPush.Test { class Program { static void Main(string[] args) { var appKey = "1234567890abcdef"; // Your App Key from JPush var masterSecret = "1234567890abcdef"; // Your Master Secret from JPush |
RESTful API reference: http://docs.jpush.cn/display/dev/Push-API-v3
IMPORTANT NOTE(重要通告):
If you already use JPushClient V2 (Class: JPushClient), you can continue to use that. SDK Library would convert the old PushMessageRequest to PushMessageRequestV3 and send request based on JPush V3.
(如果你已经使用JPushClient V2,即SDK中的类 JPushClient,你可以继续使用它。SDK类库将在内部自动将PushMessageRequest转换到PushMessageRequestV3,并以V3形式访问JPush服务.)
Sample for JPushClient:
Here is a sample based on .NET console application.
class Program { static void Main(string[] args) { var appKey = "1234567890abcdef"; // Your App Key from JPush var masterSecret = "1234567890abcdef"; // Your Master Secret from JPush |
RESTful API reference: http://docs.jpush.cn/display/dev/Index
If you have any question or concern, you can contact
me.
(如果你在使用过程中有任何问题或疑问,请联系 我.)