Knowledge クラス
名前空間
Knowledge のメソッド
getTopViewedArticlesForTopic(communityId, topicId, maxResults)
API バージョン
41.0
ゲストユーザーが使用可能
41.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.KnowledgeArticleVersionCollection getTopViewedArticlesForTopic(String communityId, String topicId, Integer maxResults)
パラメーター
getTrendingArticles(communityId, maxResults)
API バージョン
36.0
ゲストユーザーが使用可能
36.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.KnowledgeArticleVersionCollection getTrendingArticles(String communityId, Integer maxResults)
パラメーター
使用方法
getTrendingArticlesForTopic(communityId, topicId, maxResults)
API バージョン
36.0
ゲストユーザーが使用可能
36.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.KnowledgeArticleVersionCollection getTrendingArticlesForTopic(String communityId, String topicId, Integer maxResults)
パラメーター
使用方法
Knowledge テストメソッド
これらのメソッドを使用して ConnectApi コードをテストする方法の詳細は、「ConnectApi コードのテスト」を参照してください。
setTestGetTrendingArticles(communityId, maxResults, result)
API バージョン
36.0
署名
public static Void setTestGetTrendingArticles(String communityId, Integer maxResults, ConnectApi.KnowledgeArticleVersionCollection result)
パラメーター
- communityId
- 型: String
- Experience Cloud サイトの ID、internal、または null。
- maxResults
- 型: Integer
- 返される記事の最大数。有効な値は 0 ~ 25 です。デフォルトは 5 です。
- result
- 型: ConnectApi.KnowledgeArticleVersionCollection
- テストデータを含むオブジェクト。
戻り値
型: Void
setTestGetTrendingArticlesForTopic(communityId, topicId, maxResults, result)
API バージョン
36.0
署名
public static Void setTestGetTrendingArticlesForTopic(String communityId, String topicId, Integer maxResults, ConnectApi.KnowledgeArticleVersionCollection result)
パラメーター
- communityId
- 型: String
- Experience Cloud サイトの ID、internal、または null。
- topicId
- 型: String
- トピックの ID。
- maxResults
- 型: Integer
- 返される記事の最大数。有効な値は 0 ~ 25 です。デフォルトは 5 です。
- result
- 型: ConnectApi.KnowledgeArticleVersionCollection
- テストデータを含むオブジェクト。
戻り値
型: Void