diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-08-05 11:14:39 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-08-05 11:14:39 -0400 |
commit | 38203b745ae1903ba0804ed5532b78d255bea635 (patch) | |
tree | 52f57ce85e65361c534c461abc82fb1ed9768d49 /src/auth.cpp | |
parent | 7c44fd17bb6be54a2ea4b60761e91053ca988977 (diff) | |
download | libtwittercpp-38203b745ae1903ba0804ed5532b78d255bea635.tar.gz libtwittercpp-38203b745ae1903ba0804ed5532b78d255bea635.tar.bz2 libtwittercpp-38203b745ae1903ba0804ed5532b78d255bea635.zip |
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.
Diffstat (limited to 'src/auth.cpp')
-rw-r--r-- | src/auth.cpp | 45 |
1 files changed, 0 insertions, 45 deletions
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 @@ | |||
1 | #include "auth.h" | ||
2 | |||
3 | namespace twitter { | ||
4 | |||
5 | void auth::setConsumerKey(std::string _arg) | ||
6 | { | ||
7 | _consumer_key = _arg; | ||
8 | } | ||
9 | |||
10 | void auth::setConsumerSecret(std::string _arg) | ||
11 | { | ||
12 | _consumer_secret = _arg; | ||
13 | } | ||
14 | |||
15 | void auth::setAccessKey(std::string _arg) | ||
16 | { | ||
17 | _access_key = _arg; | ||
18 | } | ||
19 | |||
20 | void auth::setAccessSecret(std::string _arg) | ||
21 | { | ||
22 | _access_secret = _arg; | ||
23 | } | ||
24 | |||
25 | std::string auth::getConsumerKey() const | ||
26 | { | ||
27 | return _consumer_key; | ||
28 | } | ||
29 | |||
30 | std::string auth::getConsumerSecret() const | ||
31 | { | ||
32 | return _consumer_secret; | ||
33 | } | ||
34 | |||
35 | std::string auth::getAccessKey() const | ||
36 | { | ||
37 | return _access_key; | ||
38 | } | ||
39 | |||
40 | std::string auth::getAccessSecret() const | ||
41 | { | ||
42 | return _access_secret; | ||
43 | } | ||
44 | |||
45 | }; | ||