pixiv-app-api icon indicating copy to clipboard operation
pixiv-app-api copied to clipboard

Deprecated Examples & userFollowAdd not working

Open yanagiragi opened this issue 6 years ago • 3 comments

English

  • version:
  • node version: v8.12.0
  • npm (or yarn) version: 6.4.1

Do you want to request a feature or report a bug?:

2 bugs

What is the current behavior?:

  1. readme login example has been deprecated.

  2. 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?:

  1. See here for visualize comparision

  2. 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 avatar Oct 16 '18 23:10 yanagiragi

@yanagiragi Thank you. I'll fix it.

akameco avatar Oct 18 '18 16:10 akameco

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?

austinhuang0131 avatar Nov 07 '19 01:11 austinhuang0131

userFollowAdd & remove throw me 404 error, any fixes for that?

cyperdark avatar Oct 17 '20 09:10 cyperdark