Skip to main content

I stumbled upon this post as I’ve been working on integrating a similar setup. however, I’m looking to integrate into an existing API that I’ve built. With that being said, I did so using node (and fetch). Here’s what I ended up with as a test:

 

const fetch = require('node-fetch')



const sendHttpRequest = (method, url, data) => {

return fetch(url, {

method: method,

body: JSON.stringify(data),

headers: data ? { 'Content-Type': 'application/json' } : {}

}).then(response => {

return response.json()

})

}



const sendData = () => {

sendHttpRequest('POST', '<YOUR ZAPIER WEBHOOK URL>', {

...

})

}

sendData()

 

QUESTION: What is the best option for extracting individual values within Zapier? 

 

Hi @Anoroc 

Sorry we missed this, did you get it sorted?

If not, maybe @ikbelkirasan can help with this.


Hi @AndrewJDavison_Luhhu 

I did, yes. I ended up writing a function to send data from my API to Google sheets as a “flat database”. Form there, I could send the necessary data as individual fields to Constant Contact, with a Zap.

 


Fantastic @Anoroc - glad to hear it!