mirror of
https://github.com/simon987/parler-tricks.git
synced 2025-04-10 14:06:44 +00:00
18 lines
457 B
Python
18 lines
457 B
Python
|
|
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) |