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, 4 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.

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free