diff options
| author | Aotrix <[email protected]> | 2026-01-25 01:52:23 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-01-25 01:52:23 +0100 |
| commit | 15de61ad9fead748287537cdcc11fc82683a09ef (patch) | |
| tree | b048c1b5c3efa493d852fb32e8d1beb6018e09e7 /battleNetApi/src/hearthstoneApi.cpp | |
| parent | b93862f9f1fab10a569c9706335b6133fe44d996 (diff) | |
Added JSON support for token generation
Diffstat (limited to 'battleNetApi/src/hearthstoneApi.cpp')
| -rw-r--r-- | battleNetApi/src/hearthstoneApi.cpp | 2 |
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; |
