Web-API:Feedback
From Cerberus Helpdesk Wiki
Contents |
Feedback
Create
- author_address (string)
- created (timestamp)
- quote_mood (string: praise, neutral, criticism)
- quote_text (string)
- url (string)
- custom_*
$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
- author_address (string)
- created (timestamp)
- quote_mood (string: praise, neutral, criticism)
- quote_text (string)
- url (string)
- custom_*
$postfields = array( array('url','http://www.google.com/'), array('quote_mood','praise'), ); $out = $cerb5->put($base_url . 'feedback/3.xml', $postfields);
Search
- author_address (string)
- author_id (integer)
- created (timestamp)
- quote_mood_id (string)
- quote_text (string)
- worker_id (integer)
$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);