Skip to content

Instantly share code, notes, and snippets.

View anshul313's full-sized avatar
💭
I may be slow to respond.

Anshul Sharma anshul313

💭
I may be slow to respond.
View GitHub Profile
@anshul313
anshul313 / aws.sns.js
Created July 22, 2016 06:10 — forked from sriharshaj/aws.sns.js
AWS SNS ( Simple Push Notification ) using Node.js
var AWS = require('aws-sdk');
AWS.config.update({accessKeyId: config.AWSAccessKeyId, secretAccessKey: config.AWSSecretKey,{region: config.AWSRegion}});
var sns = AWS.SNS();
var params ={
Name:"test",
Platform:"GCM",//or APNS (Apple ) or ADM (Amazon)
Attributes:{ // required