mastodonpp  0.0.0
Public Member Functions | List of all members
mastodonpp::API Class Reference

C++ wrapper for the Mastodon API. More...

#include <mastodonpp.hpp>

Public Member Functions

 API (string instance, string access_token)
 Construct a new API object. More...
 

Detailed Description

C++ wrapper for the Mastodon API.

All text input is expected to be UTF-8.

Since
0.1.0

Constructor & Destructor Documentation

◆ API()

mastodonpp::API::API ( string  instance,
string  access_token 
)
explicit

Construct a new API object.

To register your application, leave access_token blank and call register_app1() and register_app2().

Parameters
instanceThe hostname of your instance.
access_tokenYour access token.
Since
0.1.0
27  : _instance{move(instance)}
28  , _access_token{move(access_token)}
29 {}

The documentation for this class was generated from the following files: