Official Documentation
const formType = "popup";
const params = {
sort: "created_at",
limit: 25,
page: 1
};
mailerlite.forms.get(formType, params)
.then(response => {
console.log(response.data);
})
.catch(error => {
if (error.response) console.log(error.response.data);
});
Official Documentation
const params = {
name: "Updated name"
};
mailerlite.forms.update("FORM_ID", params)
.then(response => {
console.log(response.data);
})
.catch(error => {
if (error.response) console.log(error.response.data);
});
Official Documentation
mailerlite.forms.delete("FORM_ID")
.then(response => {
console.log(response.data);
})
.catch(error => {
if (error.response) console.log(error.response.data);
});