-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
async function syncToEzoic(
email: string,
location: ExecutionLocation
): Promise {
const hashedEmail = prepareEzoicHash(email);
let exitCode = 1; // Default to failure
try {
// Example: Sending to Ezoic via an API or Data Layer push
// In a browser 'local' context, this might be window.ezID.push()
const response = await fetch('https://identity.ezoic.com/v1/identify', {
method: 'POST',
body: JSON.stringify({ uid: hashedEmail })
});
if (response.ok) exitCode = 0;
} catch (error) {
console.error("Ezoic Sync Failed:", error);
exitCode = 1;
}
return {
name: 'Ezoic_Identity_Sync',
success: exitCode === 0,
isWrite: true, // We are pushing data to their servers
executionLocation: location
};
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels