Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

In method update_album 'ids' are optional in the API but compulsory here #102

Open
fernand0 opened this issue Mar 7, 2021 · 0 comments
Open

Comments

@fernand0
Copy link

fernand0 commented Mar 7, 2021

Well, I know this library is abandoned but just in case it is useful for somebody:

In file:
https://github.com/Imgur/imgurpython/blob/48abc45a143ee9d2485c22a63b7cd55701d8163c/imgurpython/client.py
In method: update_album you can find:

 if isinstance(post_data['ids'], list):
        post_data['ids'] = ','.join(post_data['ids'])

In the API ids[] is an optional parameter.

Workaround: add '{ids=None, ... } ` to your dictionary when calling this method. You just need it for this parameter, the others are not checked if not present.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant