I get my contract from url
down below
async def fetch_player_contract(u):
#url="https://pd.ap.a.pvp.net/contract-definitions/v2/definitions/story"
url=f"https://pd.ap.a.pvp.net/contracts/v1/contracts/"+u['auth_user_id']
headers = {
"Content-Type": "application/json",
"X-Riot-Entitlements-JWT": u['entitlements_token'],
"Authorization": "Bearer " + u['access_token'],
"X-Riot-ClientPlatform" : "ew0KCSJwbGF0Zm9ybVR5cGUiOiAiUEMiLA0KCSJwbGF0Zm9ybU9TIjogIldpbmRvd3MiLA0KCSJwbGF0Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9",
"X-Riot-ClientVersion": "release-05.03-shipping-8-745499"
}
async with aiohttp.ClientSession() as session:
async with session.get(url, headers=headers) as response:
res = json.loads(await response.text())
return res
it also returns mission_id
in the end,but I can't find definitions of mission ID
"Missions": [
{
"ID": "75da2732-44ec-80f2-9de8-349da322f634",
"Objectives": {
"16af3bdf-c353-4c8c-a47c-b4eeac154eaf": 4
},
"Complete": False,
"ExpirationTime": "2022-08-24T03:00:00Z"
},
{
"ID": "4ef22966-46ac-0fc3-e300-d1a53b669e12",
"Objectives": {
"91952692-4345-8bc1-6f1c-2dad7e14109f": 176
},
"Complete": False,
"ExpirationTime": "2022-08-24T03:00:00Z"
},
{
"ID": "c90f3728-447d-ffa5-27a4-6c87fd89f9ce",
"Objectives": {
"a617b28c-4ad2-04f6-736e-2eb01a903417": 20
},
"Complete": True,
"ExpirationTime": "2022-08-24T03:00:00Z"
},
{
"ID": "0f33dad7-4e68-398d-35cc-b5a5b1503050",
"Objectives": {
"f5d56aa6-4337-2c1c-3cb9-47b7ce9e6304": 0
},
"Complete": False,
"ExpirationTime": "2022-08-23T20:00:00Z"
},
{
"ID": "8f183032-4ba1-b6a2-0574-e0ab6098a08f",
"Objectives": {
"c807ef27-420a-69f2-3c0f-31bf8922ba6f": 0
},
"Complete": False,
"ExpirationTime": "2022-08-23T20:00:00Z"
}
],
"MissionMetadata": {
"NPECompleted": True,
"WeeklyCheckpoint": "2022-07-11T13:00:00Z"
}
}