I am using latest CC PHP SDK. and when I try to create campaing using that SDK I encountered with the following error can anyone please guide me how to resolve this issue?
Catchable fatal error: Argument 1 passed to Ctct\Components\EmailMarketing\Campaign::create() must be of the type array, null given, called in \src\Ctct\Services\EmailMarketingService.php on line 31 and defined in src\Ctct\Components\EmailMarketing\Campaign.php on line 200
many thanks in advance. prompt reply will be highly appreciated.
After reviewing the code, it sounds like you're running into an error due to a failure to create the email campaign. When you downloaded the SDK did you get the code directly, or did you use the latest release on Github? I ask because there are some differences between the two that may change how we can troubleshoot the issue.
Also, are you still seeing this error when you try to add an email campaign to your Constant Contact account?