I tried what you put before I started messing with HttpClient but figured I just wasn't doing it right when I got error code 500... I'm not able to see the server response the way I did it. And I don't know what I'm doing with HttpClient, so no surprise there when something goes wrong.
How do you get all of the comments associated with a specific post ID? I've tried different parameter variations to /comments.json, but I get the same main listing whatever I try.
How do you get all of the comments associated with a specific post ID? I've tried different parameter variations to /comments.json, but I get the same main listing whatever I try.
I dislike bothering with small details but, in the previous api (old danbooru) the access denied code was 403, now it is 401 and the wiki says that it is 403, it's a small thing but I'd like to know if it's supposed to be like that
Can someone else verify that comment deletion works through the API (when you have to authenticate, not when you can ride on your browser session)? I'd like to know that it's just me doing something wrong again.
When I vote on a post through the API, the vote succeeds, but I get 500 for the status code. Is this a bug on my end or Danbooru's?
Status 500 is always "a error occurred", since the vote was registered successfully, i guess the error just occurs somewhere after the vote was registered in the database. I'd make a git issue about it with some more details.
Generally, i think status code 500 is always a bug in danbooru itself. At least, if there's not something like a typo in a critical parameter.
Hi everyone, I was wondering, is there a way to get the API key programaticaly? I'm still using the password_hash, that still works but as it is deprecated it may be removed in future releases (don't really know if it's true but just to be prepared...)
The only way to get the API key is to log in via web?
If the user(s) using it are logged in, like for an userscript, no password hash or API key is needed, the API works via session as well.
If it's a personal program, you can copy/paste your API key into the script itself.
If it's a public program not in a browser (thus no session), then yea, i believe the only way to get it is to tell your users "log in & get the API key from your profile".