Skip to content

Commit f90ed43

Browse files
Fixes call to internal API endpoint that should not be called.
1 parent c8c6eed commit f90ed43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/elgato-cloud-data.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ nlohmann::json ElgatoCloud::GetPurchaseDownloadLink(std::string variantId)
296296
}
297297

298298
auto api = MarketplaceApi::getInstance();
299-
std::string api_url = api->apiUrl();
300-
api_url += "/product/internal/variants/" + variantId + "/direct-link";
299+
std::string api_url = api->gatewayUrl();
300+
api_url += "/items/" + variantId + "/direct-link";
301301
auto response = fetch_string_from_get(api_url, _accessToken);
302302
// Todo- Error checking
303303
try {

0 commit comments

Comments
 (0)