diff options
| author | Aotrix <[email protected]> | 2025-03-08 23:13:49 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-03-08 23:13:49 +0100 |
| commit | 9c280e05547671aa346530c4c7c0ddbc4729348f (patch) | |
| tree | 3ef3c21d14c8b8c72c8d63c68e0c6d20a6ad835b /include | |
| parent | 61425111dc8ac7aca986d87b524d7d4647306e2d (diff) | |
added std::string output
Diffstat (limited to 'include')
| -rw-r--r-- | include/hearthstoneAPIHandler.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/hearthstoneAPIHandler.h b/include/hearthstoneAPIHandler.h index 718b98c..c752f6e 100644 --- a/include/hearthstoneAPIHandler.h +++ b/include/hearthstoneAPIHandler.h @@ -5,10 +5,10 @@ class HearthstoneAPIHandler { public: HearthstoneAPIHandler(); - void get_cards(const std::string &t_card_parameters); + std::string get_cards(const std::string &t_card_parameters); private: - static size_t curl_callback_token_request(void *t_contents, size_t t_size, + static size_t curl_callback_string_output(void *t_contents, size_t t_size, size_t t_nmemb, std::string *t_s); std::chrono::hours get_current_time(); std::string extract_string_with_regex(const std::string &t_str, @@ -20,9 +20,9 @@ class HearthstoneAPIHandler { const std::string get_url(const std::string &t_parameters); const std::string get_set_of_cards_url(const std::string &t_card_parameters); - void make_api_request(const char *t_url, const char *t_header); - void make_api_request(const std::string &t_url, - const std::string &t_header); + std::string make_api_request(const char *t_url, const char *t_header); + std::string make_api_request(const std::string &t_url, + const std::string &t_header); std::string m_access_token; std::string m_header; |
