get_schedule missing campaignmonitor-createsend-php-1.0.12-3-gc1ade43

I downloaded the most recent PHP api specifically to access the get_scheduled()...
I downloaded this version of the API samples: campaignmonitor-createsend-php-1.0.12-3-gc1ade43.zip
I Downloaded it on 20/12/2011

But it seems like the method is undefined/missing...

Error message---> Call to undefined method CS_REST_Clients::get_scheduled()

Anyone else is also getting that error ?

tobyb tobyb, 4 years ago

Hi marcel,

The method is definitely defined in that version. Are you able to post the code your using the call this method (obscuring any API keys/emails etc).

Thanks
Toby

marcel, 4 years ago

This is the code I am using...

//$result = $wrap->get_campaigns();   //  <----this works
//$result = $wrap->get_drafts();    //  <----this works
$result = $wrap->get_scheduled();   //  <---- Not working

echo "Result of /api/v3/clients/{id}/scheduled\n<br />";
if($result->was_successful()) {
    echo "Got scheduled campaigns\n<br /><pre>";
    var_dump($result->response);
} else {
    echo 'Failed with code '.$result->http_status_code."\n<br /><pre>";
    var_dump($result->response);
}
echo '</pre>';
marcel, 4 years ago

I used this sample: creatsend\samples\client\get_scheduled.php

tobyb tobyb, 4 years ago

Hi marcel,

That's very strange, I've checked the 1.0.12 tag and the get_scheduled method is definitely available. Can you try downloading the 1.0.12 version again (or grabbing the latest version) from the repo here. If your still getting the same problem could you get in touch with support at campaignmonitor.com. Please include your API key and the campaignmonitor-createsend-php-1.0.12-3-gc1ade43.zip file.

Thanks.

Join 150,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