edit Upon more debugging I've found this so I might end up closing this if I can figure it out as it actually seems that the v3 is A-OK:
stdClass Object ( [error_key] => json.regex.mismatch.email_content [error_message] => #/email_content: This attribute value must be of the format '...' ) stdClass Object ( [error_key] => json.field.lists.value.invalid [error_message] => The contact list laravel does not exist. )
edit2 Great library. My fail. Closing.. Thanks!
Good morning,
I am using the version 3 branch due to Laravel using Gulp 6 and have run into an issue. I am able to successfully pull data from my account, such as getting a user, but run into an issue when creating a new campaign. I have followed the code in your examples folder titled "createAndScheduleCampaign.php" very closely. I've examined my object campaign object that I am passing over and it is meeting all of the criteria in this document:
CtctException in BaseService.php line 100:
Bad Request
in BaseService.php line 100
at BaseService->convertException(object(ClientException)) in EmailMarketingService.php line 35
at EmailMarketingService->addCampaign('my token', object(Campaign)) in ConstantContactIntegration.php line 68
I am concerned it is because I am on that alpha branch, but have read from other posts it should 'probably' be golden!
Note I've also just tested creating a user with the same example code and receive another Bad Request error.
edit Upon more debugging I've found this so I might end up closing this if I can figure it out as it actually seems that the v3 is A-OK:
stdClass Object ( [error_key] => json.regex.mismatch.email_content [error_message] => #/email_content: This attribute value must be of the format '...' ) stdClass Object ( [error_key] => json.field.lists.value.invalid [error_message] => The contact list laravel does not exist. )
edit2 Great library. My fail. Closing.. Thanks!
Good morning,
I am using the version 3 branch due to Laravel using Gulp 6 and have run into an issue. I am able to successfully pull data from my account, such as getting a user, but run into an issue when creating a new campaign. I have followed the code in your examples folder titled "createAndScheduleCampaign.php" very closely. I've examined my object campaign object that I am passing over and it is meeting all of the criteria in this document:
https://developer.constantcontact.com/docs/email-campaigns/email-campaign-api-index.html#ui-v-api
Here is my code:
// dd($campaign);
Any ideas why I might be getting this error:
CtctException in BaseService.php line 100: Bad Request in BaseService.php line 100 at BaseService->convertException(object(ClientException)) in EmailMarketingService.php line 35 at EmailMarketingService->addCampaign('my token', object(Campaign)) in ConstantContactIntegration.php line 68
I am concerned it is because I am on that alpha branch, but have read from other posts it should 'probably' be golden!
Note I've also just tested creating a user with the same example code and receive another Bad Request error.
Thanks in advance,