pixiv-app-api
pixiv-app-api copied to clipboard
Deprecated Examples & userFollowAdd not working
English
- version:
-
node
version: v8.12.0 -
npm
(oryarn
) version: 6.4.1
Do you want to request a feature or report a bug?:
2 bugs
What is the current behavior?:
-
readme
login
example has been deprecated. -
userFollowAdd
is not working
Tried:
-
userFollowAdd('4197637')
-
After login, call
userFollowAdd('4197637')
-
userFollowAdd('4197637', {'publicity': 'public'})
-
userFollowAdd({'target_user_id': '4197637', 'publicity': 'public'})
What is the expected behavior?:
-
See here for visualize comparision
-
Should call as
userFollowId(USER_ID_YOU_WISH_TO_FOLLOW)
and successfully add to following list
Suggested solution:
I tried to implemented with reference of upbit/pixivpy
Here is the code. (Sorry for using request, I'm not familiar with Axios)
However, the implementation require pass access token in headers, so it may need to re-design instance
in index.js, so I'm not sure which design suit best.
From other APIs, I'd tried
-
login
-
searchIllust
-
illustRanking
-
illustDetail
the above APIs worked fine 👍
@yanagiragi Thank you. I'll fix it.
illustBookmarkAdd
doesn't work, pixiv seems to have removed that endpoint. However, adding bookmark still works on PixivDeck. Is it possible to temporarily port the solution from PD?
userFollowAdd & remove throw me 404 error, any fixes for that?