Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated Examples & userFollowAdd not working #11

Open
yanagiragi opened this issue Oct 16, 2018 · 3 comments
Open

Deprecated Examples & userFollowAdd not working #11

yanagiragi opened this issue Oct 16, 2018 · 3 comments

Comments

@yanagiragi
Copy link
Contributor

yanagiragi commented Oct 16, 2018

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 👍

@akameco
Copy link
Owner

akameco commented Oct 18, 2018

@yanagiragi Thank you. I'll fix it.

@austinhuang0131
Copy link
Contributor

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?

@cyperdark
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants