I use the php-api to create my campaign.
Now a also want to send the campaign when a created the campaign.
To send the mail you need to have a campaignid. But the problem is when a create a campaign. I get this array without a campaignid:
CampaignMonitor Object ( [url]=> http://api.createsend.com/api/api.asmx [soapAction] => http://api.createsend.com/api/ [api] => 11111111111111111111111111111111111 [campaign_id] => [client_id] => [list_id] => [method] => soap [curl] => 1 [curlExists] => 1 [debug_level] => 1 [debug_request] => 11111111111111111111111111111111111 11111111111111111111111111111111111 Nieuwsbrief | Week 46 - 47 Nieuwsbrief | Week 46 - 47 Test subject firstname.lastname@example.org email@example.com http://www.domain.nl/sg/cronjob/mailing.php?lang_code=nl http://www.campaignmonitor.com/uploads/templates/previews/template-1-left-sidebar/textversion.txt 11111111111111111111111111111111111 [debug_response] => 11111111111111111111111111111111111 [debug_url] => http://api.createsend.com/api/api.asmx [debug_info] => Array ( [url]=> http://api.createsend.com/api/api.asmx [content_type] => text/xml; charset=utf-8 [http_code] => 200 [header_size] => 316 [request_size] => 252 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 2.642802 [namelookup_time] => 0.000476 [connect_time] => 0.111665 [pretransfer_time] => 0.111669 [size_upload] => 1053 [size_download] => 437 [speed_download] => 165 [speed_upload] => 398 [download_content_length] => 437 [upload_content_length] => 1053 [starttransfer_time] => 0.223398 [redirect_time] => 0 [headers_sent] => Array (  => User-Agent: CMBase URL Handler 1.4.9  => Content-Type: text/xml; charset=utf-8  => SOAPAction: "http://api.createsend.com/api/Campaign.Create" ) ) [show_response_headers] => 0 )
How do a get the campaign_ids that are not send.
It appears that you're not making the call to create the campaign correctly.
Unfortunately, the current version of our API doesn't give you the ability to get a list of the draft campaigns (and their corresponding IDs), which I'm pleased to say we'll be introducing very soon in our new REST API.
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