Project Description (项目介绍)
JPush.NET is JPush SDK for .NET. 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推送消息。)
Click here to view JPush official document.
(点击 这里查看JPush官方文档.)
This project contains following parts:(项目包含2部分)
- Pure API client, following official REST API. You can download orreview documentation.
- ASP.NET MVC based Web Portal for basic operations and simple configuration. (Can be demo)
IMPORTANT NOTE (重要通告):
- JPush Server SDK 1.0.0 is for JPush v2, which would be retired by JPush officially.
- (JPush 服务器 SDK 1.0.0 是针对JPush v2版本,该版本不久之后将会被官方弃用.)
- To support v3, please download & use latest version.
- (如要支持JPush v3的服务器SDK,请下载和使用 最新版本.)
- In latest version, to make developers take minor change, class JPushClient has been changed to use JPushClientV3 logics inside.
- (在 最新版中,为了开发人员可以尽可能少的改动,类 JPushClient已经被改造成内部使用JPushClientV3来处理业务)
- Major changes in v3:(JPush V3中的主要改动)
- Always use SSL for sending/querying push message.
- (仅提供SSL的方式来处理发送/查询推送消息)
- Use Basic Authentication in HTTP Header instead of hash code for authentication.
- (使用HTTP 头信息中的基本验证来替代原有的哈希验证)
- Split model to Message and Notification to for UI/logic.
- (将原来模型的消息和推送部分独立,分别作用于屏幕UI上和app内部逻辑上)
- Enhancement and improvement for PushType. They can be multiple used in one push for complicated filter requirements.
- (提高和改善了PushType,他们在新版本中可以多次出现来完成更为复杂和灵活的目标筛选需求)
- Add Windows Phone in Platform.
- (增加对Windows Phone平台的支持)
- Provide different models for each platform.
- (对每个平台分别提供不同的模型来表达相关数据)
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 { staticvoid Main(string[] args) { var appKey = "1234567890abcdef"; // Your App Key from JPushvar 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. Library would convert the old PushMessageRequest to PushMessageRequestV3.
Sample for JPushClient:
Here is a sample based on .NET console application.
class Program { staticvoid Main(string[] args) { var appKey = "1234567890abcdef"; // Your App Key from JPushvar 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.