mirror of
https://github.com/oceanprotocol/webtasks
synced 2025-01-08 13:02:53 +01:00
decode newsletter data
This commit is contained in:
parent
c95bac34a0
commit
6bff6d4fa1
@ -34,7 +34,7 @@ server.get('/newsletter/:data', (req, res) => {
|
|||||||
const { data } = req.params
|
const { data } = req.params
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
url: `${apiUrlZohoCampaigns}json/listsubscribe?authtoken=${ZOHO_CAMPAIGNS_TOKEN}&scope=CampaignsAPI&resfmt=JSON&listkey=${ZOHO_CAMPAIGNS_LIST_KEY}&contactinfo=${data}` // eslint-disable-line max-len
|
url: `${apiUrlZohoCampaigns}json/listsubscribe?authtoken=${ZOHO_CAMPAIGNS_TOKEN}&scope=CampaignsAPI&resfmt=JSON&listkey=${ZOHO_CAMPAIGNS_LIST_KEY}&contactinfo=${decodeURIComponent(data)}` // eslint-disable-line max-len
|
||||||
}
|
}
|
||||||
sendRequest(options, res)
|
sendRequest(options, res)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user