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. --- CMakeLists.txt | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c38613..08851cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,19 @@ include_directories(vendor/liboauthcpp/include) add_subdirectory(vendor/curlcpp) include_directories(${CURLCPP_SOURCE_DIR}/include) -add_library(twitter++ src/client.cpp src/stream.cpp src/auth.cpp src/tweet.cpp src/codes.cpp src/notification.cpp src/direct_message.cpp src/list.cpp src/user.cpp src/configuration.cpp) -set_property(TARGET twitter++ PROPERTY CXX_STANDARD 11) +add_library(twitter++ + src/client.cpp + src/request.cpp + src/timeline.cpp + src/stream.cpp + src/tweet.cpp + src/codes.cpp + src/notification.cpp + src/direct_message.cpp + src/list.cpp + src/user.cpp + src/configuration.cpp) + +set_property(TARGET twitter++ PROPERTY CXX_STANDARD 14) set_property(TARGET twitter++ PROPERTY CXX_STANDARD_REQUIRED ON) target_link_libraries(twitter++ oauthcpp curlcpp curl pthread) -- cgit 1.4.1