Can't create anonymous album with imgur API 3

569 views
Skip to first unread message

jjx...@gmail.com

unread,
Feb 22, 2013, 3:36:39 PM2/22/13
to im...@googlegroups.com
Using this endpoint I cannot create anonymous albums: https://api.imgur.com/3/album

I've tried PUT and POST - PUT gives me a 403 forbidden and POST gives 405 method not allowed. I am passing my client id. Other endpoints work so I think it's just this end point that is broken.

Jeff Johnson

unread,
Feb 22, 2013, 3:43:07 PM2/22/13
to im...@googlegroups.com
Your imgur documentation states that this is possible here: http://api.imgur.com/

Quote:

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, creating an anonymous album, etc. all you need to do is send an authorization header with your client_id along with your requests. This also works if you'd like to upload images anonymously (without the image being tied to an account). This lets us know which application is accessing the API.

Authorization: Client-ID YOUR_CLIENT_ID

Alan Schaaf

unread,
Feb 27, 2013, 5:30:48 PM2/27/13
to im...@googlegroups.com
Thanks so much for letting us know about this. It's been fixed.

calvin...@gmail.com

unread,
Mar 11, 2013, 5:38:21 PM3/11/13
to im...@googlegroups.com
Oddly, this seems to have broken anonymous albums for me.

I was previously able to upload images, then create an album containing those images anonymously. After I uploaded 50 I hit a rate limit--the User one, IIRC--which prevented me from using the API as I needed.

Today I'm able to upload more than 50 images, but I get a 403 error when attempting to create an album.

$ wget -O logo.png https://cdn.shopify.com/s/files/1/0179/5445/t/2/assets/logo.png?201
$ curl -b /tmp/imgur.jar -c /tmp/imgur.jar -H 'Authorization: Client-ID 4af97bc6fa5bf6b' -XPOST https://api.imgur.com/3/image -Fimage=@logo.png
{"data":"id":"4YG3gJo","deletehash":"tR3VmVHWJO8wdwU","link":"http:\/\/i.imgur.com\/4YG3gJo.png"},"success":true,"status":200}
$ curl -b /tmp/imgur.jar -c /tmp/imgur.jar -H 'Authorization: Client-ID 4af97bc6fa5bf6b' -XPOST https://api.imgur.com/3/album --data ids[]=4YG3gJo
{"data":{"error":"Unauthorized","request":"\/3\/album","parameters":"ids = Array","method":"POST"},"success":false,"status":403}

Reply all
Reply to author
Forward
0 new messages