#python
r = requests.post("http://mailvalidator.ru:30083/batch", json=payload)
#где payload:
payload = {"emails":["test@mail.ru", "ada@ya.ru"], "comment":"customer_emails1.txt"}
#curl
curl --header "Content-Type: application/json" -XPOST http://mailvalidator.ru:30083/batch -d '{"emails":["test@mail.ru","ada@ya.ru"], "comment":"customer_emails1.txt"}'
{"UUID":"fc3d9993"}
{"Error":"batch size to small. Minimum 10000 emails"}
#python
r = requests.get("http://mailvalidator.ru:30083/batch?uuid=59cb3daf")
#curl
curl --header "Content-Type: application/json" -XGET http://mailvalidator.ru:30083/batch?uuid=59cb3daf
{"Status":"Fullcheck processing"}
{'batchStat': {'duplicateCount': 3,
'emailsSet': 15,
'lines': 21,
'notEmailsSet': 3},
'checkStat': {'B': 7, 'N': 3, 'OK': 8},
'duplicates': {'akalachov@mail.ru': 2, 'xpert@yandex.ru': 1},
'emails': {'akalachoff@yandex.ru': 'fOK',
'akalachov@mail.ru': 'fOK',
'andadasdaqcasdf4erfrew@yahoo.com': 'fB',
'andrew2edasd32r@aol.com': 'fOK',
'andrew@aol.com': 'fOK',
'buntik87@mail.ru': 'fOK',
'danbv0re0@rambler.ru': 'fB',
'djackson@yahoo.com': 'fOK',
'dsadvsfndg@bk.ru': 'fB',
'fadsqwxwqdwq11@gmail.com': 'fB',
'fvbnosdfbnpddg': 'N',
'fvbnosdfbnpdg': 'N',
'fvbnosdfbnpdsdasg': 'N',
'kalachovalex@gmail.com': 'fOK',
'malash18@mail.ru': 'fB',
'nvospfdn@aol.com': 'fOK',
'vnsdfov@test.com': 'fB',
'xpert@yandex.ru': 'fB'},
'ip': '1.1.1.1',
'timestamp': 1625255303,
'total': 21,
'comment': продажи.txt,
'uuid': 'some_test_uuid'}
#python
r = requests.post("http://mailvalidator.ru:30083/test_batch", json=payload)
#curl
curl --header "Content-Type: application/json" -XPOST http://mailvalidator.ru:30083/test_batch -d '{"emails":["test@mail.ru","ada@ya.ru"], "comment":"customer_emails1.txt"}'
#python
r = requests.get("http://mailvalidator.ru:30083/test_batch?uuid=86db9674")
#curl
curl --header "Content-Type: application/json" -XGET http://mailvalidator.ru:30083/test_batch?uuid=59cb3daf
© Mailvalidator.ru, 2013–2022