Sure, so he navigates to the Admin UI, clicks Cloud functions and writes the following (there might be typos as I copied it from a screenshot, this is just to demonstrate his code):
Moralis.Cloud.beforeSave("NewDonations", async (request) => (
let data = {
app id: "10c413ad-e935-49lb-blla-3f9dle7al2ec",
contents: ("en": "Hello"},
included segments: ["Subscribed Users"],
name: "SMS",
sms_from: "+447476557244"
}
Moralis.Cloud.httpRequest((
method: "POST',
url: "https://onesignal.com/api/v1/notifications",
body: data,
headers: {
"Content-Type": "application/json",
"Authorization": "Basic NTRhZGEyYTEtY2NhOSOONDhjLT1mN2ItyTI0MzBmMzOwMmU3'
}
})
})
So he isn’t using the new Webhook functionality, right? It looks like he’s just defining cloud code.