Hello, i am trying to use urlfetch to retrieve information from:
https://api.ageofempires.com/api/ageiv/Leaderboard
but need to use this body with the header json as well
{
"region": 7,
"versus": "players",
"matchType": "unranked",
"teamSize": "1v1",
"searchPlayer": "AndyCiv",
"page": 1,
"count": 100
}
i have run it through Postman using a POST and get the following:
{
"count": 1,
"items": [
{
"gameId": "4",
"userId": "/steam/76561199151723601",
"rlUserId": 7040009,
"userName": "AndyCiv",
"avatarUrl": null,
"playerNumber": null,
"elo": 953,
"eloRating": 0,
"rank": 18626,
"region": "0",
"wins": 45,
"winPercent": 50.56,
"losses": 44,
"winStreak": 2
}
]
}
When i try to add this as a command through nightbot its returns unexpected identifier or error 405, could i get some help with how to add this please? the command would be "!rank username".