Skip to content

Oniestel/go-wns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Simple Go package for working with Windows Push Notification Services (WNS).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages