From 0ccac89815ee92c69fefc148cfb272faf7309136 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 20 May 2016 15:34:44 -0400 Subject: Started implementing user streams You can now start a user stream and end it yourself. If it disconnects abnormally, it will reconnect with a backoff as described by Twitter. Some data structures have some fields parsed now; tweets have IDs, text, and authors. Users have IDs, screen names, and names. Notifications from the stream are parsed completely. The ability to follow and unfollow users has also been added, as well as the ability to get a list of friends and followers, and to reply to a tweet. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f290c9..3c43670 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,13 +3,14 @@ project (twitter++) include_directories(vendor/json/src) +set(LIBOAUTHCPP_BUILD_DEMOS FALSE) add_subdirectory(vendor/liboauthcpp/build EXCLUDE_FROM_ALL) include_directories(vendor/liboauthcpp/include) add_subdirectory(vendor/curlcpp) include_directories(${CURLCPP_SOURCE_DIR}/include) -add_library(twitter++ src/client.cpp src/auth.cpp src/tweet.cpp src/codes.cpp) +add_library(twitter++ src/client.cpp src/auth.cpp src/tweet.cpp src/codes.cpp src/notification.cpp src/direct_message.cpp src/list.cpp src/user.cpp) set_property(TARGET twitter++ PROPERTY CXX_STANDARD 11) set_property(TARGET twitter++ PROPERTY CXX_STANDARD_REQUIRED ON) target_link_libraries(twitter++ oauthcpp curlcpp) -- cgit 1.4.1