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

Used to make a request to the Mastodon API. More...

#include <request.hpp>

Public Member Functions

 Request (Instance &instance)
 Construct a new Request object. More...
 
answer_type get (API::endpoint_type endpoint) const
 Make a HTTP GET call. More...
 

Detailed Description

Used to make a request to the Mastodon API.

Since
0.1.0

Constructor & Destructor Documentation

◆ Request()

mastodonpp::Request::Request ( Instance instance)
explicit

Construct a new Request object.

Parameters
instanceAn Instance with the access data.
Since
0.1.0
23  : _instance{instance}
24 {}

Member Function Documentation

◆ get()

answer_type mastodonpp::Request::get ( API::endpoint_type  endpoint) const

Make a HTTP GET call.

Since
0.1.0
27 {
28  answer_type answer;
29  answer.body = API{endpoint}.to_string();
30  return answer;
31 }

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