#ifndef INVAPI_H #define INVAPI_H #include #include #include #include "sqliteinterface.hpp" class InvidiousApi { public: InvidiousApi(const std::string& url); static std::vector getInstances(); static void saveInstancesToDb(SqliteInterface& sqldb); std::string getInstance(); void setInstance(const std::string& newUrl); void test(); private: std::string instanceUrl; cpr::Session session; }; #endif