import 'package:wikipedia_api/api.dart';
All URIs are relative to /api/rest_v1
Method | HTTP request | Description |
---|---|---|
dataRecommendationArticleCreationMorelikeSeedArticleGet | GET /data/recommendation/article/creation/morelike/{seed_article} | Recommend missing articles |
dataRecommendationArticleCreationTranslationFromLangGet | GET /data/recommendation/article/creation/translation/{from_lang} | Recommend articles for translation. |
dataRecommendationArticleCreationTranslationFromLangSeedArticleGet | GET /data/recommendation/article/creation/translation/{from_lang}/{seed_article} | Recommend articles for translation. |
List dataRecommendationArticleCreationMorelikeSeedArticleGet(seedArticle)
Recommend missing articles
Recommends articles similar to the seed article but are missing from the domain language Wikipedia. Stability: unstable
import 'package:wikipedia_api/api.dart';
final api_instance = RecommendationApi();
final seedArticle = seedArticle_example; // String | The article title used to search similar but missing articles
try {
final result = api_instance.dataRecommendationArticleCreationMorelikeSeedArticleGet(seedArticle);
print(result);
} catch (e) {
print('Exception when calling RecommendationApi->dataRecommendationArticleCreationMorelikeSeedArticleGet: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
seedArticle | String | The article title used to search similar but missing articles |
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RecommendationResult dataRecommendationArticleCreationTranslationFromLangGet(fromLang, count)
Recommend articles for translation.
Recommends articles to be translated from the source to the domain language. See more at Recommendation API documentation Stability: unstable
import 'package:wikipedia_api/api.dart';
final api_instance = RecommendationApi();
final fromLang = fromLang_example; // String | The source language code
final count = 56; // int | The max number of articles to return
try {
final result = api_instance.dataRecommendationArticleCreationTranslationFromLangGet(fromLang, count);
print(result);
} catch (e) {
print('Exception when calling RecommendationApi->dataRecommendationArticleCreationTranslationFromLangGet: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
fromLang | String | The source language code | |
count | int | The max number of articles to return | [optional] [default to 24] |
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RecommendationResult dataRecommendationArticleCreationTranslationFromLangSeedArticleGet(fromLang, seedArticle, count)
Recommend articles for translation.
Recommends articles to be translated from the source to the domain language. See more at Recommendation API documentation Stability: unstable
import 'package:wikipedia_api/api.dart';
final api_instance = RecommendationApi();
final fromLang = fromLang_example; // String | The source language code
final seedArticle = seedArticle_example; // String | The article to use as a search seed
final count = 56; // int | The max number of articles to return
try {
final result = api_instance.dataRecommendationArticleCreationTranslationFromLangSeedArticleGet(fromLang, seedArticle, count);
print(result);
} catch (e) {
print('Exception when calling RecommendationApi->dataRecommendationArticleCreationTranslationFromLangSeedArticleGet: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
fromLang | String | The source language code | |
seedArticle | String | The article to use as a search seed | |
count | int | The max number of articles to return | [optional] [default to 24] |
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]