sailthru/Sailthru_Client.php
public function postTrigger($template, $time, $time_unit, $event, $zephyr) {
        $data = [ ];
        $data['template'] = $template;
        $data['time'] = $time;
        $data['time_unit'] = $time_unit;
        $data['event'] = $event;
        $data['zephyr'] = $zephyr;

        $result = $this->apiPost('trigger', $data);
        return $result;
    }
public function postTrigger($template, $time, $time_unit, $event, $zephyr) {
        $data = [ ];
        $data['template'] = $template;
        $data['time'] = $time;
        $data['time_unit'] = $time_unit;
        $data['event'] = $event;
        $data['zephyr'] = $zephyr;

        $result = $this->apiPost('trigger', $data);
        return $result;
    }
public function postTrigger ( $ template , $ time , $ time_unit , $ event , $ zephyr ) { $ data = [ ] ; $ data [ 'template' ] = $ template ; $ data [ 'time' ] = $ time ; $ data [ 'time_unit' ] = $ time_unit ; $ data [ 'event' ] = $ event ; $ data [ 'zephyr' ] = $ zephyr ; $ result = $ this -> apiPost ( 'trigger' , $ data ) ; return $ result ; }
Create a trigger for templates
@param string $template
@param integer $time
@param string $time_unit
@param string $event
@param string $zephyr
@return array
@link http://docs.sailthru.com/api/trigger
Create a trigger for templates