-
Notifications
You must be signed in to change notification settings - Fork 2
Self Service Endpoints
Below are the currently supported self-service endpoints.
$articles = $api->getArticles();You can filter the results as shown below. For a full list of supported filtering options, see https://api.supportpal.com/api.html#self-service-article-get
$articles = $api->getArticles(['type_id' => 1]);$article = $api->getArticle(1);Additional query parameters are available. For a full list of supported filtering options, see https://api.supportpal.com/api.html#self-service-article-get-1
$article = $api->getArticle(1, ['type_id' => 1, 'increment_views' => 1]);$articles = $api->getArticlesByTerm('foo');Additional filtering options are available. For a full list of supported filtering options, see https://api.supportpal.com/api.html#self-service-article-get-2
$articles = $api->getArticlesByTerm('foo', ['type_id' => 1]);$categories = $api->getCategories();Additional filtering options are available. For a full list of available filtering options, see https://api.supportpal.com/api.html#self-service-category-get
$categories = $api->getCategories(['type_id' => 1]);$category = $api->getCategory();$comments = $api->getComments();Additional filtering options are available. For a full list of available filtering options, see https://api.supportpal.com/api.html#self-service-comment-get
$comments = $api->getComments(['type_id' => 1]);
$comment = new \SupportPal\ApiClient\Model\Comment;
$comment->fill([
'text' => 'foo',
'article_id' => 3,
'type_id' => 1,
'parent_id' => 1,
'status' => 3,
'notify_reply' => 0
]);
$api->postComment(Comment $comment);$settings = $api->getSelfServiceSettings();