mirror of
https://github.com/simon987/parler-tricks.git
synced 2025-12-20 01:26:00 +00:00
Initial commit
This commit is contained in:
18
parler/contacts_uploader.py
Normal file
18
parler/contacts_uploader.py
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
class ContactsUploaderAPI:
|
||||
def __init__(self, session, root_url="http://api.parler.com"):
|
||||
self.root_url = root_url
|
||||
self.s = session
|
||||
|
||||
'''
|
||||
{
|
||||
"contactsList": [{
|
||||
"firstName": "",
|
||||
"email": "",
|
||||
"lastName": "",
|
||||
"phone": ""
|
||||
}]
|
||||
}
|
||||
'''
|
||||
def start_uploading(self, *args, **kwargs):
|
||||
return self.s.post("{}/v2/contacts".format(self.root_url), *args, **kwargs)
|
||||
Reference in New Issue
Block a user