You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
I'm trying to automatically submit an image to the gallery after I upload it via URL, but I'm not sure exactly how. My upload code is:
from auth import authenticate
i = authenticate()
album = None
title = 'Test Title'
description = 'Test Description: '
image_path = 'http://animal-dream.com/data_images/goose/goose2.jpg'
config = {
'album': album,
'name': title,
'title': title,
'description': description
}
print("Uploading image to Imgur... ")
image = i.upload_from_url(image_path, config=config, anon=False)
print("Imgur image posted at: {0}".format(image['link']))
I've found a link here, which explains how to do this with the json library, but I'm having issues merging the two. Using what I have above, can I somehow send a request to submit my image to the community?
The text was updated successfully, but these errors were encountered:
New to this repo here, not sure if it is correct but It seems once you post your album to the imgur community(public), it automatically becomes a gallery and the album becomes uneditable.
Also, I do not find an icon or link on their website to add pictures to gallery.
BTW, I guess your returned status_code is 417, which might be related to the album(gallery) authorization issues.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm trying to automatically submit an image to the gallery after I upload it via URL, but I'm not sure exactly how. My upload code is:
I've found a link here, which explains how to do this with the json library, but I'm having issues merging the two. Using what I have above, can I somehow send a request to submit my image to the community?
The text was updated successfully, but these errors were encountered: