문제

So I am calling $api->lists(); on an existing account and it returns an array of mailing lists. When I swap out the API key for one in a new account which has two existing lists, calling the same $api->lists(); returns empty. Why would swapping out the API key break the lists(); and what are some possible solutions.

I am using MCAPI v1.1 and PHP.

$apikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-usx';
$api = new MCAPI($apikey);
dpm($api->lists()); // drupal print message

Edit: The solution to this was to swap out v1.1 for v1.3 of the MCAPI. I didn't really investigate the changes between these versions, but upgrading to v1.3 fixed it for me.

도움이 되었습니까?

해결책

The solution to this was to swap out v1.1 for v1.3 of the MCAPI. I didn't really investigate the changes between these versions, but upgrading to v1.3 fixed it for me.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top