Telegraph class

Constructors

Telegraph({Client? httpClient})

Properties

hashCode int
The hash code for this object.
no setterinherited
http_client ↔ Client
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
telegraph_api Uri
getter/setter pair

Methods

copyPage({required String access_token, required String path, String? title, String? author_name, String? author_url, bool return_content = true, Client? httpClient}) Future<Map>
DETAILS: https://telegra.ph/api
createAccount({required String short_name, required String author_name, String? author_url, Client? httpClient}) Future<Map>
Details: https://telegra.ph/api#createAccount
createPage({required String access_token, required String title, String? author_name, String? author_url, required List content, bool return_content = true, Client? httpClient}) Future<Map>
DETAILS: https://telegra.ph/api#createPage
editAccountInfo({required String access_token, String? short_name, String? author_name, String? author_url, Client? httpClient}) Future<Map>
DETAILS: https://telegra.ph/api#editAccountInfo
editPage({required String access_token, required String path, required String title, required List content, String? author_name, String? author_url, bool return_content = true, Client? httpClient}) Future<Map>
DETAILS: https://telegra.ph/api#editPage
getAccountInfo({required String access_token, List<String>? fields, Client? httpClient}) Future<Map>
DETAILS: https://telegra.ph/api#getAccountInfo
getPage({required String path, bool return_content = true, Client? httpClient}) Future<Map>
DETAILS: https://telegra.ph/api#getPage
getPageList({required String access_token, int offset = 0, int limit = 50, Client? httpClient}) Future<Map>
DETAILS: https://telegra.ph/api#getPageList
getViews({required String path, int? year, int? month, int? day, int? hour, Client? httpClient}) Future<Map>
DETAILS: https://telegra.ph/api#getViews
invoke({required String method, required Map parameters, String? path_api, String method_request = "get", Client? httpClient}) Future<Map>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revokeAccessToken({required String access_token, Client? httpClient}) Future<Map>
DETAILS: https://telegra.ph/api#revokeAccessToken
toString() String
A string representation of this object.
inherited
upload({required List<TelegraphFileData> telegraphFileDatas, Client? httpClient, bool isThrowOnError = true, void onUploadProgress(int bytesCount, int totalBytes)?}) Future<Map>

Operators

operator ==(Object other) bool
The equality operator.
inherited