We are integrating Zappier into our product. While any user creates Zap we would like to store that Zap Webhook into our database. Can you please help on this. Currently we are doing as below
const options = {
url: 'https://<ourserverwebsiteendpoint>',
method: 'GET',
headers: {
'Accept': 'application/json',
'X-USER-EMAIL': bundle.authData.user_email,
'X-API-KEY': bundle.authData.api_key
},
params: {
'user_email': bundle.authData.user_email,
'api_key': bundle.authData.api_key,
'hookUrl': bundle.targetUrl,
'hookIsTesting': bundle.meta.isTestingAuth
}
}
return z.request(options)
.then((response) => {
response.throwForStatus();
const results = response.json;
// You can do any parsing you need for results here before returning them
return results;
});
We are expecting bundle.targetUrl to have that but we are getting Null. help will be appreciated