6

I'm using the https://api.imgur.com/3/image to upload images from JavaScript without oauth.
Is it possible to see what images were uploaded recently using my Client-ID?

shoosh
  • 76,898
  • 55
  • 205
  • 325
  • sorry, but seems that the image model exposed by the endpoint doesn't provide informations about the client ==> http://api.imgur.com/models/image – ale Jun 14 '16 at 12:22

1 Answers1

6

Unfortunately it's not directly possible but I think the following approach will give good results: use the following endpoint to retrieve all your associated images:

https://api.imgur.com/3/account/{username}/images

Or the following for account submitted images:

https://api.imgur.com/3/account/{username}/submissions/

For the Username you can use 'me' and you need to send the Client-ID using the correct header:

'Authorization: Client-ID YOUR_CLIENT_ID'

This will return all the images uploaded from the account and you need to filter them yourself.

If you are uploading them to a gallery and want to know only these you can set the time window in the request ( week, day, etc.)

rfkortekaas
  • 6,049
  • 2
  • 27
  • 34