• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

faqgetCategory

Some tooltip text!
• 1 minute to read
 • 1 minute to read

Description

Retrieves information about an FAQ category

In parameters

Parameter Description
sessionKey A valid session key. If empty the category has to be public.
categoryId The ID of the category. -1 if you want the top node

Out parameters

Parameter Description
errorCode See list of codes
faqSubCategories All subcategories. Every structure contains the following fields:
id (The category ID)
name (The category name)
description (The description of this category)
faqEntries All FAQ entries in this category. See field description.
faqParents The parents listed in a top/down matter: topCategory, notSoTopCategory, ..., thisCategory
id (The category ID)
name (The category name)
faqGroups The groups contained in this category. Every group contains the following information:
faqGroup Description
description The description of the group
id The group ID of this group. Used in faq_getGroupEntries().
entries The FAQ entries in this group. Each entry contains the following information:
id (The FAQ entry ID)
question (The question in the entry )

Example

customer.customerService custService = new customer.customerService();

string sessionKey;
if(custService.login("test","test", out sessionKey) == "0")
{
  customer.FaqCategoryStruct[] categories;
  customer.FaqEntryStruct[] entries;
  customer.FaqParentStruct[] parents;
  customer.FaqGroupStruct[] groups;

  string ret = custService.faq_getCategory(sessionKey, "2", out categories, out entries, out parents, out groups);
}
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top