An open API service indexing awesome lists of open source software.

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).

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).