Top100
Your Personal Movie List (C++17 CLI + library)
Loading...
Searching...
No Matches
External service clients

Classes

struct  BlueSkySession
 
struct  OmdbSearchResult
 

Functions

std::optional< BlueSkySessionbskyCreateSession (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< OmdbSearchResultomdbSearch (const std::string &apiKey, const std::string &query)
 
std::optional< MovieomdbGetById (const std::string &apiKey, const std::string &imdbID)
 
bool omdbVerifyKey (const std::string &apiKey)
 

Detailed Description

Function Documentation

◆ bskyCreateSession()

std::optional< BlueSkySession > bskyCreateSession ( const std::string &  serviceBase,
const std::string &  identifier,
const std::string &  appPassword 
)

Create a BlueSky session (login).

Parameters
serviceBaseBase URL (e.g., https://bsky.social)
identifierHandle or email
appPasswordApp password
Returns
Session on success, std::nullopt on failure
Here is the caller graph for this function:

◆ bskyUploadImage()

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.

Parameters
bytesRaw image bytes
contentTypeimage/jpeg or image/png
Returns
Serialized JSON blob string for app.bsky.embed.images
Here is the caller graph for this function:

◆ mastoPostStatus()

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.

◆ mastoUploadMedia()

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.

◆ mastoVerify()

bool mastoVerify ( const std::string &  instanceBaseUrl,
const std::string &  accessToken 
)

Minimal Mastodon client helpers Verify token via /api/v1/accounts/verify_credentials.

◆ omdbGetById()

std::optional< Movie > omdbGetById ( const std::string &  apiKey,
const std::string &  imdbID 
)

Fetch full details for a movie by imdbID and map to Movie.

Here is the caller graph for this function:

◆ omdbSearch()

std::vector< OmdbSearchResult > omdbSearch ( const std::string &  apiKey,
const std::string &  query 
)

Query OMDb by title keyword and return basic results.

Here is the caller graph for this function:

◆ omdbVerifyKey()

bool omdbVerifyKey ( const std::string &  apiKey)

Verify OMDb API key by issuing a simple request.