https://github.com/oniestel/go-wns
Simple Go package for working with Windows Push Notification Services (WNS).
https://github.com/oniestel/go-wns
go golang notification package push windows windows-10 wns
Last synced: 4 months ago
JSON representation
Simple Go package for working with Windows Push Notification Services (WNS).
- Host: GitHub
- URL: https://github.com/oniestel/go-wns
- Owner: oniestel
- License: mit
- Created: 2017-11-26T10:08:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-14T09:03:09.000Z (over 4 years ago)
- Last Synced: 2025-02-01T08:51:15.683Z (5 months ago)
- Topics: go, golang, notification, package, push, windows, windows-10, wns
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 9
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-wns
Simple Go package for working with Windows Push Notification Services (WNS).## Example
```
client := wns.Client{}
client.Init("{Package Security Identifier}", "{Client Secret}")
notification := wns.NewToast().SetTemplate("ToastText02").
AddText("1", "Title").
AddText("2", "Text")success, err := client.Send("{Channel URL}", notification)
if err != nil {
log.Println(err.Code, err.Message)
}
```You can find more templates [here](https://msdn.microsoft.com/en-us/library/windows/apps/hh761494).