We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a285f7 commit 5058031Copy full SHA for 5058031
1 file changed
imgurpython/client.py
@@ -184,6 +184,18 @@ def get_account(self, username):
184
account_data['pro_expiration'],
185
)
186
187
+ def get_account_by_id(self, userid):
188
+ account_data = self.make_request('GET', 'account/?account_id=%i' % userid)
189
+
190
+ return Account(
191
+ account_data['id'],
192
+ account_data['url'],
193
+ account_data['bio'],
194
+ account_data['reputation'],
195
+ account_data['created'],
196
+ account_data['pro_expiration'],
197
+ )
198
199
def get_gallery_favorites(self, username, page=0):
200
self.validate_user_context(username)
201
gallery_favorites = self.make_request('GET', 'account/%s/gallery_favorites/%d' % (username, page))
0 commit comments