Skip to content

9to5/pushr-wns

Repository files navigation

PushrWns

Build Status Code Climate Coverage Status

Please see pushr-core for more information.

Configuration

Redis:

Pushr::ConfigurationWns.create(app: 'app_name', connections: 2, enabled: true, client_id: '<client_id>', client_secret: '<client_secret>)

YAML:

- type: Pushr::ConfigurationWns
  app: wns-app
  enabled: true
  connections: 1
  client_id: client_id_here
  client_secret: client_secret_here

Sending notifications

WNS:

Pushr::MessageWns.create(
  app: 'test', channel_uri: 'https://db3.notify.windows.com/?token=token',
  data: '<toast launch=""><visual lang="en-US"><binding template="ToastImageAndText01"><image id="1" '\
        'src="World" /><text id="1">Hello</text></binding></visual></toast>',
  content_type: 'text/xml', x_wns_type: 'wns/toast')

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages