GlpisetTicketSatisfaction » History » Version 1

remi, 07/21/2011 09:23 AM

1 1 remi
h1. [[En_devguide#Provided-Methods|Methods]] > glpi.setTicketSatisfaction
2 1 remi
3 1 remi
!https://forge.indepnet.net/svn/webservices/authenticated.png! +@This method is only accessible by authenticated users@+
4 1 remi
5 1 remi
| Version | Comments |
6 1 remi
| 1.2.0 | Method added |
7 1 remi
8 1 remi
Answer to the ticket satisfaction survey
9 1 remi
10 1 remi
*input* a hastable
11 1 remi
12 1 remi
* *help* option to get usage information
13 1 remi
14 1 remi
* *ticket* : ID of the ticket, mandatory
15 1 remi
* *satisfaction* : integer from 0 to 5, mandatory
16 1 remi
* *comment* : text, optional
17 1 remi
18 1 remi
*return* a  hastable if succed (as for [[glpi.getTicket]])
19 1 remi
20 1 remi
*Call example*
21 1 remi
22 1 remi
<pre>
23 1 remi
$ php testxmlrpc.php --session=baso8erm06cdd6tqht3km6vf81 \
24 1 remi
   --method=glpi.setTicketSatisfaction \
25 1 remi
   --ticket=290 \
26 1 remi
   --satisfaction=2 \
27 1 remi
   "--comment=thank's a lot"
28 1 remi
+ Calling 'glpi.setTicketSatisfaction' on http://localhost//glpi080/plugins/webservices/xmlrpc.php?session=baso8erm06cdd6tqht3km6vf81
29 1 remi
+ Response: Array
30 1 remi
(
31 1 remi
    [id] => 290
32 1 remi
    [entities_id] => 1
33 1 remi
...
34 1 remi
    [satisfaction] => Array
35 1 remi
        (
36 1 remi
            [id] => 22
37 1 remi
            [tickets_id] => 290
38 1 remi
            [type] => 1
39 1 remi
            [date_begin] => 2011-07-05 14:18:28
40 1 remi
            [date_answered] => 2011-07-21 09:22:47
41 1 remi
            [satisfaction] => 2
42 1 remi
            [comment] => thank's a lot
43 1 remi
        )
44 1 remi
)
45 1 remi
</pre>