Web-API:Tasks

From Cerberus Helpdesk Wiki

Jump to: navigation, search

Contents

Tasks

Create

$postfields = array(
	array('title','This is a task from the Web-API'),
);
$out = $cerb5->post($base_url . 'tasks/create.xml', $postfields);

Retrieve

$out = $cerb5->get($base_url . 'tasks/3.xml');

Update

$postfields = array(
	array('title','This is a task from the WEB-API!!'),
	array('assignee_id', '1'),
	// array('custom_26[]','-Thu'),
	// array('custom_26[]','-Wed'),
	// array('custom_26[]','-Tue'),
	// array('custom_26[]','+Mon'),
	// array('custom_26[]','Fri'),
);
$out = $cerb5->put($base_url . 'tasks/5.xml', $postfields);

Search

$postfields = array(
	array('criteria[]','assignee_id'),
	array('oper[]','!='),
	array('value[]','8'),
	array('criteria[]','title'),
	array('oper[]','like'),
	array('value[]','t*'),
	array('sortBy','id'),
	array('sortAsc','1'),
	array('page','1'),
);
$out = $cerb5->post($base_url . 'tasks/search.xml', $postfields);

Notes

$postfields = array(
	array('note',"This is a note through the Web-API."),
);
$out = $cerb5->post($base_url . 'tasks/2/note.xml', $postfields);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox