Methods > glpi.listKnowBaseItems

Version Comments
1.3.0 Method added
1.4.1 param type added

Return list of Knowbase or FAQ items available for the current user (when authenticated) or in the public FAQ (if configured)

input a hastable

  • help option to get usage information
  • count , start, limit (optional)
  • faq : boolean, default 0 when authenticated, 1 when not
  • category : integer, id of the category to search in (default 0, ignored if contains given)
  • contains : string to search for
  • type : string to search type (default 'search', can be 'myunpublished', 'allmy', 'allunpublished', 'browse')

return a array of hashtable

  • id
  • name : question
  • resume : resume of the answer (200 car.)
  • category : name of the category
  • others fields from glpi_knowbaseitems

Call example

$ php testxmlrpc.php --method=glpi.listKnowBaseItems             
+ Calling 'glpi.listKnowBaseItems' on http://localhost//glpi083/plugins/webservices/xmlrpc.php
+ Response: Array
(
    [0] => Array
        (
            [id] => 17
            [knowbaseitemcategories_id] => 0
            [name] => FAQ publique 2
            [is_faq] => 1
            [users_id] => 6
            [view] => 24
            [date] => 2012-01-10 15:16:35
            [date_mod] => 2012-01-10 15:16:35
            [category] => 
            [resume] => Encore un test
        )

)