summaryrefslogtreecommitdiff
path: root/battleNetApi/src/hearthstoneApi.cpp
diff options
context:
space:
mode:
authorAotrix <[email protected]>2026-01-25 01:52:23 +0100
committerAotrix <[email protected]>2026-01-25 01:52:23 +0100
commit15de61ad9fead748287537cdcc11fc82683a09ef (patch)
treeb048c1b5c3efa493d852fb32e8d1beb6018e09e7 /battleNetApi/src/hearthstoneApi.cpp
parentb93862f9f1fab10a569c9706335b6133fe44d996 (diff)
Added JSON support for token generation
Diffstat (limited to 'battleNetApi/src/hearthstoneApi.cpp')
-rw-r--r--battleNetApi/src/hearthstoneApi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/battleNetApi/src/hearthstoneApi.cpp b/battleNetApi/src/hearthstoneApi.cpp
index c34e6ad..026737a 100644
--- a/battleNetApi/src/hearthstoneApi.cpp
+++ b/battleNetApi/src/hearthstoneApi.cpp
@@ -8,7 +8,7 @@ std::uint64_t HearthstoneApi::numberOfCards(const std::string &iApiResponse) con
const std::string aCardCountRegex{"\"cardCount\":(\\d+)"};
return valueInJson<std::uint64_t>(iApiResponse, aCardCountRegex);
}
-std::string HearthstoneApi::authorizationHeader() { return std::format("Authorization: Bearer {}", mToken.toString()); }
+std::string HearthstoneApi::authorizationHeader() { return std::format("Authorization: Bearer {}", mToken.text()); }
size_t HearthstoneApi::curlCallbackStringOutput(void *iContent, size_t iSize, size_t iNmemb, std::string *iS) {
const size_t kNewLength = iSize * iNmemb;