Web-API:Feedback

From Cerberus Helpdesk Wiki

Jump to: navigation, search

Contents

Feedback

Create

$postfields = array(
	array('quote_text','This is the best app ever!'),
	array('author_address','happy-user@example.com'),	
);
$out = $cerb5->post($base_url . 'feedback/create.xml', $postfields);

Retrieve

$out = $cerb5->get($base_url . 'feedback/1.xml');

Update

$postfields = array(
	array('url','http://www.google.com/'),
	array('quote_mood','praise'),
);
$out = $cerb5->put($base_url . 'feedback/3.xml', $postfields);

Search

$postfields = array(
	array('criteria[]','author_address'),
	array('oper[]','like'),
	array('value[]','a*'),
	// array('criteria[]','id'),
	// array('oper[]','='),
	// array('value[]','1'),
	// array('criteria[]','email'),
	// array('oper[]','like'),
	// array('value[]','jeff@*'),
	array('sortBy','id'),
	array('sortAsc','1'),
	array('page','1'),
);
$out = $cerb5->post($base_url . 'feedback/search.xml', $postfields);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox