Revise MCWS parameter names

This commit is contained in:
John Lewin 2016-06-24 18:20:25 -07:00
parent 3a50198cfc
commit 91b80b716d

View file

@ -141,7 +141,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
internal static SettingsProfile LoadProfileFromMCWS(string deviceToken)
{
WebClient client = new WebClient();
string json = client.DownloadString($"{MatterControlApplication.MCWSBaseUri}/api/1/device/get-profile?key={deviceToken}");
string json = client.DownloadString($"{MatterControlApplication.MCWSBaseUri}/api/1/device/get-profile?PrinterToken={deviceToken}");
var printerSettings = JsonConvert.DeserializeObject<PrinterSettings>(json);
return new SettingsProfile(printerSettings);