import requests

URL = "https://chal63-ytualk2.vercel.app/api"

data = { "playerId": "e9b9f172-806e-4e65-a967-6108ab37e7c1", "myKeys": 1 # javascript throws an error trying to run includes() # on a number, getId is not set }

r = requests.post(URL + "/friends", json=data) print(r.text)

[

{

"firstName": "Gabe",

"lastName": "Markfield",

"id": "745de6ee-78b1-4207-a16f-919ec89c2cd2"

},

{

"firstName": "Jerad",

"lastName": "Stock",

"id": "416063b9-7f8e-422b-a48e-b6884c931df8"

}

]

data = { "playerId": "745de6ee-78b1-4207-a16f-919ec89c2cd2", "myKeys": 1 # javascript throws an error trying to run includes() # on a number }

r = requests.post(URL + "/friends", json=data) print(r.text)

[

{

"firstName": "Aaron",

"lastName": "Seinfeld",

"id": "e9b9f172-806e-4e65-a967-6108ab37e7c1"

},

{

"firstName": "Tobby",

"lastName": "O'Brien",

"id": "d0be94cb-d914-4661-bbe7-53d6b42179e3"

}

]

data = { "playerId": "d0be94cb-d914-4661-bbe7-53d6b42179e3" }

r = requests.post(URL + "/player", json=data) print(r.text)