From c3708891704661528bae06e6d24486830f02ba68 Mon Sep 17 00:00:00 2001 From: Iodine <87243723+io-dine@users.noreply.github.com> Date: Sat, 10 Jul 2021 15:59:40 -0400 Subject: [PATCH 1/2] Update Endpoints.cs --- .../ValorParty/RumbleMike/Endpoints.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ValorScrimSource/ValorParty/RumbleMike/Endpoints.cs b/ValorScrimSource/ValorParty/RumbleMike/Endpoints.cs index 6b5ce5c..c328c32 100644 --- a/ValorScrimSource/ValorParty/RumbleMike/Endpoints.cs +++ b/ValorScrimSource/ValorParty/RumbleMike/Endpoints.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -22,7 +22,7 @@ public static JObject GetWebsocketAPI(string endpoint) IRestRequest GetRequest = new RestRequest(Method.GET); GetRequest.AddHeader("Authorization", $"Basic {Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes($"riot:{RiotUser.Instance.lockfileData.password}"))}"); GetRequest.AddHeader("X-Riot-ClientPlatform", "ew0KCSJwbGF0Zm9ybVR5cGUiOiAiUEMiLA0KCSJwbGF0Zm9ybU9TIjogIldpbmRvd3MiLA0KCSJwbGF0Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9"); - GetRequest.AddHeader("X-Riot-ClientVersion", "release-02.05-shipping-3-531230"); + GetRequest.AddHeader("X-Riot-ClientVersion", "release-03.01-shipping-9-579719"); IRestResponse getResp = GetClient.Get(GetRequest); if (getResp.IsSuccessful) @@ -60,7 +60,7 @@ public static JObject GETCurrentParty() getRequest.AddHeader("Authorization", $"Bearer {RiotUser.Instance.riotDetails.accessToken}"); getRequest.AddHeader("X-Riot-Entitlements-JWT", RiotUser.Instance.riotDetails.entitlementToken); getRequest.AddHeader("X-Riot-ClientPlatform", "ew0KCSJwbGF0Zm9ybVR5cGUiOiAiUEMiLA0KCSJwbGF0Zm9ybU9TIjogIldpbmRvd3MiLA0KCSJwbGF0Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9"); - getRequest.AddHeader("X-Riot-ClientVersion", "release-02.05-shipping-3-531230"); + getRequest.AddHeader("X-Riot-ClientVersion", "release-03.01-shipping-9-579719"); IRestResponse getResp = getClient.Get(getRequest); @@ -79,7 +79,7 @@ public static JObject POSTCustomGameSettings(string map, string server) postRequest.AddHeader("Authorization", $"Bearer {RiotUser.Instance.riotDetails.accessToken}"); postRequest.AddHeader("X-Riot-Entitlements-JWT", RiotUser.Instance.riotDetails.entitlementToken); postRequest.AddHeader("X-Riot-ClientPlatform", "ew0KCSJwbGF0Zm9ybVR5cGUiOiAiUEMiLA0KCSJwbGF0Zm9ybU9TIjogIldpbmRvd3MiLA0KCSJwbGF0Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9"); - postRequest.AddHeader("X-Riot-ClientVersion", "release-02.05-shipping-3-531230"); + postRequest.AddHeader("X-Riot-ClientVersion", "release-03.01-shipping-9-579719"); Object settings = new { @@ -107,7 +107,7 @@ public static JObject POSTMakeCustomGame() postRequest.AddHeader("Authorization", $"Bearer {RiotUser.Instance.riotDetails.accessToken}"); postRequest.AddHeader("X-Riot-Entitlements-JWT", RiotUser.Instance.riotDetails.entitlementToken); postRequest.AddHeader("X-Riot-ClientPlatform", "ew0KCSJwbGF0Zm9ybVR5cGUiOiAiUEMiLA0KCSJwbGF0Zm9ybU9TIjogIldpbmRvd3MiLA0KCSJwbGF0Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9"); - postRequest.AddHeader("X-Riot-ClientVersion", "release-02.05-shipping-3-531230"); + postRequest.AddHeader("X-Riot-ClientVersion", "release-03.01-shipping-9-579719"); IRestResponse postResp = postClient.Post(postRequest); @@ -125,7 +125,7 @@ public static JObject POSTCreateparty() postRequest.AddHeader("Authorization", $"Bearer {RiotUser.Instance.riotDetails.accessToken}"); postRequest.AddHeader("X-Riot-Entitlements-JWT", RiotUser.Instance.riotDetails.entitlementToken); postRequest.AddHeader("X-Riot-ClientPlatform", "ew0KCSJwbGF0Zm9ybVR5cGUiOiAiUEMiLA0KCSJwbGF0Zm9ybU9TIjogIldpbmRvd3MiLA0KCSJwbGF0Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9"); - postRequest.AddHeader("X-Riot-ClientVersion", "release-02.05-shipping-3-531230"); + postRequest.AddHeader("X-Riot-ClientVersion", "release-03.01-shipping-9-579719"); IRestResponse postResp = postClient.Post(postRequest); @@ -144,7 +144,7 @@ public static JObject POSTOpenLobby() postRequest.AddHeader("Authorization", $"Bearer {RiotUser.Instance.riotDetails.accessToken}"); postRequest.AddHeader("X-Riot-Entitlements-JWT", RiotUser.Instance.riotDetails.entitlementToken); postRequest.AddHeader("X-Riot-ClientPlatform", "ew0KCSJwbGF0Zm9ybVR5cGUiOiAiUEMiLA0KCSJwbGF0Zm9ybU9TIjogIldpbmRvd3MiLA0KCSJwbGF0Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9"); - postRequest.AddHeader("X-Riot-ClientVersion", "release-02.05-shipping-3-531230"); + postRequest.AddHeader("X-Riot-ClientVersion", "release-03.01-shipping-9-579719"); postRequest.AddParameter("application/json", "{\r\n \"Accessibility\":\"OPEN\"\r\n}", ParameterType.RequestBody); IRestResponse postResp = postClient.Post(postRequest); @@ -164,7 +164,7 @@ public static JObject POSTJoinparty(string code) postRequest.AddHeader("Authorization", $"Bearer {RiotUser.Instance.riotDetails.accessToken}"); postRequest.AddHeader("X-Riot-Entitlements-JWT", RiotUser.Instance.riotDetails.entitlementToken); postRequest.AddHeader("X-Riot-ClientPlatform", "ew0KCSJwbGF0Zm9ybVR5cGUiOiAiUEMiLA0KCSJwbGF0Zm9ybU9TIjogIldpbmRvd3MiLA0KCSJwbGF0Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9"); - postRequest.AddHeader("X-Riot-ClientVersion", "release-02.05-shipping-3-531230"); + postRequest.AddHeader("X-Riot-ClientVersion", "release-03.01-shipping-9-579719"); IRestResponse postResp = postClient.Post(postRequest); @@ -184,7 +184,7 @@ public static string GetPlayerCard() getRequest.AddHeader("Authorization", $"Bearer {RiotUser.Instance.riotDetails.accessToken}"); getRequest.AddHeader("X-Riot-Entitlements-JWT", RiotUser.Instance.riotDetails.entitlementToken); getRequest.AddHeader("X-Riot-ClientPlatform", "ew0KCSJwbGF0Zm9ybVR5cGUiOiAiUEMiLA0KCSJwbGF0Zm9ybU9TIjogIldpbmRvd3MiLA0KCSJwbGF0Zm9ybU9TVmVyc2lvbiI6ICIxMC4wLjE5MDQyLjEuMjU2LjY0Yml0IiwNCgkicGxhdGZvcm1DaGlwc2V0IjogIlVua25vd24iDQp9"); - getRequest.AddHeader("X-Riot-ClientVersion", "release-02.05-shipping-3-531230"); + getRequest.AddHeader("X-Riot-ClientVersion", "release-03.01-shipping-9-579719"); IRestResponse getResp = getClient.Get(getRequest); if (getResp.IsSuccessful) From b7217b1d57824e46edcc68438050348a9919c83b Mon Sep 17 00:00:00 2001 From: Iodine <87243723+io-dine@users.noreply.github.com> Date: Sat, 10 Jul 2021 16:04:53 -0400 Subject: [PATCH 2/2] Update Home.xaml.cs --- ValorScrimSource/ValorParty/Menus/Home/Home.xaml.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ValorScrimSource/ValorParty/Menus/Home/Home.xaml.cs b/ValorScrimSource/ValorParty/Menus/Home/Home.xaml.cs index 0c1fbd3..32755fb 100644 --- a/ValorScrimSource/ValorParty/Menus/Home/Home.xaml.cs +++ b/ValorScrimSource/ValorParty/Menus/Home/Home.xaml.cs @@ -53,9 +53,11 @@ private void Page_Loaded(object sender, RoutedEventArgs e) else regionLabel.Content = $"NOT FOUND"; + /* string playercardLink = Endpoints.GetPlayerCard(); playerCardPreview.Source = new BitmapImage(new Uri(playercardLink, UriKind.Absolute)); - + */ + // Had to remove PlayerCard integration for it to build } private void joinBTN_Click(object sender, RoutedEventArgs e)