from urllib import response
import requests
import json
import time
def choices():
print("Creation Shop Register Script By Ken Samonte")
print("==================================================")
print("Please Set-Up your Account First")
time.sleep(2.0)
invite_code = input("Referral Code: ")
password = input("Password: ")
time.sleep(1.0)
print("You Have Set Up Your Referral and Password Successfully")
print("===================================================")
time.sleep(5.0)
def register ():
mobile_number = input("Mobile Number: ")
payload = json.dumps({"mobile": mobile_number, "type":"register"})
request = requests.post("https://www.creationshops.com/captcha/sms", data=payload)
response = request.text
req = json.loads(response)
f = req["msg"]
print(req)
if f == "ok":
otp = input("Enter One Time Pin: ")
reg = json.dumps({"mobile": mobile_number,"code": otp,"password": password,"invite_code": invite_code,"agent_code":"","appsflyer_id":"","cid":""})
freg = requests.post("https://www.creationshops.com/account/register", data=reg)
r = freg.text
q = json.loads(r)
s = q["msg"]
if s == "ok":
print("Account Created Successfully")
print("Mobile Number: " + mobile_number)
else:
print("Failed to Send OTP")
register()
def repeat():
inq = input("Do you stil want to create more account?")
if inq == 'Y':
register()
else:
done()
repeat()
choices()
def done():
print("OKAY")