Top100
Your Personal Movie List (C++17 CLI + library)
|
Classes | |
struct | BlueSkySession |
struct | OmdbSearchResult |
Functions | |
std::optional< BlueSkySession > | bskyCreateSession (const std::string &serviceBase, const std::string &identifier, const std::string &appPassword) |
Create a BlueSky session (login). | |
std::optional< std::string > | bskyUploadImage (const std::string &serviceBase, const std::string &accessJwt, const std::vector< unsigned char > &bytes, const std::string &contentType) |
Upload an image blob for embedding in a BlueSky post. | |
bool | bskyCreatePost (const std::string &serviceBase, const std::string &accessJwt, const std::string &repoDid, const std::string &text, const std::optional< std::string > &imageBlobJson) |
Create a text post with optional image embed. | |
bool | bskyPostMovie (const std::string &serviceBase, const std::string &identifier, const std::string &appPassword, const Movie &movie) |
High-level helper: compose and post a movie with optional poster. | |
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) |
std::vector< OmdbSearchResult > | omdbSearch (const std::string &apiKey, const std::string &query) |
std::optional< Movie > | omdbGetById (const std::string &apiKey, const std::string &imdbID) |
bool | omdbVerifyKey (const std::string &apiKey) |
std::optional< BlueSkySession > bskyCreateSession | ( | const std::string & | serviceBase, |
const std::string & | identifier, | ||
const std::string & | appPassword | ||
) |
Create a BlueSky session (login).
serviceBase | Base URL (e.g., https://bsky.social) |
identifier | Handle or email |
appPassword | App password |
std::optional< std::string > bskyUploadImage | ( | const std::string & | serviceBase, |
const std::string & | accessJwt, | ||
const std::vector< unsigned char > & | bytes, | ||
const std::string & | contentType | ||
) |
Upload an image blob for embedding in a BlueSky post.
bytes | Raw image bytes |
contentType | image/jpeg or image/png |
bool mastoPostStatus | ( | const std::string & | instanceBaseUrl, |
const std::string & | accessToken, | ||
const std::string & | text, | ||
const std::optional< std::string > & | mediaId | ||
) |
Post a status with optional media id.
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 | ||
) |
Upload media and return media id.
bool mastoVerify | ( | const std::string & | instanceBaseUrl, |
const std::string & | accessToken | ||
) |
Minimal Mastodon client helpers Verify token via /api/v1/accounts/verify_credentials.
std::optional< Movie > omdbGetById | ( | const std::string & | apiKey, |
const std::string & | imdbID | ||
) |
Fetch full details for a movie by imdbID and map to Movie.
std::vector< OmdbSearchResult > omdbSearch | ( | const std::string & | apiKey, |
const std::string & | query | ||
) |
Query OMDb by title keyword and return basic results.
bool omdbVerifyKey | ( | const std::string & | apiKey | ) |
Verify OMDb API key by issuing a simple request.