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, 1 year 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.

Sign up for free.
Then send campaigns for as little as $9p/m

Create an account