import requests
cookies = {
'cfmrk_cic': '{"id":"zayTlP8JAvtGDVlEq8RHPSv+2eLcOuWj","v1":0,"v2":0,"v3":0,"v5":0,"v7":0,"v8":0,"v6":0}',
'__cf_bm': 'UePkatN_Be4tsXsDp3K28pzu3eSP9X5F4aAUmqV1V7A-1683281846-0-AUI4aeyl1M9RJwdBmz8BZ4f9WHunzNQ57ArUDsgo6DgB006KTtsL05htXvdHFIdf52kGUFOdNf1GGvF1GVGqYOVBPetIIYbbOk9I88JsEfGVGiwTN/J1mu6BqbOJAXn+3SgxrWWuwcCHJ14FPj3H/0HKsJEe3LuaE8HcbzFgP4iN',
'__cflb': '0H28upHR6WxXGRqfrsmcyJP33mXipsFZogMFtPTZ5t9',
'gates_cohorts': '%7B%7D',
'vses2': 'dce9a720ff-de959qhjc8k68ov69fpvhh16pjb7jv4v',
'__cf_effload': '1',
'__cf_logged_in': '1',
'CF_VERIFIED_DEVICE_5f056d95f08e4bcf29f79d31eab64a05206305c826fde2e5a4d07e604e6cf982': '1683281874',
'sparrow_id': '%7B%22deviceId%22%3A%2227675e6c-2e18-46b7-b227-de559275c3d5%22%2C%22userId%22%3A%22dce9a720ff9dd470734f43fed2dab557%22%7D',
'__stripe_mid': 'ddee75b1-9419-4f51-8a6e-7ffdaadc01069e78a4',
'__stripe_sid': '88a6bbfa-c70f-4115-97ed-765dd5a70e3a0dd671',
'__cfruid': 'ba0381b71c6f4a140452c5ddb03a550120cad05d-1683281916',
}
headers = {
'authority': 'dash.cloudflare.com',
'accept': '*/*',
'accept-language': 'en-US,en;q=0.9',
'content-type': 'application/json',
# 'cookie': 'cfmrk_cic={"id":"zayTlP8JAvtGDVlEq8RHPSv+2eLcOuWj","v1":0,"v2":0,"v3":0,"v5":0,"v7":0,"v8":0,"v6":0}; __cf_bm=UePkatN_Be4tsXsDp3K28pzu3eSP9X5F4aAUmqV1V7A-1683281846-0-AUI4aeyl1M9RJwdBmz8BZ4f9WHunzNQ57ArUDsgo6DgB006KTtsL05htXvdHFIdf52kGUFOdNf1GGvF1GVGqYOVBPetIIYbbOk9I88JsEfGVGiwTN/J1mu6BqbOJAXn+3SgxrWWuwcCHJ14FPj3H/0HKsJEe3LuaE8HcbzFgP4iN; __cflb=0H28upHR6WxXGRqfrsmcyJP33mXipsFZogMFtPTZ5t9; gates_cohorts=%7B%7D; vses2=dce9a720ff-de959qhjc8k68ov69fpvhh16pjb7jv4v; __cf_effload=1; __cf_logged_in=1; CF_VERIFIED_DEVICE_5f056d95f08e4bcf29f79d31eab64a05206305c826fde2e5a4d07e604e6cf982=1683281874; sparrow_id=%7B%22deviceId%22%3A%2227675e6c-2e18-46b7-b227-de559275c3d5%22%2C%22userId%22%3A%22dce9a720ff9dd470734f43fed2dab557%22%7D; __stripe_mid=ddee75b1-9419-4f51-8a6e-7ffdaadc01069e78a4; __stripe_sid=88a6bbfa-c70f-4115-97ed-765dd5a70e3a0dd671; __cfruid=ba0381b71c6f4a140452c5ddb03a550120cad05d-1683281916',
'origin': 'https://dash.cloudflare.com',
'referer': 'https://dash.cloudflare.com/',
'sec-ch-ua': '"Chromium";v="112", "Brave";v="112", "Not:A-Brand";v="99"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'sec-gpc': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36',
'x-atok': '1683368318-ATOKa699d863363de3e98147b589a5c467d16ddaad69f399714a',
'x-cross-site-security': 'dash',
}
json_data = {
'token': 'CaaRvvkcSRFjc4AgbDvc8O3xCp-_HwUDPaWZh_GP7srD8RR5QuNFUEPjDlMbQG5tiBo1mEP5Oo6ISCt4-zvSpIMZGeBe4ZrPKD9FAYFBU4riiTK9MicvfP2TwK3LNqiRfStReD8_7siEeQfg3CYeVHXJiiTHvNILvR9kPYmFH9RGI97nEZiwHIPlsHe9yCcyq63waMOp1SOoxlN8r6vEyz03jNUbgWl5UjAzS0fDf0OJ9CrgLgGn7WwHkxI_A0os',
}
response = requests.put(
'https://dash.cloudflare.com/api/v4/user/email-verification',
cookies=cookies,
headers=headers,
json=json_data,
)
# Note: json_data will not be serialized by requests
# exactly as it was in the original request.
#data = '{"token":"CaaRvvkcSRFjc4AgbDvc8O3xCp-_HwUDPaWZh_GP7srD8RR5QuNFUEPjDlMbQG5tiBo1mEP5Oo6ISCt4-zvSpIMZGeBe4ZrPKD9FAYFBU4riiTK9MicvfP2TwK3LNqiRfStReD8_7siEeQfg3CYeVHXJiiTHvNILvR9kPYmFH9RGI97nEZiwHIPlsHe9yCcyq63waMOp1SOoxlN8r6vEyz03jNUbgWl5UjAzS0fDf0OJ9CrgLgGn7WwHkxI_A0os"}'
#response = requests.put('https://dash.cloudflare.com/api/v4/user/email-verification', cookies=cookies, headers=headers, data=data)