Notifications
Last updated
Was this helpful?
Was this helpful?
return notifications.send('c_axon_leave_study', {}, {
endpoints: {
email: {
recipient: 'valid@example.com',
template: null,
message: 'testing',
html: '<html><p>Medable rocks!<p></html>'
}
}
})return notifications.send({
var1: 'test1',
var2: 'test2'
}, {
notification: 'c_test_not'
})import constants from 'constants'
return notifications.send({
var1: 'test1',
var2: 'test2'
}, {
notification: constants.emptyId,
endpoints: {
email: {
template: null,
message: 'testing',
html: '<html></html>'
}
}
})return notifications.send({
var1: 'test1',
var2: 'test2'
}, {
endpoints: {
push: {
message: 'test',
apn: {
topics: apnsTopics
}
}
}
})return notifications.send({ age: '32' }, {
endpoints: {
sms: {
template: 'c_sms_template',
mobile: '+18004444444'
}
}
})return notifications.send({}, {
endpoints: {
sms: {
message: 'Medable rocks!',
mobile: '+18004444444'
}
}
})return notifications.send('Medable rocks!', {}, {
endpoints: {
sms: {
mobile: '+18004444444'
}
}
})return notifications.send('Medable rocks!', {}, {
endpoints: {
sms: {}
},
recipient: 'valid@example.com'
})return notifications.send({
text1: 'Medable rocks!'
}, {
endpoints: {
push: {
template: 'c_push_test',
apn: {
topics: ['app'],
pushType: 'alert'
}
}
},
recipient: 'valid@example.com'
})return notifications.send({}, {
endpoints: {
push: {
message: 'Medable rocks!',
apn: {
topics: ['app'],
pushType: 'alert'
}
}
}
recipient: 'valid@example.com'
})return notifications.send({
name: 'Adam',
email: 'valid@example.com'
account_id: '12345',
study_name: 'Study',
study_code: '00001',
study_id: '12345'
}, {
endpoints: {
email: {
recipients: [
'valid1@example.com',
'valid2@example.com'
],
template: 'c_axon_leave_study'
}
}
})return notifications.send({}, {
endpoints: {
email: {
recipients: [
'valid1@example.com',
'valid2@example.com'
],
subject: 'Medable',
html: '<html><p>Medable rocks!<p></html>'
}
}
})return notifications.send({}, {
endpoints: {
email: {
recipients: [
'valid1@example.com',
'valid2@example.com'
],
subject: 'Medable',
message: 'Medable rocks!'
}
}
})const payload = {
var1: 'test1',
var2: 'test2'
}
notifications.send('c_axon_leave_study', payload)
notifications.send('c_axon_leave_study', payload, {
apnsTopics: [
'app',
'voip'
],
fcmTopic: 'all-devices',
recipient: 'valid@example.com'
})
return