mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-25 02:52:05 +00:00
12 lines
No EOL
480 B
C++
12 lines
No EOL
480 B
C++
#pragma once
|
|
|
|
#define ON 1
|
|
#define OFF 0
|
|
|
|
#include "json.hpp"
|
|
|
|
void downloadFile(const char *url, const char *output, int api);
|
|
std::vector<std::pair<std::string, std::string>> getLinks(const char *url);
|
|
std::string fetchTitle(const char *url);
|
|
std::string downloadPage(const char* url, std::vector<std::string> headers = {}, std::string body = "");
|
|
nlohmann::json getRequest(std::string url, std::vector<std::string> headers = {}, std::string body = ""); |