How to remove incorrectly uploaded to imgur
-
@Pete-S said in How to remove incorrectly uploaded to imgur:
@Pete-S said in How to remove incorrectly uploaded to imgur:
@scottalanmiller said in How to remove incorrectly uploaded to imgur:
@Pete-S said in How to remove incorrectly uploaded to imgur:
@scottalanmiller said in How to remove incorrectly uploaded to imgur:
It was really frustrating setting Imgur up, because you didn't get a sign in like a normal app when we did it (this is 2014.) Crazy confusing to use, because you registered and got the API info, but no account to use.
Looks like you have to register at some point. And there seems to be a header when imgur API's are accessed and that how they know which account it is that is posting the image.
If you can check what that is, you'll know your client id.From https://api.imgur.com/:
Register an Application (IMPORTANT)
Each client must register their application and receive the client_id and client_secret.
For public read-only and anonymous resources, such as getting image info, looking up user comments, etc. all you need to do is send an authorization header with your client_id in your requests. This also works if you'd like to upload images anonymously (without the image being tied to an account), or if you'd like to create an anonymous album. This lets us know which application is accessing the API.Authorization: Client-ID YOUR_CLIENT_ID
Yes, you register. But during the registration process, at least in 2014, there was no "account login" involved. No username or password. There was registration and the API / secret. But can we use that to log in?
No, doesn't look like you can use that to login. It actually looks like you can't remove images using the API either - if they have been uploaded anonymously with your client_id. You need the deletehash value from each upload mentioned earlier in this thread and it look like nodebb imgur plugin doesn't save that info. So no dice.
I think @JaredBusch has another setup. He tied the application to his imgur user account - by getting the client id/secret for the webapp from imgur while being logged in.
So when images are posted to imgur using the client id Jared got, they will automatically belong to his user account.
How do you get a client if and secret without an account?
I used My twitter log in to make the imgur account forever ago. Long before I made the api creds. I would never do it that way in today’s world.