Git Product home page Git Product logo

aws-sns-plugin's Introduction

AWS SNS Plugin

WordPress plugin to send push notifications using Amazon Simple Notification Service

Platforms/Frameworks

  1. PHP
  2. WordPress
  3. AWS Simple Notification Service
  4. AWS SDK for PHP

Download

Plugin can be downloaded directly from WordPress plugin directory. https://wordpress.org/plugins/aws-sns/

Installation

  1. Upload the plugin files to the /wp-content/plugins/aws-sns directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Use the Settings->AWS SNS screen to configure the plugin.
  4. Provide Access Key ID, Secret Access Key, and Region of your Amazon SNS.

Usage

This plugin is created to send push notifications to different devices using Amazon Simple Notification Service. It connects with the Amazon SNS and fetch all the Topics created. And publish messages to that topics.

To use this plugin you must need following things.

  1. Amazon web service account.
  2. Amazon API "Access Key ID" and "Secret Access Key".
  3. Create atleast one topic in SNS.

Following payload is send to the selected topic, togather with the title and message you provide.

{ "default": "[MESSAGE]", "APNS": "{"aps":{"alert": "[MESSAGE]"} }", "APNS_SANDBOX":"{"aps":{"alert":"[MESSAGE]"}}", "GCM": "{ "data": { "message": "[MESSAGE]", "title": "[TITLE]", "datetime": "[DATETIME]" } }", "MPNS" : "<wp:Notification xmlns:wp="WPNotification">wp:Tilewp:Count1</wp:Count>wp:Title[MESSAGE]</wp:Title></wp:Tile></wp:Notification>", "WNS" : "<badge version"1" value"23"/>" }

In above payload following tags are replaced by the data provided. [TITLE] -> The title you provide. [MESSAGE] -> The message you provide. [DATETIME] -> server current datetime.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

Version: 1.0

  • Initial release.

License

GPLv2 http://www.gnu.org/licenses/gpl-2.0.html

aws-sns-plugin's People

Contributors

fayzandotcom avatar

Watchers

Nirenj avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.