about summary refs log tree commit diff stats
path: root/src/client.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-06-02 20:10:38 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-06-02 20:10:38 -0400
commit9fdcbee29350846db7f136b023da64bb2e6a93f5 (patch)
tree8fa6e2ee0e48c8b7310095989ef0a9838ddfcb37 /src/client.h
parente506eb6214ac1799ce7d7e333cfab965a11d5917 (diff)
parent442f1ee071152be04c4184473ddfee5040795b76 (diff)
downloadlibtwittercpp-9fdcbee29350846db7f136b023da64bb2e6a93f5.tar.gz
libtwittercpp-9fdcbee29350846db7f136b023da64bb2e6a93f5.tar.bz2
libtwittercpp-9fdcbee29350846db7f136b023da64bb2e6a93f5.zip
Merge branch 'master' of https://github.com/hatkirby/libtwittercpp
Diffstat (limited to 'src/client.h')
-rw-r--r--src/client.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client.h b/src/client.h index c1c6344..6963412 100644 --- a/src/client.h +++ b/src/client.h
@@ -11,6 +11,7 @@
11#include <set> 11#include <set>
12#include <ctime> 12#include <ctime>
13#include <chrono> 13#include <chrono>
14#include "configuration.h"
14 15
15namespace OAuth { 16namespace OAuth {
16 class Consumer; 17 class Consumer;
@@ -79,7 +80,9 @@ namespace twitter {
79 response getFriends(std::set<user_id>& result); 80 response getFriends(std::set<user_id>& result);
80 response getFollowers(std::set<user_id>& result); 81 response getFollowers(std::set<user_id>& result);
81 82
82 const user& getUser() const; 83 response getUser(user& result);
84
85 configuration getConfiguration();
83 86
84 // NOTE: stream setting function calls will fail silently when stream is running 87 // NOTE: stream setting function calls will fail silently when stream is running
85 void setUserStreamNotifyCallback(stream::notify_callback callback); 88 void setUserStreamNotifyCallback(stream::notify_callback callback);
@@ -99,6 +102,9 @@ namespace twitter {
99 user _current_user; 102 user _current_user;
100 stream _user_stream{*this}; 103 stream _user_stream{*this};
101 104
105 configuration _configuration;
106 time_t _last_configuration_update;
107
102 bool performGet(std::string url, long& response_code, std::string& result); 108 bool performGet(std::string url, long& response_code, std::string& result);
103 bool performPost(std::string url, std::string dataStr, long& response_code, std::string& result); 109 bool performPost(std::string url, std::string dataStr, long& response_code, std::string& result);
104 bool performMultiPost(std::string url, const curl_httppost* fields, long& response_code, std::string& result); 110 bool performMultiPost(std::string url, const curl_httppost* fields, long& response_code, std::string& result);