Create Scheduled and/or recurring Tasks In Codeigniter Application using Atrigger PHP library,
1) Create an account at Atrigger.com to obtain API key and Secret.- Define your API key and Secret in the Application/Config/trigger.php.
$this->load->library('Trigger'); $tags = array(); $tags['type']='test'; $this->trigger->doCreate("1month", "http://www.example.com/myTask?something", $tags);
To delete a Task
$this->load->library('Trigger'); $tags = array(); $tags['type']='test'; $this->trigger->doDelete($tags);
You can have a look at all available functions here