ubki.py 681 B

123456789101112131415161718192021222324
  1. from db0mb3r.services.service import Service
  2. class Ubki(Service):
  3. phone_codes = [380]
  4. async def run(self):
  5. await self.post(
  6. "https://secure.ubki.ua/b2_api_xml/ubki/auth",
  7. json={
  8. "doc": {
  9. "auth": {
  10. "mphone": "+" + self.formatted_phone,
  11. "bdate": "11.11.1999",
  12. "deviceid": "00100",
  13. "version": "1.0",
  14. "source": "site",
  15. "signature": "undefined",
  16. }
  17. }
  18. },
  19. headers={"Accept": "application/json"},
  20. )