diff options
| author | Aotrix <[email protected]> | 2025-10-01 19:46:58 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-10-01 19:59:11 +0200 |
| commit | 2dd7b40140473b47fbff65795ee1a66e1b84b4b4 (patch) | |
| tree | b6aa6607e46878e555fa25a98965ce454d7a516c /include/hearthstoneAPIHandler.hpp | |
| parent | e0d4ce7dcebe3230993bd9488723ce8766e6918d (diff) | |
Added more FOLDERS
Diffstat (limited to 'include/hearthstoneAPIHandler.hpp')
| -rw-r--r-- | include/hearthstoneAPIHandler.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/include/hearthstoneAPIHandler.hpp b/include/hearthstoneAPIHandler.hpp deleted file mode 100644 index 9d5ec58..0000000 --- a/include/hearthstoneAPIHandler.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once -#include <chrono> -#include <string> - -class HearthstoneAPIHandler { - public: - HearthstoneAPIHandler(); - std::string get_cards(const std::string &t_card_parameters); - - private: - static size_t curl_callback_string_output(void *t_contents, size_t t_size, - size_t t_nmemb, std::string *t_s); - std::chrono::seconds get_current_time(); - std::string extract_string_with_regex(const std::string &t_str, - const std::string t_regex); - void write_new_token_info_to_file(const std::string &t_file_path); - void refresh_token_if_needed(); - std::string get_valid_token(); - std::string generate_request_header(); - const std::string get_url(const std::string &t_parameters); - const std::string - get_set_of_cards_url(const std::string &t_card_parameters); - 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; -}; |
