Initial commit

This commit is contained in:
d0nk
2020-12-08 01:55:02 +01:00
commit 403583717b
37 changed files with 1304 additions and 0 deletions

10
parler/image.py Normal file
View File

@@ -0,0 +1,10 @@
class ImageAPI:
def __init__(self, session, root_url="http://api.parler.com"):
self.root_url = root_url
self.s = session
def set_profile_photo(self, *args, **kwargs):
return self.s.post("{}/v1/profile/photo".format(self.root_url), *args, **kwargs)
def set_profile_cover(self, *args, **kwargs):
return self.s.post("{}/v1/profile/cover-photo".format(self.root_url), *args, **kwargs)