Mikubill / pixivpy-async

Pure Python 3 Async Pixiv API
The Unlicense
149 stars 18 forks source link

Getting my user ID #31

Closed thesadru closed 1 year ago

thesadru commented 1 year ago

If I want to get my own bookmarks I need to provide a user ID but it seems that there is no endpoint to get info about the authenticated user directly. The Pixiv website doesn't use an endpoint to get your own user info but rather embeds it in the main html document so that doesn't really help.

thesadru commented 1 year ago

Oh nvm, it's just that api.user_id is only set after authentication.