MCPcopy Create free account
hub / github.com/battlecode/battlecode-2018 / get_token

Function get_token

battlecode-manager/gui.py:34–44  ·  view source on GitHub ↗
(username, password)

Source from the content-addressed store, hash-verified

32
33
34def get_token(username, password):
35 headers = {}
36 headers['authorization'] = "Basic " + CLIENT_ID
37 data = {}
38 data['grant_type'] = 'password'
39 data['username'] = username
40 data['password'] = password
41 data['client_id'] = CLIENT_ID
42 req = requests.post("http://www.battlecode.org/oauth/token", headers=headers, data=data)
43 print(req.text)
44 return req
45
46
47@eel.expose

Callers 1

upload_scrim_serverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected