Всех с наступившим! Написил кодик для установки тега автора в магазине предметов Можно использовать в ботах, где есть привязка акков и возможность дарить подарки! Только если так будете делать пишите FAQ, чтобы не было вопросов! async def get_token(device_id, account_id, secret): url = "https://account-public-service-prod.ol.epicgames.com/account/api/oauth/token" headers = { "Authorization": "basic M2Y2OWU1NmM3NjQ5NDkyYzhjYzI5ZjFhZjA4YThhMTI6YjUxZWU5Y2IxMjIzNGY1MGE2OWVmYTY3ZWY1MzgxMmU=", "Content-Type": "application/x-www-form-urlencoded" } data = { "grant_type": "device_auth", "device_id": device_id, "account_id": account_id, "secret": secret } async with aiohttp.ClientSession() as session: async with session.post(url, headers=headers, data=data) as response: response_data = await response.json() if response.status == 200 and 'access_token' in response_data: return response_data['access_token'] else: print("Ошибка получения токена") print(f"Статус: {response.status}") print(f"Ответ: {response_data}") return None async def set_sup_name(): device_id = '***' account_id = '***' secret = '***' access_token = await get_token(device_id, account_id, secret) url = f"https://fngw-mcp-gc-livefn.ol.epicgames.com/fortnite/api/game/v2/profile/{account_id}/client/SetAffiliateName?profileId=common_core&rvn=-1" headers = { 'Authorization': f'Bearer {access_token}', 'Content-Type': 'application/json', } payload = { "affiliateName": "ninja" # КОД АВТОРА } async with aiohttp.ClientSession() as session: async with session.post(url, headers=headers, json=payload) as response: if response.status == 200: data = await response.json() print(f"Код автора установлен {data}") else: print(f"Ошибка: {response.status}") print(f"Ответ: {await response.text()}") if __name__ == '__main__': asyncio.run(set_sup_name()) Python async def get_token(device_id, account_id, secret): url = "https://account-public-service-prod.ol.epicgames.com/account/api/oauth/token" headers = { "Authorization": "basic M2Y2OWU1NmM3NjQ5NDkyYzhjYzI5ZjFhZjA4YThhMTI6YjUxZWU5Y2IxMjIzNGY1MGE2OWVmYTY3ZWY1MzgxMmU=", "Content-Type": "application/x-www-form-urlencoded" } data = { "grant_type": "device_auth", "device_id": device_id, "account_id": account_id, "secret": secret } async with aiohttp.ClientSession() as session: async with session.post(url, headers=headers, data=data) as response: response_data = await response.json() if response.status == 200 and 'access_token' in response_data: return response_data['access_token'] else: print("Ошибка получения токена") print(f"Статус: {response.status}") print(f"Ответ: {response_data}") return None async def set_sup_name(): device_id = '***' account_id = '***' secret = '***' access_token = await get_token(device_id, account_id, secret) url = f"https://fngw-mcp-gc-livefn.ol.epicgames.com/fortnite/api/game/v2/profile/{account_id}/client/SetAffiliateName?profileId=common_core&rvn=-1" headers = { 'Authorization': f'Bearer {access_token}', 'Content-Type': 'application/json', } payload = { "affiliateName": "ninja" # КОД АВТОРА } async with aiohttp.ClientSession() as session: async with session.post(url, headers=headers, json=payload) as response: if response.status == 200: data = await response.json() print(f"Код автора установлен {data}") else: print(f"Ошибка: {response.status}") print(f"Ответ: {await response.text()}") if __name__ == '__main__': asyncio.run(set_sup_name())