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 boardlogin
is the user loginpassword
is the user passwordfactory
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 requiredtags
-
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 returnedlimit
is the number of posts to return,limit
over 1000 will be lowered to 1000page
is the page of posts to return,page
< 0 page will be set to 0 Return a record withcount
- 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