mirror of
https://github.com/oceanprotocol/webtasks
synced 2025-01-07 20:35:30 +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 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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user