support the v2 API
Reference:
- https://github.com/upbit/pixivpy/wiki/Sniffer-for-6.x-API-v2-endpoints
- https://github.com/upbit/pixivpy/blob/master/pixivpy3/aapi.py
There are 5 new endpoints that I'm aware of:
https://app-api.pixiv.net/v2/illust/follow-- GEThttps://app-api.pixiv.net/v2/illust/related-- GEThttps://app-api.pixiv.net/v2/illust/bookmark/detail-- GEThttps://app-api.pixiv.net/v2/illust/bookmark/add-- POSThttps://app-api.pixiv.net/v2/user/list-- POST
Will cross-reference other libraries when I need to.
Note that AppAPI is broken on pixivpy (no-auth requests no longer work, even with auth it doesn't work), which is why I didn't implement it yet. Wanted to get something rudimentary published first (as of opening this issue I'm still leaving the version at 0.1 until I'm more confident).
Do more testing/experimentation with it, see if it's usable.
Depending on how testing it goes, may override some v1 methods? Could be another big breaking change (v1 support will probably go into its own separate module if so)
- v2 API likely still doesn't care about the
User-Agentheader and all that other junk, but if it does, take note.
I am trying to fix the library but I can't get this to work. I am using https://github.com/akameco/pixiv-app-api and https://github.com/upbit/pixivpy as reference but I am not knowledgeable in Python nor NodeJS to know fully what they are doing :/.
How did you figure out what to do or how to implement anything? I can't find any official documentation of this (nor can i read any Japanese lol)
Was hoping in using this for a rust pixiv GUI application.
tracking branch: https://github.com/hbina/rustpixiv/tree/replace_kankyo