Skip to content

Delete can't contain data #150

@PetrDlouhy

Description

@PetrDlouhy

Some APIs require to send data through the HTTP delete request. The slumber doesn't allow this, so I have to use this hack:

        resp = self.api.lists(self.list_id).unsubscribe._request(
            "DELETE",
            data={"email": email},
        )
        if not 200 <= resp.status_code <= 299:
            raise Exception("Not unsubscribed")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions