From aceb3cc33ee78cce1077252aff8a8808a3195ff1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 31 May 2016 09:55:58 -0400 Subject: Added ability to get configuration --- src/client.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client.h') diff --git a/src/client.h b/src/client.h index c1c6344..f96022d 100644 --- a/src/client.h +++ b/src/client.h @@ -11,6 +11,7 @@ #include #include #include +#include "configuration.h" namespace OAuth { class Consumer; @@ -81,6 +82,8 @@ namespace twitter { const user& getUser() const; + configuration getConfiguration(); + // NOTE: stream setting function calls will fail silently when stream is running void setUserStreamNotifyCallback(stream::notify_callback callback); void setUserStreamReceiveAllReplies(bool _arg); @@ -99,6 +102,9 @@ namespace twitter { user _current_user; stream _user_stream{*this}; + configuration _configuration; + time_t _last_configuration_update; + bool performGet(std::string url, long& response_code, std::string& result); bool performPost(std::string url, std::string dataStr, long& response_code, std::string& result); bool performMultiPost(std::string url, const curl_httppost* fields, long& response_code, std::string& result); -- cgit 1.4.1