about summary refs log tree commit diff stats
path: root/src/auth.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth.cpp')
-rw-r--r--src/auth.cpp45
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
3namespace 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};