diff options
| author | Aotrix <[email protected]> | 2026-01-01 03:35:41 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2026-01-01 03:35:41 +0100 |
| commit | c05901c38c6a77779807a6b224b9b624bfcaa5d3 (patch) | |
| tree | fb8d212cd9995e4eecd351de352ea6aab2295924 /include/hearthstoneAPI.hpp | |
| parent | a56ae1a7ad5f624b05570965bed76e928bbd945c (diff) | |
removed useless files
Diffstat (limited to 'include/hearthstoneAPI.hpp')
| -rw-r--r-- | include/hearthstoneAPI.hpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/hearthstoneAPI.hpp b/include/hearthstoneAPI.hpp deleted file mode 100644 index f677080..0000000 --- a/include/hearthstoneAPI.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once -#include <chrono> -#include <string> - -class HearthstoneAPI { - public: - HearthstoneAPI(); - 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; -}; |
