faqgetEntry
Some tooltip text!
• 2 minutes to read
• 2 minutes to read
Description
Gets details about an FAQ entry.
In parameters
| Parameter | Description |
|---|---|
| sessionKey | A valid session key. If empty only public entries will be accessible. |
| entryId | The entry ID |
Out parameters
| Parameter | Description |
|---|---|
| errorCode | See list of codes |
| title | The title of the entry |
| question | The question. |
| answer | The answer. Is HTML encoded if hasHtml is "1". |
| links | Array of all links attached to this entry name (The name of the link) url (The URL to the link) |
| attachmentInfo | Array of information about attachments connected to this FAQ entry. Each element contains the fields: attachmentId, attachmentName, and contentType. |
| hasHtml | This indicates if the answer is formatted with HTML. |
| score | The score this entry has received. This is a number is between 1 and 100 |
| faqParents | All parents to this entry, listed in a top-down matter. id (of the parent folder) name (of the parent folder) |
Example
customer.customerService custService = new customer.customerService();
string sessionKey;
if(custService.login("test","test", out sessionKey) == "0")
{
string title;
string question;
string answer;
customer.FaqLinkStruct[] links;
string[] attachmentIds;
bool hasHtml;
string score;
customer.FaqParentStruct[] faqParents;
string entryId = "2";
string res = custService.faq_getEntry(sessionKey, entryId, out title, out question, out answer, out links, out attachmentIds, out hasHtml, out score, out faqParents);
}