Skip to content

Instantly share code, notes, and snippets.

@klaaz0r
Created September 6, 2021 12:31
Show Gist options
  • Save klaaz0r/2550db96db27430b3a4278eecad2fa76 to your computer and use it in GitHub Desktop.
Save klaaz0r/2550db96db27430b3a4278eecad2fa76 to your computer and use it in GitHub Desktop.
Email settings
const createOptions = (variables: any) => {
return {
maizzle: {
env: "node",
...variables,
clientUrl: config.clientUrl,
assetsUrls: "https://images.reason.fm/email-assets",
company: {
url: config.clientUrl,
name: "Reason",
email: "[email protected]",
openInApp: 'https://..',
playstore:
"https://play.google.com/store/apps/details?id=com.brabble.fm",
appstore: "https://apps.apple.com/us/app/reason-fm/id1497910767",
},
year: () => new Date().getFullYear(),
}
};
};
// Claim podcast email:
const data = {
podcast: {
title: 'Questlove Supreme',
url: 'https://reason.fm/podcast/questlove-supreme',
thumbnail: 'https://images.reason.fm/6afe856d5f1a8ae85552f8921fcf34c3d4520a33.jpeg',
},
code: 'DXEF5D'
}
// Daily digest email:
const data = {
user: {
username: 'klaas',
url: 'https://reason.fm/user/Klaas',
avatar: 'https://images.reason.fm/avatars/5906f586-b59f-40f0-a7ea-825a1a85582d.jpeg',
},
episodes: [
{
name: '100: NSO',
summary: 'The NSO Group creates a spyware called Pegasus which gives someone access to the data on a mobile phone. They sell this spyware to government agencies around the world. ',
url: 'https://reason.fm/podcast/darknet-diaries/100-nso',
thumbnail: 'https://images.reason.fm/80d3ddd38fd9f682482fd0cbd6b8efebfe958e0a.jpeg'
}
]
}
// Mention email:
const data = {
user: {
username: 'klaas',
url: 'https://reason.fm/user/Klaas',
avatar: 'https://images.reason.fm/avatars/5906f586-b59f-40f0-a7ea-825a1a85582d.jpeg',
},
comment: {
createdAt: '6 September',
episode: {
name: '100: NSO',
summary: 'The NSO Group creates a spyware called Pegasus which gives someone access to the data on a mobile phone. They sell this spyware to government agencies around the world. ',
url: 'https://reason.fm/podcast/darknet-diaries/100-nso',
thumbnail: 'https://images.reason.fm/80d3ddd38fd9f682482fd0cbd6b8efebfe958e0a.jpeg'
},
user: {
username: 'klaas',
url: 'https://reason.fm/user/Klaas',
avatar: 'https://images.reason.fm/avatars/5906f586-b59f-40f0-a7ea-825a1a85582d.jpeg',
},
content: 'something something'
url: 'https://reason.fm/podcast/zyx'
}
}
// Podcast report email:
const data = {
podcast: {
title: 'Questlove Supreme',
url: 'https://reason.fm/podcast/questlove-supreme',
thumbnail: 'https://images.reason.fm/6afe856d5f1a8ae85552f8921fcf34c3d4520a33.jpeg',
},
subscribers: 123,
comments: 25,
likes: 90,
comments: [
{
createdAt: '6 September',
episode: {
name: '100: NSO',
summary: 'The NSO Group creates a spyware called Pegasus which gives someone access to the data on a mobile phone. They sell this spyware to government agencies around the world. ',
url: 'https://reason.fm/podcast/darknet-diaries/100-nso',
thumbnail: 'https://images.reason.fm/80d3ddd38fd9f682482fd0cbd6b8efebfe958e0a.jpeg'
},
user: {
username: 'klaas',
url: 'https://reason.fm/user/Klaas',
avatar: 'https://images.reason.fm/avatars/5906f586-b59f-40f0-a7ea-825a1a85582d.jpeg',
},
content: 'something something'
url: 'https://reason.fm/podcast/zyx'
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment