Skip to content

Instantly share code, notes, and snippets.

@k88hudson
Last active June 5, 2018 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k88hudson/2d627d17ebd3e622e5b05e060d98b182 to your computer and use it in GitHub Desktop.
Save k88hudson/2d627d17ebd3e622e5b05e060d98b182 to your computer and use it in GitHub Desktop.
test snippets
{
"messages": [
{
"id": "794224as923",
"content": {
"text": "Hey <cta>how are you?</cta>.",
"links": {
"cta": {"url": "https://foo.com"}
}
}
},
{
"id": "79442433as923",
"content": {
"text": "Hey <cta>how are you?</cta>.",
"links": {
"cta": {"url": "javascript:alert(\"FOO\");"}
}
}
},
{
"id": "7944923",
"targeting": "hasFxAccount",
"content": {
"text": "Hey FXA User! We love you!"
}
},
{
"id": "742112952",
"targeting": "!hasFxAccount",
"content": {
"text": "You should definitely get an FXA account ok?",
"button_url": "https://www.mozilla.org/en-US/internet-health/privacy-security/?utm_source=desktop-snippet&utm_medium=snippet&utm_campaign=as_router_61exp_5&utm_term=7952&utm_content=rel",
"button_label": "A healthy Internet is secure and private",
"tall": true,
"title_icon": "https://snippets.mozilla.com/static/as_preview/glyph-pocket-16.svg",
"icon": "https://activity-stream-icons.services.mozilla.com/v1/images/privacy-heart-purple-42x42.svg"
}
},
{
"id": "7952",
"targeting": "!hasFxAccount",
"content": {
"text": "You should definitely get an FXA account ok?",
"button_url": "https://www.mozilla.org/en-US/internet-health/privacy-security/?utm_source=desktop-snippet&utm_medium=snippet&utm_campaign=as_router_61exp_5&utm_term=7952&utm_content=rel",
"button_label": "A healthy Internet is secure and private",
"button_color": "red",
"button_background_color": "blue",
"title_icon": "https://snippets.mozilla.com/static/as_preview/glyph-pocket-16.svg",
"icon": "https://activity-stream-icons.services.mozilla.com/v1/images/privacy-heart-purple-42x42.svg"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment