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

now uses v2 api for autocompletion (./v2/search/autocomplete).

Open Yochyo opened this issue 3 years ago • 0 comments

now uses v2 api for autocompletion (./v2/search/autocomplete). Tags now have a translation if you change the Accept-Language header (example "en-us")

Updated the method "searchAutoComplete()". It now uses v2 of the pixiv api. V2 returns the tags with translations.

Why:

searchAutoComplete() was more or less unuseable for english users.

How:

changed url from ./v1/search/autocomplete to ./v2/search/autocomplete. changed PixivAutoComplete and Pixiv_Auto_Complete to match the api. Added language setter in PixivApi class.

Checklist:

  • [ ] Documentation
  • [ ] Tests
  • [ ] Ready to be merged

Yochyo avatar Dec 15 '20 12:12 Yochyo