File size: 384 Bytes
f6f97d8
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import requests


def get_key():
    URL = "http://54.242.37.195:20217/api/predict"
    # The springboard machine we built to protect the key, 20217 is the birthday of Tianbao's girlfriend
    # we will only let the demo machine have the access to the keys

    one_key = requests.post(url=URL, json={"data": "Hi, binder server. Give me a key!"}).json()['data'][0]
    return one_key