Top100
Your Personal Movie List (C++17 CLI + library)
Loading...
Searching...
No Matches
mastodon.cpp File Reference

Mastodon client helpers (media upload and status posting). More...

#include "mastodon.h"
#include <cpr/cpr.h>
#include <nlohmann/json.hpp>
Include dependency graph for mastodon.cpp:

Typedefs

using json = nlohmann::json
 

Functions

bool mastoVerify (const std::string &instanceBaseUrl, const std::string &accessToken)
 
std::optional< std::string > mastoUploadMedia (const std::string &instanceBaseUrl, const std::string &accessToken, const std::vector< unsigned char > &bytes, const std::string &filename, const std::string &contentType)
 
bool mastoPostStatus (const std::string &instanceBaseUrl, const std::string &accessToken, const std::string &text, const std::optional< std::string > &mediaId)
 

Detailed Description

Mastodon client helpers (media upload and status posting).