import 'package:wikipedia_api/api.dart';
All URIs are relative to /api/rest_v1
Method | HTTP request | Description |
---|---|---|
pageTalkTitleGet | GET /page/talk/{title} | Get structured talk page contents |
pageTalkTitleRevisionGet | GET /page/talk/{title}/{revision} | Get structured talk page contents |
String pageTalkTitleGet(title, redirect)
Get structured talk page contents
Gets structured talk page contents for the provided title. Stability: experimental
import 'package:wikipedia_api/api.dart';
final api_instance = TalkPagesApi();
final title = title_example; // String | Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.
final redirect = true; // bool | Requests for [redirect pages](https://www.mediawiki.org/wiki/Help:Redirects) return HTTP 302 with a redirect target in `Location` header and content in the body. To get a 200 response instead, supply `false` to the `redirect` parameter.
try {
final result = api_instance.pageTalkTitleGet(title, redirect);
print(result);
} catch (e) {
print('Exception when calling TalkPagesApi->pageTalkTitleGet: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
title | String | Page title. Use underscores instead of spaces. Use percent-encoding. Example: Main_Page . |
|
redirect | bool | Requests for redirect pages return HTTP 302 with a redirect target in Location header and content in the body. To get a 200 response instead, supply false to the redirect parameter. |
[optional] |
String
No authorization required
- Content-Type: Not defined
- Accept: application/json; charset=utf-8; profile=https://www.mediawiki.org/wiki/Specs/Talk/0.1.0, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
String pageTalkTitleRevisionGet(title, revision, redirect)
Get structured talk page contents
Gets structured talk page contents for the provided title. Stability: experimental
import 'package:wikipedia_api/api.dart';
final api_instance = TalkPagesApi();
final title = title_example; // String | Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.
final revision = 56; // int | Optional page revision. Note that older revisions are not stored, so request latency with the revision would be higher.
final redirect = true; // bool | Requests for [redirect pages](https://www.mediawiki.org/wiki/Help:Redirects) return HTTP 302 with a redirect target in `Location` header and content in the body. To get a 200 response instead, supply `false` to the `redirect` parameter.
try {
final result = api_instance.pageTalkTitleRevisionGet(title, revision, redirect);
print(result);
} catch (e) {
print('Exception when calling TalkPagesApi->pageTalkTitleRevisionGet: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
title | String | Page title. Use underscores instead of spaces. Use percent-encoding. Example: Main_Page . |
|
revision | int | Optional page revision. Note that older revisions are not stored, so request latency with the revision would be higher. | |
redirect | bool | Requests for redirect pages return HTTP 302 with a redirect target in Location header and content in the body. To get a 200 response instead, supply false to the redirect parameter. |
[optional] |
String
No authorization required
- Content-Type: Not defined
- Accept: application/json; charset=utf-8; profile=https://www.mediawiki.org/wiki/Specs/Talk/0.1.0, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]