#ifndef WITHOUT_EASY
#include <iostream>
#include <string>
#include <cstdint>
#include <regex>
#include "mastodon-cpp.hpp"
#include "easy/all.hpp"
using std::cout;
using std::cerr;
using std::endl;
using std::string;
using std::uint16_t;
int main(int argc, char *argv[])
{
if (argc < 2)
{
std::cerr << "usage: " << argv[0] << " <instance>\n";
return 1;
}
{
{ "local", { "true" }},
{ "limit", { "4" }}
});
if (ret)
{
{
std::regex re_html("<[^>]+>");
content = std::regex_replace(content, re_html, "");
cout << content << endl << endl;
}
}
else
{
{
cerr << "HTTP status code: "
}
}
return 0;
}
#else
#include <cstdio>
int main()
{
std::printf("mastodon-cpp was compiled without Easy support.\n");
return 255;
}
#endif // WITHOUT_EASY