mirror of
https://github.com/tribufu/sdk-cpp
synced 2025-06-15 12:24:18 +00:00
Update client.h
This commit is contained in:
@ -4,8 +4,6 @@
|
||||
|
||||
#include <tribufu/pch.h>
|
||||
|
||||
#include <cpp-httplib/httplib.h>
|
||||
|
||||
const char *VERSION = "0.0.4";
|
||||
|
||||
class TribufuClient
|
||||
@ -13,19 +11,12 @@ class TribufuClient
|
||||
private:
|
||||
uint64_t id;
|
||||
std::string secret;
|
||||
// httplib::Client http;
|
||||
|
||||
public:
|
||||
TribufuClient(uint64_t id, const std::string &secret) //: http("https://api.tribufu.com")
|
||||
TribufuClient(uint64_t id, const std::string &secret)
|
||||
{
|
||||
this->id = id;
|
||||
this->secret = secret;
|
||||
|
||||
/*
|
||||
this->http.set_default_headers({{"User-Agent", "Tribufu/" + std::string(VERSION) + " (+https://api.tribufu.com; C++)"},
|
||||
{"X-Tribufu-Language", "cpp"},
|
||||
{"X-Tribufu-Version", VERSION}});
|
||||
*/
|
||||
}
|
||||
|
||||
uint64_t get_id() const
|
||||
|
Reference in New Issue
Block a user