Anpanator / jnc-downloader

A python script to automatically (pre-)order books and download them from your J-Novel.club library.
The Unlicense
8 stars 5 forks source link

change of j-novel api #8

Closed kyndair closed 3 years ago

kyndair commented 4 years ago

update to newer api as per forum post

Anpanator commented 4 years ago

For documentation purposes:

I'd like to request that you use this newer API in your tool to redeem credits. It's now being used on the current site as well: POST https://labs.j-novel.club/app/v1/me/redeem/<volume ID or slug>. Prefer using the volume ID over the slug, slug support is only there for legacy reasons. The possible response codes are:

204: Success 401: Unauthorized 410: Session token expired 404: Volume not found 501: Can't buy manga at this time 402: No credits left to redeem 409: Already own this volume 500: Internal server error (reported to us) Other: Unknown server error Authenticate by passing a header Authorization: Bearer , or URL paramter access_token, but prefer the header method!

Anpanator commented 3 years ago

Changed in experimental branch.