diff --git a/hubspot/index.html b/hubspot/index.html index fca7097..268455f 100644 --- a/hubspot/index.html +++ b/hubspot/index.html @@ -830,17 +830,10 @@ if (email) body.email = email; if (!body.name) body.name = firstName + ' ' + lastName; - const res = await fetch('https://services.leadconnectorhq.com/contacts/', { + const res = await fetch('https://mcpengage-waitlist.jake-2ab.workers.dev', { method: 'POST', - headers: { - 'Authorization': 'Bearer pit-0480982f-750b-4baa-bc10-1340a9b2102b', - 'Content-Type': 'application/json', - 'Version': '2021-07-28' - }, - body: JSON.stringify({ - ...body, - locationId: 'DZEpRd43MxUJKdtrev9t' - }) + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify(body) }); if (res.ok || res.status === 200 || res.status === 201) { diff --git a/salesforce/index.html b/salesforce/index.html index 7a58c8e..dd9aa50 100644 --- a/salesforce/index.html +++ b/salesforce/index.html @@ -830,17 +830,10 @@ if (email) body.email = email; if (!body.name) body.name = firstName + ' ' + lastName; - const res = await fetch('https://services.leadconnectorhq.com/contacts/', { + const res = await fetch('https://mcpengage-waitlist.jake-2ab.workers.dev', { method: 'POST', - headers: { - 'Authorization': 'Bearer pit-0480982f-750b-4baa-bc10-1340a9b2102b', - 'Content-Type': 'application/json', - 'Version': '2021-07-28' - }, - body: JSON.stringify({ - ...body, - locationId: 'DZEpRd43MxUJKdtrev9t' - }) + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify(body) }); if (res.ok || res.status === 200 || res.status === 201) { diff --git a/zendesk/index.html b/zendesk/index.html index a3071fc..c6ef645 100644 --- a/zendesk/index.html +++ b/zendesk/index.html @@ -830,17 +830,10 @@ if (email) body.email = email; if (!body.name) body.name = firstName + ' ' + lastName; - const res = await fetch('https://services.leadconnectorhq.com/contacts/', { + const res = await fetch('https://mcpengage-waitlist.jake-2ab.workers.dev', { method: 'POST', - headers: { - 'Authorization': 'Bearer pit-0480982f-750b-4baa-bc10-1340a9b2102b', - 'Content-Type': 'application/json', - 'Version': '2021-07-28' - }, - body: JSON.stringify({ - ...body, - locationId: 'DZEpRd43MxUJKdtrev9t' - }) + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify(body) }); if (res.ok || res.status === 200 || res.status === 201) {