Skip to content

lenowng/pingme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pingme

Chrome push notification extension for anything

Sample Publishing Payload

Through console via Custom Payload

{
  "default": "This is the default message which must be present when publishing a message to a topic. The default message will only be used if a message is not present for one of the notification platforms.",
  "GCM": "{ \"data\": { \"title\": \"Hello world !\",\"message\": \"Save le koala.\", \"iconUrl\": \"assets/img/app_icon.png\"}}"
}

Through Jira SNS integration

{
  "TopicArn": "arn:aws:sns:us-west-2:527728718473:pingme-general",
  "Message": "$util.escapeJson('{
    "default": "$event.simpleName with trace ID $event.traceId triggered at $event.timestamp",
    "GCM": "{ \"data\": { \"title\": \"$issue.key\", \"message\": \"Issue has moved to: Ready\", \"url\": \"$issue.self\", \"iconUrl\": \"assets/img/jira_icon.png\"}}"
  }')",
  "MessageStructure": "json",
  "Subject": "Automation with AWS: $event.simpleName triggered at $event.timestamp"
}

Through AWS CLI

aws sns publish --topic-arn "arn:aws:sns:us-west-2:527728718473:pingme-general" \
  --message-structure "json" \
  --message '{ "default": "This is the default message which must be present when publishing a message to a topic. The default message will only be used if a message is not present for one of the notification platforms.", "GCM": "{ \"data\": { \"title\": \"lenowng/pingme\", \"message\": \"lenowng has initiated a pull request to Master \", \"url\": \"$issue.self\", \"iconUrl\": \"assets/img/github_icon.png\"}}"}'

aws sns publish --topic-arn "arn:aws:sns:us-west-2:527728718473:pingme-general"
--message-structure "json"
--message "{"default": "Sample fallback message", "GCM": "{ \"data\": { \"title\": \"lenowng/pingme\", \"message\": \"lenowng has initiated a pull request to Master\", \"iconUrl\": \"assets/img/github_icon.png\"}}"}"

{ "default": "Sample fallback message", "GCM": '{ "data": { "title": "lenowng/pingme", "message": "lenowng has initiated a pull request to Master", "url": "$issue.self", "iconUrl": "assets/img/github_icon.png"}}'}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published