This project is read-only.

Documentation - How to use

In first place, you need to know how to get the credential for WNS OAuth authorization.

Please follow this link for more info.

You need to include php script in your file or include it with PHP require\include[_once] functions.


After you got the SID and the client secret from the Windows Developer Dashboard, you need to set the class WindowsNotificationClass static attributes:


$ClientSecret = <YOUR CLIENT SECRET>

Now you’re ready to use the WindowsNotification object!

How to

  1. Authenticate to the WNS
  2. Instance for Settings and Notification class
  3. Set authentication token
  4. Notification templates (where available)
  5. Send a toast notification
  6. Send a badge notification
  7. Send a Tile notification
  8. Send a Raw notification
  9. Send a X-WNS-Match notification (HTTP DELETE VERB)
  10. Intercept WNS response headers


However, the WindowsNotification object support all the custom header for WNS request (X-WNS-Tag, X-WNS-SuppressPopup, etc.).

It’s your task to use these Settings Object’s attributes (see this) in the best way for the scenario you have.

Last edited Jun 5, 2015 at 2:18 PM by Andreabbondanza, version 19