Closed mikegreen closed 8 months ago
Hello @mikegreen Unfortunately, I do not have a quick answer for you right now but I can say that we will take a look during next day and I will be back with answer soon
Hello @mikegreen So I tested code. In my case everuthing works good.
I have a results
Mailgun\Model\Suppression\Bounce\ShowResponse Object
(
[address:Mailgun\Model\Suppression\Bounce\Bounce:private] => test@gmail.com
[code:Mailgun\Model\Suppression\Bounce\Bounce:private] => 550
[error:Mailgun\Model\Suppression\Bounce\Bounce:private] => aaaaaa
[createdAt:Mailgun\Model\Suppression\Bounce\Bounce:private] => DateTimeImmutable Object
(
[date] => 2023-11-27 10:10:19.000000
[timezone_type] => 3
[timezone] => UTC
)
)
Please, check your configuration of domain and key (probably domain is wrong)
hi @oleksandr-mykhailenko - thanks for that.
Just got back to this project and it ran fine today.. I wonder if the API keys are eventually consistent or such? Same code, same domain variable. 🤷🏼 It was a new API key...
thanks for circling back!
Hey @oleksandr-mykhailenko can you try it with a non-existant bounce email address? I realized it does work for a valid bounce, but if its not found - it gives the The endpoint you have tried to access does not exist.
which I don't think is expected.
Hello @mikegreen So we fixed that in new version. Right now it shows message from the server in case of 404 error
I'm trying to check if a suppression exists before adding it.
The docs here: https://github.com/mailgun/mailgun-php/blob/master/doc/index.md#suppression-api, show this for "Show bounces for a specific address"
When I try that, specifically with
$responseSupression = $mailgun->suppressions()->bounces()->show('domain.com', 'bob@email.com');
It fails with:
This domain matches, and it works with other endpoints (see bottom). Using an API key for my user who is an account admin.
I can get the entire list, via
$responseBounces = $mailgun->suppressions()->bounces()->index($sendingDomain);
Is this not implemented? Is this error hiding somethign else?