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))); $Options->SetX_WNS_REQUESTFORSTATUS(WindowsNotification\X_WNS_RequestForStatus::Request); //NOTE: Set the Tile type $Options->SetX_WNS_TYPE(WindowsNotification\X_WNS_Type::Tile); //NOTE: Set the content type for Raw $Options->SetContentType(WindowsNotification\Content_Type::NotElab); $Notifier = new WindowsNotification\WindowsNotificationClass($Options); //send a raw $Notifier->Send($cha,$MyRawStuff);