I am a beginner when it comes to developing APIs and cloud code, and I need help figuring out how to create an API that can add or update users in my back4app database table to my sendinblue (ESP) contact list.
Could someone provide guidance on what should be included in the main.js file that is uploaded and what steps are required to ensure that any updates to a user record trigger the sending of information to sendinblue? I haven't been able to see any logs indicating whether the code execution was successful or not.
Here is what I am attempting to send whenever the "_User" table is updated in back4app.
Parse.Cloud.aftersave("_User"), function(request, response) { curl -X POST -H 'content-type:application/json' -H 'api-key:APIKEY' -d '{"listIds":["3"],"email":"[email protected]","updateEnabled":"true"}' });