2018-01-26 02:33:58 +01:00
|
|
|
#ifndef AFRINTICKER_HPP
|
|
|
|
#define AFRINTICKER_HPP
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <boost/property_tree/ptree.hpp>
|
|
|
|
|
|
|
|
namespace pt = boost::property_tree;
|
|
|
|
using std::string;
|
|
|
|
|
2018-01-26 03:35:52 +01:00
|
|
|
void read_config(pt::ptree &config, const string &profile, string &instance, string &access_token, string &feedurl);
|
2018-01-26 02:33:58 +01:00
|
|
|
std::vector<string> parse_website(const string &profile, const string &xml);
|
|
|
|
|
|
|
|
// http.cpp
|
|
|
|
const std::uint16_t http_get(const string &host, const string &path,
|
|
|
|
string &answer, const string &useragent = "");
|
|
|
|
|
|
|
|
#endif // AFRINTICKER_HPP
|