Open anubhav3itb opened 8 years ago
I'm also unable to upload images, and am getting this error when using upload_from_path to upload an image to a specific album:
Imgur error #400: "You are not the owner of album '*****', which means you can't add images to it. For anonymous albums, use the album deletehash."
Edit: After debugging I found that images were uploading, but as anonymous and not the user I had authenticated as. This was my mistake, as I didn't realize that upload_from_path defaults to using anonymous. That said if would be nice if upload_from_path returned the response from upload so that we could retrieve the URL of the anonymous upload.
@anubhav3itb @mortenson you need to call 'set_user_auth' function and set client.mashape_key val. and argument 'anon' be written to False. reference here upload
I am using python to upload image but the changes are not getting reflected.
My code: clientid = "***" clientsecret = "******" client = ImgurClient(client_id, client_secret) authorization_url = client.get_auth_url('pin') credentials = client.authorize('ba35e8a921', 'pin') client.upload_from_path('/home/anubhav/Desktop/anubhav.jpeg', config=None, anon=True)
Can someone please help?