From 38203b745ae1903ba0804ed5532b78d255bea635 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 5 Aug 2018 11:14:39 -0400 Subject: Added timeline polling Because the streaming API will sunset on August 16th, it is essential to implement timeline polling so that the library can still be used to access tweets. This commit breaks the current API even for clients still using the streaming API because the OAuth connection data was pulled from twitter::client into twitter::auth. Other than that, almost everything works the same, and if a client wants to update their libtwitter++ within the next week and a half, they are free to. --- src/auth.cpp | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/auth.cpp (limited to 'src/auth.cpp') diff --git a/src/auth.cpp b/src/auth.cpp deleted file mode 100644 index f0f17e0..0000000 --- a/src/auth.cpp +++ /dev/null @@ -1,45 +0,0 @@ -#include "auth.h" - -namespace twitter { - - void auth::setConsumerKey(std::string _arg) - { - _consumer_key = _arg; - } - - void auth::setConsumerSecret(std::string _arg) - { - _consumer_secret = _arg; - } - - void auth::setAccessKey(std::string _arg) - { - _access_key = _arg; - } - - void auth::setAccessSecret(std::string _arg) - { - _access_secret = _arg; - } - - std::string auth::getConsumerKey() const - { - return _consumer_key; - } - - std::string auth::getConsumerSecret() const - { - return _consumer_secret; - } - - std::string auth::getAccessKey() const - { - return _access_key; - } - - std::string auth::getAccessSecret() const - { - return _access_secret; - } - -}; -- cgit 1.4.1