Skip to content

Commit

Permalink
Merge pull request #21 from phaus/main
Browse files Browse the repository at this point in the history
Fixes for the new bondora api URLs
  • Loading branch information
EmDee authored May 30, 2024
2 parents e22a4ec + b341018 commit 7c75114
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Bondora.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
WebBanking {
version = 1.4,
version = 1.5,
url = "https://www.bondora.com",
description = "Bondora Account",
services = { "Bondora Account" }
Expand All @@ -13,7 +13,8 @@ local html
local currency = "EUR"
local locale = "en"
local baseUrl = "https://www.bondora.com"
local baseUrlLocale = "https://www.bondora.com/" .. locale
local apiBaseUrl = "https://api.prd.bondora.com"
local baseUrlLocale = "https://app.bondora.com/" .. locale

function SupportsBank (protocol, bankCode)
return protocol == ProtocolWebBanking and bankCode == "Bondora Account"
Expand Down Expand Up @@ -55,7 +56,7 @@ function AccountSummary ()
local headers = {accept = "application/json"}
local content = connection:request(
"GET",
baseUrl .. "/api/GoGrowDashboard/GoGrowDashboardAccountInfo",
apiBaseUrl .. "/investor/api/GoGrowDashboard/GoGrowDashboardAccountInfo",
"",
"application/json",
headers
Expand Down Expand Up @@ -106,4 +107,4 @@ function EndSession ()
MM.printStatus("Logout: " .. url)
connection:get(url)
return nil
end
end

0 comments on commit 7c75114

Please sign in to comment.