You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I registered my application thus obtained app key and access token. By reading the documentation I figured out that it's possible to pass additional arguments into the fetch method, as soon as they are named the same as described in the endpoint documentation.
Sorry for the late response. I discovered already that it works by passing the arguments to the SITE object. Works perfectly, with Stackoverflow as well as with other sites from the Stack Exchange network. However, I would suggest to improve the package documentation a bit. It is more powerful than one might gain an impression by referring to docs.
Nevertheless, the package is awesome.
Kind regards!
Hello!
I registered my application thus obtained app key and access token. By reading the documentation I figured out that it's possible to pass additional arguments into the
fetch
method, as soon as they are named the same as described in the endpoint documentation.Sounds great. So I tried
And got
stackapi.stackapi.StackAPIError: ('https://api.stackexchange.com/2.2/users/922184/top-answer-tags/?pagesize=1&page=1&filter=default&access_token=xxxxxxxxxxxxxxxx&site=stackoverflow', 405, 'key_required', '
keyis required when
access_tokenis passed.')
I obviously passed the key, but for some reason it doesn't appear in the url. Why is that?
If I take this url and add the key manually and test it in the browser, it works perfectly! Would be nice if this is fixed :)
The text was updated successfully, but these errors were encountered: