MoebooruClient class

A client to access a Moebooru-based imageboard API

Constructors

MoebooruClient.new(String host, String login, String password)
Create a new client to access a Moebooru-based imageboard API host is the host of the image board login is the user login password is the user password
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
hashedPassword String
The salted password
final
host String
The host of the image board
final
login String
The user login
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createPostByurl(String source, List<String> tags, {String rating = 'q', String parent = '', String md5 = '', bool isNoteLocked = false, bool isRatingLocked = false}) Future<({Exception? exception, String location})>
Create a new post by download pics from source and required tags
getPostList({int limit = 1000, int page = 0, List<String> tags = const []}) Future<({int count, int offset, List<Post> posts})>
Get a list of posts from the image board if tags is specified, only posts with these tags will be returned limit is the number of posts to return, limit over 1000 will be lowered to 1000 page is the page of posts to return, page < 0 page will be set to 0 Return a record with count - the number of posts on the image board, offset - the offset of the first post in the list, posts - the list of posts
getPostsCount({List<String> tags = const []}) Future<int>
Get the number of all posts on the image board if tags is specified, only posts with these tags will be counted
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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