Web-API:Tasks
From Cerberus Helpdesk Wiki
Contents |
Tasks
Create
- assignee_id (integer)
- completed (timestamp)
- due (timestamp)
- is_completed (bit)
- title (string)
- updated (timestamp)
- custom_*
$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
- assignee_id (integer)
- completed (timestamp)
- due (timestamp)
- is_completed (bit)
- title (string)
- updated (timestamp)
- custom_*
$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
- assignee_id (integer)
- completed (timestamp)
- due (timestamp)
- id (integer)
- is_completed (bit)
- title (string)
$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);