Use this method to retrieve the user question of a certain id from the knowledge base.
client.getUserQuestionById(userQuestionId:Integer,options:Object).then(function(response){
//...
});
Name | Type | Description |
---|---|---|
userQuestionId | integer | User question identifier from the knowledge base. Minimum:0 |
This method does not have any options.
This method calls the Knowledge API’s GET /user-questions/{userQuestionId}
endpoint. Please refer to the Responses section of that endpoint on the Knowledge API Routes page for the response format.
The following example retrieves the user questions for content id '1':
// The parameter is the user question id
client.getUserQuestions(1).then(function(response){
response.data.results.forEach(function(result) {
console.log(`Result(${result.id}): ${result.title}`);
});
});