From 710e8f011cd79b901fe461a7eb8234e6df4981c4 Mon Sep 17 00:00:00 2001 From: "Mike Williams (UK)" Date: Fri, 19 Apr 2024 16:56:11 +0100 Subject: [PATCH 1/2] Bug Fix --- AppSettings.json | 1 + Helpers/HttpHelper.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AppSettings.json b/AppSettings.json index ec8e689..67b2f0d 100644 --- a/AppSettings.json +++ b/AppSettings.json @@ -1,6 +1,7 @@ { "LoginUri": "https://my.ovoenergy.com/api/v2/auth/login", "AccountsUri": "https://smartpaym.ovoenergy.com/api/customer-and-account-ids", + "AccountsUri-V2": "https://smartpaymapi.ovoenergy.com/first-login/api/bootstrap/v2/", "MonthlyUri": "https://smartpaymapi.ovoenergy.com/usage/api/monthly/{0}?date={1}", "DailyUri": "https://smartpaymapi.ovoenergy.com/usage/api/daily/{0}?date={1}", "HalfHourlyUri": "https://smartpaymapi.ovoenergy.com/usage/api/half-hourly/{0}?date={1}" diff --git a/Helpers/HttpHelper.cs b/Helpers/HttpHelper.cs index 63f98df..3904948 100644 --- a/Helpers/HttpHelper.cs +++ b/Helpers/HttpHelper.cs @@ -48,7 +48,7 @@ public static AccountsResponse GetAccountIds(IConfigurationRoot config) try { - var uri = config["AccountsUri"]; + var uri = config["AccountsUri-V2"]; Logger.WriteLine($"Uri: {uri}"); var request = new HttpRequestMessage(HttpMethod.Get, uri); From 3d0083e7900fadb0ec12e600ba248b34bc5cdf14 Mon Sep 17 00:00:00 2001 From: "Mike Williams (UK)" Date: Mon, 22 Apr 2024 09:53:04 +0100 Subject: [PATCH 2/2] Release 1.0.2 --- AppSettings.json | 3 +-- Helpers/HttpHelper.cs | 2 +- OvoData.csproj | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/AppSettings.json b/AppSettings.json index 67b2f0d..16def4c 100644 --- a/AppSettings.json +++ b/AppSettings.json @@ -1,7 +1,6 @@ { "LoginUri": "https://my.ovoenergy.com/api/v2/auth/login", - "AccountsUri": "https://smartpaym.ovoenergy.com/api/customer-and-account-ids", - "AccountsUri-V2": "https://smartpaymapi.ovoenergy.com/first-login/api/bootstrap/v2/", + "AccountsUri": "https://smartpaymapi.ovoenergy.com/first-login/api/bootstrap/v2/", "MonthlyUri": "https://smartpaymapi.ovoenergy.com/usage/api/monthly/{0}?date={1}", "DailyUri": "https://smartpaymapi.ovoenergy.com/usage/api/daily/{0}?date={1}", "HalfHourlyUri": "https://smartpaymapi.ovoenergy.com/usage/api/half-hourly/{0}?date={1}" diff --git a/Helpers/HttpHelper.cs b/Helpers/HttpHelper.cs index 3904948..63f98df 100644 --- a/Helpers/HttpHelper.cs +++ b/Helpers/HttpHelper.cs @@ -48,7 +48,7 @@ public static AccountsResponse GetAccountIds(IConfigurationRoot config) try { - var uri = config["AccountsUri-V2"]; + var uri = config["AccountsUri"]; Logger.WriteLine($"Uri: {uri}"); var request = new HttpRequestMessage(HttpMethod.Get, uri); diff --git a/OvoData.csproj b/OvoData.csproj index 994162e..be62c58 100644 --- a/OvoData.csproj +++ b/OvoData.csproj @@ -8,8 +8,8 @@ win-x64 en-US;en Ovo.ico - 1.0.1 - 1.0.1.1 + 1.0.2 + 1.0.2.2