Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete list forbidden #25

Closed
NelsonGaldeman opened this issue Jan 16, 2019 · 3 comments
Closed

Delete list forbidden #25

NelsonGaldeman opened this issue Jan 16, 2019 · 3 comments

Comments

@NelsonGaldeman
Copy link

I'm getting a forbidden error when I try to delete a list.

I confirmed It exists and I also tried to delete one manually and worked. I've tried with 50 different lists and I always got the same response.

MailWizzApi_Params Object ( [_data:MailWizzApi_Params:private] => Array ( [status] => error [error] => Forbidden ) [_readOnly:MailWizzApi_Params:private] => ) 
@twisted1919
Copy link
Owner

Deletes are made via the DELETE method/http verb. Your server seems to have it disabled. Allow it and you will be fine.

@NelsonGaldeman
Copy link
Author

NelsonGaldeman commented Jan 16, 2019

Thank you for the fast replay. I went more in-deep about this matter and I found you already stated that hosting providers usually don't block those kind of unused HTTP methods but unlikely that's far from truth.

Although being on your side by strictly following the standards I adivce you to change your mind on this and use GET/POST with extra information over data parameters for each instruction type. Just because of compatibiliy.

In my own case, I would have to switch my e-mail marketing provider because I don't even own the server or the shared hosting account. Unfortunally I can't right now, so that mean I can't use the API to delete/add(PUT) things.

I was able to get this HTTP header from my own hosting provider

Allow: POST,OPTIONS,HEAD,GET,TRACE

@twisted1919
Copy link
Owner

Sorry for the inconvenience, i get it, but we won't be changing the methods.
You can ask your hosting to allow PUT and/or DELETE methods, they should, there is nothing bad with them, they dictate how REST protocol works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants