I am using icontact api 2.0 for integrating the icontact list in my site. I face an issue with creating new list and adding new message its not create any list using the API.But i can create contact and subscribe and so on.. Code used is
require_once('lib/iContactApi.php');
// Give the API your information
iContactApi::getInstance()->setConfig(array(
'appId' => 'my_APIID',
'apiPassword' => 'my_password',
'apiUsername' => 'my_username'
));
// Store the singleton
$oiContact = iContactApi::getInstance();
$oiContact->addList('test', 4424, true, false, false, 'Just an example list',"test");
$oiContact->addMessage('An Example Message', 585, '<h1>An Example Message</h1>', 'An Example Message', 'ExampleMessage', 33765, 'normal');
// Schedule send
$oiContact->sendMessage(array(33765), 179962, null, null, null, mktime(0, 0, 0, 10, 03, 2012));
Also checked some help but not found any soulution http://www.softwareprojects.com/resources/programming/t-icontact-20-api-integration-php-example-1925.html