Skip to content

Commit

Permalink
update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
iniyan2707 authored Feb 8, 2022
1 parent 470cea5 commit c0e63fc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ app.post("/",function(req,res){

const jsonData = JSON.stringify(data);

const url= "https://us20.api.mailchimp.com/3.0/lists/0dfd0fb288";
const url= "https://us20.api.mailchimp.com/3.0/lists/{list_id}";
const options ={
method: "POST",
auth : "iniyan:aea6be415315cf63a221d21d2aeb5e19-us20"
auth : "iniyan:{apikey}"
}

const request = https.request(url,options, function(response){
Expand Down Expand Up @@ -70,8 +70,6 @@ app.post("/failure",function(req,res){



// aea6be415315cf63a221d21d2aeb5e19-us20
// 0dfd0fb288 audience id

app.listen(process.env.PORT || 3000, function(){
console.log("Server is running at port 3000");
Expand Down

0 comments on commit c0e63fc

Please sign in to comment.