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

Holds the hostname and access token of an instance. More...

#include <mastodonpp/instance.hpp>

Public Member Functions

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

Detailed Description

Holds the hostname and access token of an instance.

Since
0.1.0

Constructor & Destructor Documentation

◆ Instance()

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

Construct a new Instance object.

Parameters
instanceThe hostname of the instance.
access_tokenYour access token.
Since
0.1.0
28  : _instance{move(instance)}
29  , _access_token{move(access_token)}
30  , _connection{curl_easy_init()}
31 {
32  setup_curl();
33 }

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