diff options
| author | Aotrix <[email protected]> | 2026-02-01 02:55:28 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-02-01 02:55:28 +0100 |
| commit | 34ba40ca622a7362eb48618deae3c91eac4b6f9a (patch) | |
| tree | 997ad30acce5c04a3f8bad7af8279193f6783609 /battleNetApi/include/hearthstoneApi.hpp | |
| parent | a09398b0734a21c70e5ee3bc80cae49d49a70a22 (diff) | |
Download all the cards with API
Diffstat (limited to 'battleNetApi/include/hearthstoneApi.hpp')
| -rw-r--r-- | battleNetApi/include/hearthstoneApi.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/battleNetApi/include/hearthstoneApi.hpp b/battleNetApi/include/hearthstoneApi.hpp index 56ac53c..c3fbfac 100644 --- a/battleNetApi/include/hearthstoneApi.hpp +++ b/battleNetApi/include/hearthstoneApi.hpp @@ -1,5 +1,6 @@ #pragma once #include "token.hpp" +#include <apiUrl.hpp> #include <nlohmann/json.hpp> #include <string> @@ -11,9 +12,10 @@ class HearthstoneApi { HearthstoneApi(Token &&iToken); json makeApiRequest(const std::string &iUrl) const; std::vector<json> makeApiRequest(const std::vector<std::string> &iUrls) const; + void downloadAllCards(ApiUrl &iApiUrl, const std::string &iOutputJsonPath) const; private: - std::string authorizationHeader(); + std::string authorizationHeader() const; static size_t curlCallbackStringOutput(void *iContent, size_t iSize, size_t iNmemb, std::string *iS); Token mToken; |
