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

Unsubscribe a Contact From a Specific Mailing List #74

Open
progdog-ru opened this issue Oct 23, 2021 · 1 comment
Open

Unsubscribe a Contact From a Specific Mailing List #74

progdog-ru opened this issue Oct 23, 2021 · 1 comment

Comments

@progdog-ru
Copy link

progdog-ru commented Oct 23, 2021

you do not have a method implemented: https://sendpulse.com/integrations/api/bulk-email - for this endpoint: https://api.sendpulse.com/addressbooks/{id}/emails/unsubscribe

@eropa
Copy link

eropa commented Jul 6, 2022

 public function unsubscribeEmail(int $bookID,  $emails)
    {
        if (empty($bookID)) {
            return $this->handleError('Empty book id');
        }

        $data = array(
            'emails' => json_encode($emails),
        );
        $requestResult = $this->sendRequest('addressbooks/' . $bookID . '/emails/unsubscribe', 'POST', $data);

        return $this->handleResult($requestResult);
    }

Вот пример [https://api.sendpulse.com/addressbooks/{id}/emails/unsubscribe] (https://api.sendpulse.com/addressbooks/%7Bid%7D/emails/unsubscribe) как можно отписаться .

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