0.5.0 • Published 5 months ago

mangadex-js v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

npm commit

Installation

npm install mangadex-js

Usage

MangaDex API authentication is a work-in-progress.

In addition, mangadex-js does not support personal client authentication as this feature is currently being worked on.

If you would still like to make authenticated requests, follow the instructions below.

// Set access token
// This will set the Authorization header to
// Bearer <YOUR_TOKEN> for all future requests
client.setAccessToken("<YOUR_TOKEN>");

// Retrieve access token
const token = client.getAccessToken();

The MangaDex class exports all resources found in the ReDoc API documentation.

const client = new MangaDex();

// ApiClient: https://api.mangadex.org/docs/redoc.html#tag/ApiClient
client.ApiClient.list();
client.ApiClient.create();
client.ApiClient.get();
client.ApiClient.edit();
client.ApiClient.delete();
client.ApiClient.getSecret();
client.ApiClient.regenerateSecret();

Documentation

View MangaDex API documentation here

Issue

This repository is activley being improved upon. If you face and issues, feel free to open an issue here!

Todo

  • Implement MangaDex personal client authentication
  • Improve HttpClient and MangaDex tests
  • Add Resource tests
0.5.0

5 months ago

1.0.0

6 months ago