Skip to content

Latest commit

 

History

History
103 lines (68 loc) · 4.01 KB

OfflineApi.md

File metadata and controls

103 lines (68 loc) · 4.01 KB

openapi.api.OfflineApi

Load the API package

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

pageMobileHtmlOfflineResourcesTitleGet

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

Example

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');
}

Parameters

Name Type Description Notes
title String Page title. Use underscores instead of spaces. Use percent-encoding. Example: Main_Page.

Return type

String

Authorization

No authorization required

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]

pageMobileHtmlOfflineResourcesTitleRevisionGet

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

Example

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');
}

Parameters

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.

Return type

String

Authorization

No authorization required

HTTP request headers

[Back to top] [Back to API list] [Back to Model list] [Back to README]