diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-04-12 18:40:52 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-04-12 18:40:52 -0400 |
commit | 891d57d200f55b91f80b6d3b4dd0c30479be6109 (patch) | |
tree | e87d1566ff941aa5003e1f937ccbb497fe1606a2 /src/auth.cpp | |
download | libtwittercpp-891d57d200f55b91f80b6d3b4dd0c30479be6109.tar.gz libtwittercpp-891d57d200f55b91f80b6d3b4dd0c30479be6109.tar.bz2 libtwittercpp-891d57d200f55b91f80b6d3b4dd0c30479be6109.zip |
Added basic ability to tweet
Diffstat (limited to 'src/auth.cpp')
-rw-r--r-- | src/auth.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/auth.cpp b/src/auth.cpp new file mode 100644 index 0000000..325c521 --- /dev/null +++ b/src/auth.cpp | |||
@@ -0,0 +1,45 @@ | |||
1 | #include "twitter.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 | }; | ||