import boto3 endpoint_url = 'https://mturk-requester.us-east-1.amazonaws.com' # Uncomment this line to use in production # endpoint_url = 'https://mturk-requester.us-east-1.amazonaws.com' client = boto3.client( 'mturk', endpoint_url=endpoint_url, ) # This will return $10,000.00 in the MTurk Developer Sandbox print(client.get_account_balance()['AvailableBalance']) response = client.notify_workers( Subject='Answer one question and get $1.8', MessageText='Hello, You did a study posted by me today called Please only accept if you can start immediately - Decision-making study. You almost finished the experiment to collect your payment of $1.8. I posted a custom HIT for you to finish the experiment and receive your payment. The title of this HIT is You started a hit where you had to interact with another participant and buy rocks but you did not finish ', WorkerIds=[ 'A1KXYURHCYHKOL', ] ) print(response)