mailerlite-api-v2-php-sdk
mailerlite-api-v2-php-sdk copied to clipboard
Official PHP wrapper for MailerLite Classic HTTP API v2
`$mailerliteClient = new \MailerLiteApi\Mailerlite('your-api-key', $guzzleClient);` There is a case sensitivity issue here, this should be: `$mailerliteClient = new \MailerLiteApi\MailerLite('your-api-key', $guzzleClient);` Copy/pasting this example as-is will work in a case-insensitive environment...
``` $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...
## Problem When considering the compatibility of this library it's difficult to know for sure what it's actually compatible with and whether it can reliably be used in modern projects....
I'm a new user of the SDK, but it looks like this snippet is the best way to determine if an email is currently subscribed or not: ```php $subscription =...
Hi all, We've recently moved to the new MailerLite from the Classic version, and some endpoints are not working with the new version. For example, there is a problem with...
It looks really strange How to use it, if i want to get groups with names like some string ? https://github.com/mailerlite/mailerlite-api-v2-php-sdk/blob/6c13e721511f5045770115bfbc754fbe3a7bb27a/src/Common/ApiAbstract.php#L166
When i want to fetch all campaigns through the API, i get the ```endpoint not found``` error. ``` public function __construct() { $this->instance = new \MailerLiteApi\MailerLite('credentials'); } public function getCampaigns()...
All links in the newsletter are rewritten to mlsend.com. Is there a way to disable link tracking or other tracking options when you create a campaign via api and this...
Hi, in php 8.1.10 I found this error: `[08-Jun-2023 12:23:36 UTC] PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of MailerLiteApi\Common\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed...
$request = $this->getRequestFactory()->createRequest($method, $endpointUrl); I got the error Undefined method createRequest. And the json_encode($request) is {}