Added get_instance()

This commit is contained in:
tastytea 2018-03-07 10:27:27 +01:00
parent 4372f3249c
commit 59da12f520
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
3 changed files with 13 additions and 1 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (mastodon-cpp
VERSION 0.5.1
VERSION 0.6.0
LANGUAGES CXX
)

View File

@ -49,6 +49,11 @@ const string API::get_useragent() const
return _useragent;
}
const string API::get_instance() const
{
return _instance;
}
const string API::maptostr(const parametermap &map, const bool &firstparam)
{
string result = "";

View File

@ -234,6 +234,13 @@ public:
*/
const std::string get_useragent() const;
/*!
* @brief Returns the instance.
*
* @return The instance.
*/
const std::string get_instance() const;
/*!
* @brief Percent-encodes a string. This is done automatically, unless you
* make a custom request.