Error: Invalid ListID(101)

Hi, I try add Subscriber.  I do

        
                ...
        $list_id = 'D8A0D4DB2A2CB75B';
        $cm = new CampaignMonitor( $api_key, $client_id, $campaign_id, $list_id );
        
        $result = $cm->subscriberAdd($email, 'New Guy');
        var_export($result);

and as result

array ( 'Result' => array ( 'Code' => '101', 'Message' => 'Invalid ListID', ), )

List ID I took from the url `....createsend.com/subscribers/listDetail.aspx?listID=D8A0D4DB2A2CB75B`. Should I use some another list ID?

Stig Stig, 3 years ago

Hi legf,

Yes, sorry about the confusion - the correct List ID to use is hidden behind the "change name/type" link here.

You can also grab it via this API method.


The Campaign Monitor Blog – HTML email smarts to go with your good looks.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free
1-888-533-8098