e621-client
v1.3.0
Published
A simple client for the e621 API
Readme
e621 Client
This is a small client to do some stuff with the e621 API. It is created to fit my needs, but you can use it too, if it works for you.
I can't guarantee it will work in the future, so I recommend you just use another package instead or build a client yourself.
Supported Endpoints
/favorites/users/users/:id/posts/posts/:id
Getting Started
Just create an instance of the client like so:
const client = new E621ApiClient({
client: "Your client name",
isBrowser: false,
});Now you can use it to do some stuff:
// not useful but still here (like me)
const posts = await client.getPosts();
// search posts by tags
const postsWithTags = await client.getPosts({
tags: "male score:>100",
});
// search users by names (* for wildcards)
const toms = await client.getUsers({
nameMatches: "tom*",
});
// if you have credentials set, they will be sent with your requests as well:
client.setCredentials({
username: "HornyFurry",
apiKey: "wouldntyouliketoknowweatherboy",
});