InvalidArgumentException - Magic request methods require a URI and optional options array
exzib opened this issue · 1 comments
exzib commented
$mailerliteClient = new \MailerLiteApi\MailerLite(env('mailer_lite'));
$groupsApi = $mailerliteClient->groups();
$subscriber = [
'email' => $this->email,
];
$response = $groupsApi->addSubscriber(env('mailer_group'), $subscriber);
I am getting this error from running this code in my laravel job, what am i doing wrong?
johnkelesidis commented
Hi,
If the issue still persist please reopen it and include more information about your environment. Thanks!