import 'package:wikipedia_api/api.dart';
All URIs are relative to /api/rest_v1
Method | HTTP request | Description |
---|---|---|
pageMobileHtmlOfflineResourcesTitleGet | GET /page/mobile-html-offline-resources/{title} | Get styles and scripts for offline consumption of mobile-html-formatted pages |
pageMobileHtmlOfflineResourcesTitleRevisionGet | GET /page/mobile-html-offline-resources/{title}/{revision} | Get styles and scripts for offline consumption of mobile-html-formatted pages |
String pageMobileHtmlOfflineResourcesTitleGet(title)
Get styles and scripts for offline consumption of mobile-html-formatted pages
Provides links to scripts and styles needed for viewing mobile-html-formatted pages offline. Stability: experimental
import 'package:wikipedia_api/api.dart';
final api_instance = OfflineApi();
final title = title_example; // String | Page title. Use underscores instead of spaces. Use percent-encoding. Example: `Main_Page`.
try {
final result = api_instance.pageMobileHtmlOfflineResourcesTitleGet(title);
print(result);
} catch (e) {
print('Exception when calling OfflineApi->pageMobileHtmlOfflineResourcesTitleGet: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
title | String | Page title. Use underscores instead of spaces. Use percent-encoding. Example: Main_Page . |
String
No authorization required
- Content-Type: Not defined
- Accept: application/json; charset=utf-8; profile=https://www.mediawiki.org/wiki/Specs/Mobile-HTML-Offline-Resources/1.2.1, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
String pageMobileHtmlOfflineResourcesTitleRevisionGet(title, revision)
Get styles and scripts for offline consumption of mobile-html-formatted pages
Provides links to scripts and styles needed for viewing mobile-html-formatted pages offline. Stability: experimental
import 'package:wikipedia_api/api.dart';
final api_instance = OfflineApi();
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.
try {
final result = api_instance.pageMobileHtmlOfflineResourcesTitleRevisionGet(title, revision);
print(result);
} catch (e) {
print('Exception when calling OfflineApi->pageMobileHtmlOfflineResourcesTitleRevisionGet: $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. |
String
No authorization required
- Content-Type: Not defined
- Accept: application/json; charset=utf-8; profile=https://www.mediawiki.org/wiki/Specs/Mobile-HTML-Offline-Resources/1.2.1, application/problem+json
[Back to top] [Back to API list] [Back to Model list] [Back to README]