Giter VIP home page Giter VIP logo

python-mpns's Introduction

python-mpns

Python module for Microsoft Push Notification Service (MPNS) for Windows Phone.

It supports Toast, Tile and Raw notification formats (the latter one is not tested yet).

Usage

from mpns import MPNSTile, MPNSToast, MPNSRaw

uri = 'http://db3.notify.live.net/throttledthirdparty/01.00/ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
toast = MPNSToast()
tile = MPNSTile()

toast.send(uri, {'text1': 'Hello', 'text2': 'Windows Phone'})
toast.send(uri, {'text1': 'Tap this message', 'text2': 'To open application'})

tile.send(uri, {'title': 'Tile title'}

Useful links

MPNS overview: http://msdn.microsoft.com/en-us/library/ff402558%28v=vs.92%29.aspx

Protocol specification: http://msdn.microsoft.com/en-us/library/hh202945%28v=vs.92%29.aspx

WP8 enhancements: http://msdn.microsoft.com/en-us/library/windows/apps/jj662933%28v=vs.105%29.aspx

Error codes: http://msdn.microsoft.com/en-us/library/ff941100%28v=VS.92%29.aspx

Authenticated Web Service: http://msdn.microsoft.com/en-us/library/ff941099%28v=vs.92%29.aspx

TODO

  • Support Windows Phone 8 extended tile notifications
  • More testing

python-mpns's People

Contributors

max-arnold avatar stereofuture avatar

Stargazers

Mew Forest avatar Andrzej Kostanski avatar Robert Clarke avatar jeep avatar Kalyan Vishnubhatla avatar  avatar

Watchers

 avatar James Cloos avatar Guilherme de Carvalho Carneiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.