This project is read-only.

How to send a Raw notification

We have learned how create object to send a notification, now we can send the notification.

How you can see, all previous documentation is summarized in this script.

NOTE: the raw notification needs the right ContentType

//get token
$tok = GetToken();
//get a channel
$cha = GetNewChannel();
$MyRawStuff = '<MY RAW CONTENTS>';
$Options = new WindowsNotification\WNSNotificationOptions();
$Options->SetAuthorization(new WindowsNotification\OAuthObject($tok)));
//NOTE: Set the Tile type
//NOTE: Set the content type for Raw
$Notifier = new WindowsNotification\WindowsNotificationClass($Options);
//send a raw

Last edited May 16, 2015 at 4:30 PM by Andreabbondanza, version 3