Added get_instance()
This commit is contained in:
parent
4372f3249c
commit
59da12f520
@ -1,6 +1,6 @@
|
||||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastodon-cpp
|
||||
VERSION 0.5.1
|
||||
VERSION 0.6.0
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
@ -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 = "";
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user